all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help mode keybindings
@ 2013-05-23 21:05 Emanuel Berg
  2013-05-24 20:02 ` Emanuel Berg
  0 siblings, 1 reply; 8+ messages in thread
From: Emanuel Berg @ 2013-05-23 21:05 UTC (permalink / raw
  To: help-gnu-emacs

How do I bind C-j to "jump-to-register" in help mode?

I'd like that globally, so I bound it so in .emacs. But, in some modes
it was bound locally. For example, in "Lisp Interaction" mode, I had to
locally unset C-j to clear the path to the global binding, and this
worked with no problems:

(add-hook 'lisp-interaction-mode-hook
          (lambda () (local-unset-key (kbd "C-j"))) )

But, that didn't work for Help mode: the local binding wasn't
dropped. Not even setting it explicitly work, as in the below
code. Strangely, the "j" (not C-j) version worked!

(add-hook 'help-mode-hook
 (lambda ()
  ; ...
  (define-key help-mode-map (kbd "j")   'jump-to-register)    ; works
  (define-key help-mode-map (kbd "C-j") 'jump-to-register) )) ; not so

Are the Help mode keybindings set in stone?
-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


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

end of thread, other threads:[~2013-05-26  1:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 21:05 Help mode keybindings Emanuel Berg
2013-05-24 20:02 ` Emanuel Berg
2013-05-24 21:58   ` Emanuel Berg
2013-05-24 23:39     ` Michael Heerdegen
     [not found]     ` <mailman.346.1369438775.22516.help-gnu-emacs@gnu.org>
2013-05-25  2:21       ` Emanuel Berg
2013-05-25 23:27         ` Michael Heerdegen
     [not found]         ` <mailman.386.1369524496.22516.help-gnu-emacs@gnu.org>
2013-05-26  1:14           ` Emanuel Berg
2013-05-24 23:36   ` Michael Heerdegen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.