etfalo.blogg.se

Emacs page down shortcut
Emacs page down shortcut





(global-set-key (kbd "SPC") 'backward-char) the Space bar key (global-set-key (kbd "RET") 'backward-char) the Enter/Return key (global-set-key (kbd "") 'backward-char) ↓ (global-set-key (kbd "") 'backward-char) ↑ (global-set-key (kbd "") 'backward-char) → (global-set-key (kbd "") 'backward-char) ← (global-set-key (kbd "") 'backward-char) page up key (global-set-key (kbd "") 'backward-char) page down key (global-set-key (kbd "") 'backward-char) the Del key (global-set-key (kbd "") 'backward-char) the Ins key (global-set-key (kbd "") 'backward-char) the “2” key on the number keypad (global-set-key (kbd "C-a") 'backward-char) Ctrl+aĮxample of shortcuts with a special key: (global-set-key (kbd "") 'backward-char) F2 key Single Modifier KeyĮxample of shortcuts with a single modifier key: (global-set-key (kbd "M-a") 'backward-char) Meta+a Replace it with the command name you want. In the following, the “backward-char” is a example command. When you see Meta mentioned in emacs, just think of it as Alt. (for photos, see: Keyboard Hardware's Influence on Keyboard Shortcut Design (How Emacs and vi keys came to be)) The Meta key doesn't exist in today's keyboards, but emacs remap it to PC keyboard's Alt key by default. The Meta key is a key on some keyboards in the 1980s. Here are sample code you need to place in your emacs init file for defining various key press combinations. If you made some bad mistake and need to start emacs without loading your init files, you can start emacs on the command line like this: emacs -Q. If you are experimenting, and don't want to restart emacs everytime you try to define a new shortcut, you can select the lisp code then type 【 Alt+ x eval-region】. For example, if you want 【 Ctrl+ z】 to be undo, then, place this code (global-set-key (kbd "C-z") 'undo) in your emacs init file and restart emacs. The act of creating a keyboard shortcut is called keybinding. In emacs, you can create any keyboard shortcut to any command.







Emacs page down shortcut