* Re: .emacs keybindings in gnus
[not found] <1188273243.137944.275310@w3g2000hsg.googlegroups.com>
@ 2007-08-29 9:16 ` imputerate
2007-08-29 14:49 ` David Z Maze
0 siblings, 1 reply; 2+ messages in thread
From: imputerate @ 2007-08-29 9:16 UTC (permalink / raw)
To: info-gnus-english
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: .emacs keybindings in gnus
2007-08-29 9:16 ` .emacs keybindings in gnus imputerate
@ 2007-08-29 14:49 ` David Z Maze
0 siblings, 0 replies; 2+ messages in thread
From: David Z Maze @ 2007-08-29 14:49 UTC (permalink / raw)
To: info-gnus-english
[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]
imputerate <imputerate@gmail.com> writes:
> 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)))
> ;; instead of 'gnus-message-mode-hook
> (add-hook 'message-mode-hook
> (lambda ()
> (local-set-key (kbd "\en") 'next-line)))
>
> the lesson to be taken from all this is that the "'gnus" should be
> omitted when one is configuring the .gnus.el file;
Lest you take this as a general rule, message-mode is at least
theoretically separate from Gnus proper; there's a separate Info manual
for it, for example, and its various names start with message- (but not
gnus-message-). The summary mode configuration, on the other hand, *is*
an integral part of Gnus, and gnus-summary-mode-* is correct where a
bare summary-* won't work.
> now how about getting customized key bindings to work in X, and X
> apps, like browsers?
I've never had trouble making keybindings work in X vs. not, though I
seem to use a different syntax. My .emacs has:
[-- Attachment #2: Type: application/x-emacs-lisp, Size: 224 bytes --]
[-- Attachment #3: Type: text/plain, Size: 102 bytes --]
There's no way to make Emacs customizations work for applications that
aren't Emacs, sorry.
--dzm
[-- Attachment #4: Type: text/plain, Size: 161 bytes --]
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-29 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1188273243.137944.275310@w3g2000hsg.googlegroups.com>
2007-08-29 9:16 ` .emacs keybindings in gnus imputerate
2007-08-29 14:49 ` David Z Maze
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).