Last active
August 29, 2015 14:27
-
-
Save Arc0re/63198ccf9e9500e087aa to your computer and use it in GitHub Desktop.
Emacs bindings for mac ++ spacemacs style bindings (evil)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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