Skip to content

Instantly share code, notes, and snippets.

@Arc0re
Last active August 29, 2015 14:27
Show Gist options
  • Save Arc0re/63198ccf9e9500e087aa to your computer and use it in GitHub Desktop.
Save Arc0re/63198ccf9e9500e087aa to your computer and use it in GitHub Desktop.
Emacs bindings for mac ++ spacemacs style bindings (evil)
;; remap fn to ctrl on mac
(setq ns-function-modifier 'control)
;; remap alt to option and meta to command
(setq mac-option-key-is-meta nil)
(setq mac-command-key-is-meta t)
(setq mac-command-modifier 'meta)
(setq mac-option-modifier nil)
;; Evil stuff
(package-initialize)
(evil-mode 1)
(require 'evil-leader)
(global-evil-leader-mode)
(evil-leader/set-leader "<SPC>")
(evil-leader/set-key
"o" 'find-file
"k" 'kill-buffer
"d" 'replace-string
"f" 'search-forward
"s" 'write-file
"l" 'load-file
"b" 'list-buffers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment