next up previous
Next: VI Up: Emacs Previous: Inserting/replacing vertical blocks of

Key binding (shortcuts)

To carry out commands using the keyboard instead of the pull-down menus, you can bind commands to certain key sequences. This is done by specifying the key sequence and command in your .emacs file. For example: 
(global-set-key "\C-l" 'goto-line) ;; enables you to go to a certain line by typing ctrl-l and then the line number 
(global-set-key "\C-p" 'query-replace);; maps query-replace to control-p



Chris Paciorek 2006-04-02