* when rebind a key with global-set-key , if I need to use global-unset-key on that key ?
@ 2009-07-27 6:13 waterloo
2009-07-27 6:44 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: waterloo @ 2009-07-27 6:13 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 96 bytes --]
when rebind a key with global-set-key , if I need to use global-unset-key on
that key ?
Thanks
[-- Attachment #2: Type: text/html, Size: 106 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: when rebind a key with global-set-key , if I need to use global-unset-key on that key ?
2009-07-27 6:13 when rebind a key with global-set-key , if I need to use global-unset-key on that key ? waterloo
@ 2009-07-27 6:44 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2009-07-27 6:44 UTC (permalink / raw)
To: help-gnu-emacs
waterloo <waterloo2005@gmail.com> writes:
> when rebind a key with global-set-key , if I need to use
> global-unset-key on that key ?
No.
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: when rebind a key with global-set-key , if I need to use global-unset-key on that key ?
@ 2009-07-27 8:07 waterloo
2009-07-27 9:12 ` Bastien
0 siblings, 1 reply; 4+ messages in thread
From: waterloo @ 2009-07-27 8:07 UTC (permalink / raw)
To: help-gnu-emacs, bastienguerry
[-- Attachment #1: Type: text/plain, Size: 378 bytes --]
In `16.9 Loading Files' of Intro to Emacs Lisp under emacs23.0.96.1 .
==================
To replace the key binding for the default
`split-window-vertically', you must also unset that key and bind the
keys to `split-window-quietly', like this:
(global-unset-key "\C-x2")
(global-set-key "\C-x2" 'split-window-quietly)
Please note "must" in above paragraph.
Thanks
[-- Attachment #2: Type: text/html, Size: 466 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: when rebind a key with global-set-key , if I need to use global-unset-key on that key ?
2009-07-27 8:07 waterloo
@ 2009-07-27 9:12 ` Bastien
0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2009-07-27 9:12 UTC (permalink / raw)
To: waterloo; +Cc: help-gnu-emacs
waterloo <waterloo2005@gmail.com> writes:
> In `16.9 Loading Files' of Intro to Emacs Lisp under emacs23.0.96.1 .
> ==================
> To replace the key binding for the default
> `split-window-vertically', you must also unset that key and bind the
> keys to `split-window-quietly', like this:
>
> (global-unset-key "\C-x2")
> (global-set-key "\C-x2" 'split-window-quietly)
Try it. You'll see that (global-set-key "\C-x2" 'split-window-quietly)
is enough.
> Please note "must" in above paragraph.
Yes. Perhaps it's legacy from older versions of Emacs.
I don't know how to fix the Emacs Lisp Intro.
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-27 9:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-27 6:13 when rebind a key with global-set-key , if I need to use global-unset-key on that key ? waterloo
2009-07-27 6:44 ` Bastien
-- strict thread matches above, loose matches on Subject: below --
2009-07-27 8:07 waterloo
2009-07-27 9:12 ` Bastien
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.