all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* rebind key in a single major mode
@ 2003-01-23 14:21 Dr. F.C.Caner
  0 siblings, 0 replies; 3+ messages in thread
From: Dr. F.C.Caner @ 2003-01-23 14:21 UTC (permalink / raw)


.... or, you can just do

(add-hook 'gud-mode-hook '(lambda() (local-set-key (kbd "<return>") (kbd "RET"))))

FCC

^ permalink raw reply	[flat|nested] 3+ messages in thread
* rebind key in a single major mode
@ 2003-01-23  0:52 Glen Coates
  2003-01-23 10:21 ` Kai Großjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Glen Coates @ 2003-01-23  0:52 UTC (permalink / raw)


Hi,

I've currently got the enter key bound to C-j in all modes because it
makes indenting so much easier, however, in gdb-mode this means I have to
hit C-m instead of enter because gdb-mode doesn't recognise C-j as the
newline character (I think).

What do I need to put in my .emacs in order to rebind enter to C-m for
gdb-mode only?

--
Cheers,
Glen

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

end of thread, other threads:[~2003-01-23 14:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-23 14:21 rebind key in a single major mode Dr. F.C.Caner
  -- strict thread matches above, loose matches on Subject: below --
2003-01-23  0:52 Glen Coates
2003-01-23 10:21 ` Kai Großjohann

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.