Skip to content

Instantly share code, notes, and snippets.

@machuga
Created October 6, 2015 17:52
Show Gist options
  • Save machuga/6850d316ebf3d1106d2a to your computer and use it in GitHub Desktop.
Save machuga/6850d316ebf3d1106d2a to your computer and use it in GitHub Desktop.
Evil Leader config
(global-evil-leader-mode)
(evil-leader/set-leader "<SPC>")
(evil-leader/set-key
"j" 'evil-window-down
"k" 'evil-window-up
"h" 'evil-window-left
"l" 'evil-window-right
"J" 'evil-window-move-very-bottom
"K" 'evil-window-move-very-top
"H" 'evil-window-move-far-left
"L" 'evil-window-move-far-right
"n" 'neotree-toggle
"b" 'ibuffer
"e" 'eval-buffer
"f" 'fiplr-find-file
"F" '(lambda ()
(interactive)
(fiplr-clear-cache)
(fiplr-find-file))
"s" '(lambda ()
(interactive)
(split-window-horizontally)
(switch-to-buffer "*scratch*")
(balance-windows))
"i" 'open-init-file
"g" 'magit-status
"p" 'evil-buffer
"w" 'whitespace-cleanup
"ci" 'evilnc-comment-or-uncomment-lines
"cl" 'evilnc-quick-comment-or-uncomment-to-the-line
"cc" 'evilnc-copy-and-comment-lines
"cp" 'evilnc-comment-or-uncomment-paragraphs
"cr" 'comment-or-uncomment-region
"cv" 'evilnc-toggle-invert-comment-line-by-line
",," 'evilnc-comment-operator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment