[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I change gnus window configuration for some groups?
From: |
Alan Schmitt |
Subject: |
Re: How can I change gnus window configuration for some groups? |
Date: |
Sun, 24 Aug 2014 11:47:49 +0200 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (darwin) |
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
signature.asc
Description: PGP signature