help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: when rebind a key with global-set-key , if I need to use global-uns


From: Bastien
Subject: Re: when rebind a key with global-set-key , if I need to use global-unset-key on that key ?
Date: Mon, 27 Jul 2009 17:12:52 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]