1 books, 11 pages

a form that can be passed as an argumentto global-set-key. For example, here’s how to bind C-z to
on 31.4.2 [Interactive Shell], page 383):(global-set-key (kbd "C-z") ’shell)The single-quote bef
:(global-set-key(global-set-key(global-set-key(global-set-key(global-set-key(global-set-key(
Section 15.10[Misc File Ops], page 139):(global-set-key "\C-x\M-l" ’make-symbolic-link)To put T
(see Chapter 21 [Indentation], page 204):(global-set-key "\C-x\t" ’indent-rigidly)When the key s

ebindingsaffect future Emacs sessions.M-x global-set-key RET key cmd RETDefine key globally to ru
l definition of C-z:M-x global-set-key RET C-z shell RETThe global-set-key command reads the comma
more character, and so on. For example,M-x global-set-key RET C-x 4 $ spell-other-window RETredefi

Chapter 33: Customization433(global-set-key [C-mouse-1] ’make-symbolic-link)You can use a vec

lling with M-x or for binding a key to with global-set-key (see Section 33.3.1 [Keymaps],page 429).

. . . . . . . . . . . . . . . . . . . . 87global-set-key . . . . . . . . . . . . . . . . . . . . .

mouse button to split the currentwindow:(global-set-key [mouse-2] ’split-window-below)The symbo

eymap. Commandsto rebind keys, such as M-x global-set-key, work by storing the new binding in the p

in a mode line to runscroll-up-command:(global-set-key [mode-line mouse-1] ’scroll-up-command)

e interpreted as meta keys. For instance:(global-set-key [?char] ’some-function)Type C-q, follow

ction 33.3.6 [InitRebinding], page 432).(global-set-key "\C-xl" ’make-symbolic-link)or(define-

ction 33.3.6 [Init Rebinding], page 432):(global-set-key [mouse-3] ’mouse-popup-menubar-stuff)1