summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-08-01 13:23:44 +0100
committerAlan Pearce2013-08-01 13:23:44 +0100
commit496df6c119046e450f4e047bbb6cf0428c7168b9 (patch)
tree043c3009e552658bc6b78f573f4018e46dcbd065
parent904e18d318ce25bc5a7ab589bd64fa42c404d68c (diff)
downloaddotfiles-496df6c119046e450f4e047bbb6cf0428c7168b9.tar.lz
dotfiles-496df6c119046e450f4e047bbb6cf0428c7168b9.tar.zst
dotfiles-496df6c119046e450f4e047bbb6cf0428c7168b9.zip
Emacs: switch control and command keys
-rw-r--r--emacs/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 5f323a6..34fab37 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -461,6 +461,11 @@ Values: `desktop', `server', `laptop'")
 
 ;;;; 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)