Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: imputerate <imputerate@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: .emacs keybindings in gnus
Date: Wed, 29 Aug 2007 09:16:23 -0000	[thread overview]
Message-ID: <1188378983.446164.138940@o80g2000hse.googlegroups.com> (raw)
In-Reply-To: <1188273243.137944.275310@w3g2000hsg.googlegroups.com>

briefly, the answer is to omit the word gnus- from the code placed
in .gnus.el

in my .gnus.el file, i changed a line
from:
(add-hook 'gnus-message-mode-hook line
to:
(add-hook 'message-mode-hook

so now the section of my .gnus.el file which forces gnus to accept key
bindings from my .emacs file is:

(add-hook 'gnus-summary-mode-hook
          (lambda ()
            (local-set-key (kbd "\ei") 'previous-line)))
(add-hook 'gnus-summary-mode-hook
          (lambda ()
            (local-set-key (kbd "\en") 'next-line)))

;; instead of 'gnus-message-mode-
hook                                                    \
(add-hook 'message-mode-hook
          (lambda ()
            (local-set-key (kbd "\en") 'next-line)))
(add-hook 'message-mode-hook
          (lambda ()
            (local-set-key (kbd "\e;") 'end-of-line)))

i left the summary-mode lines as is, since they work, and as they say,
"if it works..."

similarly;
(add-hook 'gnus-group-mode-hook 'gnus-topic-mode)
;;instead of 'gnus-message-mode-
hook
(add-hook 'message-mode-hook 'paragraph-indent-minor-mode)

the lesson to be taken from all this is that the "'gnus" should be
omitted when one is configuring the .gnus.el file;

now how about getting customized key bindings to work in X, and X
apps, like browsers?

       reply	other threads:[~2007-08-29  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1188273243.137944.275310@w3g2000hsg.googlegroups.com>
2007-08-29  9:16 ` imputerate [this message]
2007-08-29 14:49   ` David Z Maze

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=1188378983.446164.138940@o80g2000hse.googlegroups.com \
    --to=imputerate@gmail.com \
    --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).