unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Setting key bindings in view-mode-hook
@ 2005-11-27  3:26 Bill Wohler
  2005-11-27 16:57 ` Drew Adams
  2005-11-27 19:36 ` Richard M. Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Bill Wohler @ 2005-11-27  3:26 UTC (permalink / raw)


I'd like to bind "q" in `view-mode' to `View-kill-and-leave'.

I customized view-mode-hook with

  (lambda nil (local-set-key "q" (quote View-kill-and-leave)))

However, "C-h c q" in a buffer in view mode still shows View-quit.

What gives? How come my setting isn't honored?

This is in recent CVS snapshot of Emacs 22, but a quick check reveals
that this Emacs 21 shows the same behavior.

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

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

end of thread, other threads:[~2005-12-01  0:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-27  3:26 Setting key bindings in view-mode-hook Bill Wohler
2005-11-27 16:57 ` Drew Adams
2005-11-27 19:03   ` Bill Wohler
2005-11-27 19:36 ` Richard M. Stallman
2005-11-27 19:49   ` Bill Wohler
2005-11-28  4:46     ` Richard M. Stallman
2005-12-01  0:50     ` Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).