unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bill Wohler <wohler@newt.com>
Subject: Setting key bindings in view-mode-hook
Date: Fri, 18 Nov 2005 15:26:55 -0800	[thread overview]
Message-ID: <8764qpilkw.fsf@olgas.newt.com> (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.

             reply	other threads:[~2005-11-18 23:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18 23:26 Bill Wohler [this message]
     [not found] <mailman.15844.1132359525.20277.help-gnu-emacs@gnu.org>
2005-11-19  0:50 ` Setting key bindings in view-mode-hook Johan Bockgård

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8764qpilkw.fsf@olgas.newt.com \
    --to=wohler@newt.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).