all repos — nixfiles @ 496df6c119046e450f4e047bbb6cf0428c7168b9

System and user configuration, managed by nix and home-manager

Emacs: switch control and command keys
Alan Pearce alan@alanpearce.co.uk
Thu, 01 Aug 2013 13:23:44 +0100
commit

496df6c119046e450f4e047bbb6cf0428c7168b9

parent

904e18d318ce25bc5a7ab589bd64fa42c404d68c

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -461,6 +461,11 @@ (add-hook 'php-mode-hook #'smart-tabs-mode-enable))) 
 ;;;; Keybindings
 
+(when (eq system-type 'darwin)
+  (setq mac-option-modifier 'meta
+        mac-control-modifier 'command
+        mac-command-modifier 'control))
+
 (unbind-key "<f4>")
 (bind-key "<f5>" #'compile)
 (bind-key "<f6>" #'kmacro-start-macro-or-insert-counter)