Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: info-gnus-english@gnu.org
Subject: Modify gnus alist in .gnus. Hook?
Date: Fri, 10 Oct 2014 05:27:40 -0700	[thread overview]
Message-ID: <87wq88p0sj.fsf@uw.edu> (raw)


I managed to shorten the group name used in `gnus-group-line-format',
but not sure how to set it up for use in my .gnus.el. 

Either a hook or eval-after-load, but I'm failing on both. 

Here is my modification: 

--8<---------------cut here---------------start------------->8---
(add-to-list 'gnus-group-line-format-alist
             `(?z (gnus-short-group-name gnus-tmp-qualified-group) ?s))
--8<---------------cut here---------------end--------------->8---

A minimal change to the group-line-format would be the z in the
otherwise default: 

--8<---------------cut here---------------start------------->8---
(setq gnus-group-line-format "%M%S%p%P%5y:%B%(%z%)\n")
--8<---------------cut here---------------end--------------->8---

I tried lines like

--8<---------------cut here---------------start------------->8---
(add-hook 'gnus-started-hook
          `(add-to-list 'gnus-group-line-format-alist
                        `(?z (gnus-short-group-name
                              gnus-tmp-qualified-group) ?s))
                              )
--8<---------------cut here---------------end--------------->8---

but this did not work.           


--
Brady



             reply	other threads:[~2014-10-10 12:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-10 12:27 Brady Trainor [this message]
2014-11-01 23:58 ` Michael Heerdegen

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=87wq88p0sj.fsf@uw.edu \
    --to=algebrat@uw.edu \
    --cc=info-gnus-english@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).