* set key for mode?
@ 2014-03-24 14:15 kleinerdrache
2014-03-24 14:50 ` Thorsten Jolitz
0 siblings, 1 reply; 3+ messages in thread
From: kleinerdrache @ 2014-03-24 14:15 UTC (permalink / raw)
To: help-gnu-emacs
Hi there,
What is the mode-local alternative to global-set-key? I'd like to make
a now undefined C-cd for org-mode but only for org-mode not global.
Can i do that?
Thanks,
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: set key for mode?
2014-03-24 14:15 set key for mode? kleinerdrache
@ 2014-03-24 14:50 ` Thorsten Jolitz
2014-03-24 14:56 ` Martin
0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Jolitz @ 2014-03-24 14:50 UTC (permalink / raw)
To: help-gnu-emacs
kleinerdrache@gmx.at writes:
> Hi there,
>
> What is the mode-local alternative to global-set-key? I'd like to make
> a now undefined C-cd for org-mode but only for org-mode not global.
> Can i do that?
,--------------------------------------------
| (org-defkey org-mode-map "\C-cd" 'my-defun)
`--------------------------------------------
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: set key for mode?
2014-03-24 14:50 ` Thorsten Jolitz
@ 2014-03-24 14:56 ` Martin
0 siblings, 0 replies; 3+ messages in thread
From: Martin @ 2014-03-24 14:56 UTC (permalink / raw)
To: Thorsten Jolitz; +Cc: help-gnu-emacs
Thorsten Jolitz writes:
> kleinerdrache@gmx.at writes:
>
>> Hi there,
>>
>> What is the mode-local alternative to global-set-key? I'd like to make
>> a now undefined C-cd for org-mode but only for org-mode not global.
>> Can i do that?
>
> ,--------------------------------------------
> | (org-defkey org-mode-map "\C-cd" 'my-defun)
> `--------------------------------------------
Thanks very much!
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-24 14:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 14:15 set key for mode? kleinerdrache
2014-03-24 14:50 ` Thorsten Jolitz
2014-03-24 14:56 ` Martin
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.