From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I change gnus window configuration for some groups?
Date: Sun, 24 Aug 2014 11:47:49 +0200 [thread overview]
Message-ID: <m261hite0q.fsf@polytechnique.org> (raw)
In-Reply-To: m2a96uthep.fsf@polytechnique.org
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]
On 2014-08-24 10:34, Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> As a less invasive option, I could test for the group name in the window
> configuration definition. However it seems that `gnus-group-group-name'
> does not work in the summary window (is returns `nil'). Is there
> a similar function that returns the name of the current group in
> a summary buffer?
As I could not find such a function, this is what I ended up
doing. Testing the buffer name is ugly, but it gets the job done.
#+begin_src emacs-lisp
(defun as/small-summary-p ()
(equal (buffer-name) "*Summary nnvirtual:RSS*"))
(gnus-add-configuration
'(article
(cond
((as/small-summary-p) '(vertical 1.0
(summary 4 point)
(article 1.0)))
(t '(vertical 1.0
(summary 0.25 point)
(article 1.0))))))
#+end_src
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
next prev parent reply other threads:[~2014-08-24 9:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7430.1408802163.1147.help-gnu-emacs@gnu.org>
2014-08-23 21:53 ` How can I change gnus window configuration for some groups? Emanuel Berg
2014-08-24 8:34 ` Alan Schmitt
2014-08-24 9:47 ` Alan Schmitt [this message]
2014-08-24 15:25 ` Eric Abrahamsen
2014-08-24 19:08 ` Alan Schmitt
2014-08-23 13:55 Alan Schmitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m261hite0q.fsf@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.