Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* gnous-group feature and eval-after-load
@ 2007-05-09  7:59 Sebastian Tennant
  2007-05-09 18:14 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Tennant @ 2007-05-09  7:59 UTC (permalink / raw)
  To: info-gnus-english

Hi Gnus folk,

I have the following in my .gnus:

  (eval-after-load 'gnus-group
    (progn
      (define-key gnus-group-mode-map "q" 'bury-buffer)
      (define-key gnus-group-mode-map "Q" 'gnus-group-exit)
      ...
      ))

I understand that most of gnus has already been loaded by the time a
.gnus is read, but according to (describe-function 'eval-after-load):

  "Arrange that, if FILE is ever loaded, FORM will be run at that time.
   If FILE is already loaded, evaluate FORM right now."

However, the above key bindings only come into effect the _second_
time I load gnus in an emacs session...

Any ideas why?

Sebastian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-09 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-09  7:59 gnous-group feature and eval-after-load Sebastian Tennant
2007-05-09 18:14 ` Reiner Steib

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).