Difference between revisions of "Key Bindings"

From WikEmacs
Jump to navigation Jump to search
m
Line 1: Line 1:
 
; Printable cheatsheet for popular modes
 
; Printable cheatsheet for popular modes
: The pdf files are located in the '''refcards/''' subdirectory of {{Variable|data-directory}}.
+
: The {{File|pdf}} files are located in the {{Directory|refcards}} subdirectory of {{Variable|data-directory}}.
  
 
+
You can add, remove and change key bindings for any command, either globally or locally to a mode, interactively (and only for the current session) via {{Command|global-set-key}} and {{Command|local-set-key}}, or persistently using simple [[Emacs Lisp]] code in your {{EmacsConfigFile}} which is loaded when Emacs first starts up.
 
 
* TBC
 
 
 
You can add, remove and change key bindings for any command, either globally or locally to a mode, interactively (and only for the current session) via <tt>M-x global-set-key</tt> and <tt>M-x local-set-key</tt>, or persistently using simple [[Emacs Lisp]] code in your <tt>init.el</tt> or <tt>.emacs</tt> file which is loaded when Emacs first starts up.
 
  
 
[[Category:Tweak Key Bindings]]
 
[[Category:Tweak Key Bindings]]

Revision as of 13:46, 29 March 2012

Printable cheatsheet for popular modes
The pdf files are located in the refcards/ subdirectory of data-directory.

You can add, remove and change key bindings for any command, either globally or locally to a mode, interactively (and only for the current session) via M-x global-set-key and M-x local-set-key, or persistently using simple Emacs Lisp code in your Emacs configuration file which is loaded when Emacs first starts up.