Update bindings + commands

This commit is contained in:
Henrik Lissner 2015-12-23 03:46:42 -05:00
parent 67aa65ad61
commit 604bdae174
2 changed files with 24 additions and 17 deletions

View file

@ -44,7 +44,7 @@
"C-j" 'evil-window-down "C-j" 'evil-window-down
"C-k" 'evil-window-up "C-k" 'evil-window-up
"C-h" 'evil-window-left "C-h" 'evil-window-left
"C-l" 'evil-window-right "C-l" 'narf/evil-window-right ; switch to tmux if fails
"C-<escape>" 'evil-emacs-state "C-<escape>" 'evil-emacs-state
:e "C-<escape>" 'evil-normal-state :e "C-<escape>" 'evil-normal-state
@ -74,7 +74,7 @@
"A-SPC" 'just-one-space "A-SPC" 'just-one-space
"M-a" 'mark-whole-buffer "M-a" 'mark-whole-buffer
"M-c" 'evil-yank "M-c" 'evil-yank
"M-s" 'save-buffer "M-s" 'evil-write
"M-v" 'clipboard-yank "M-v" 'clipboard-yank
"M-q" 'evil-quit-all "M-q" 'evil-quit-all
"M-z" 'undo "M-z" 'undo
@ -112,6 +112,7 @@
:nv "P" 'helm-projectile-switch-project :nv "P" 'helm-projectile-switch-project
:v "=" 'align-regexp :v "=" 'align-regexp
:n "k" 'narf/helm-descbinds-leader
:n "h" 'help-command :n "h" 'help-command
:nv "p" 'helm-show-kill-ring :nv "p" 'helm-show-kill-ring
:n "R" 'narf/reset-theme :n "R" 'narf/reset-theme
@ -129,8 +130,7 @@
:n "w" 'narf/workgroup-display :n "w" 'narf/workgroup-display
:n "W" 'narf:helm-wg :n "W" 'narf:helm-wg
:n "n" 'narf/neotree-toggle :n "n" 'narf/neotree
:n "N" 'narf/neotree-find
:nv "l" 'narf/nlinum-toggle :nv "l" 'narf/nlinum-toggle
:nv "qq" 'evil-save-and-quit :nv "qq" 'evil-save-and-quit
@ -163,6 +163,7 @@
;; Org notes ;; Org notes
:n "X" 'narf/org-open-notes :n "X" 'narf/org-open-notes
:n "T" 'narf/org-open-todo
(:prefix "x" (:prefix "x"
:n "." 'narf/helm-org-find-files :n "." 'narf/helm-org-find-files
:n "/" 'narf/helm-org :n "/" 'narf/helm-org
@ -172,6 +173,7 @@
:n "w" 'narf/helm-org-writing)) :n "w" 'narf/helm-org-writing))
(:localleader (:localleader
:n "k" 'narf/helm-descbinds-localleader
:n "b" 'narf:build :n "b" 'narf:build
:n "R" 'narf:repl :n "R" 'narf:repl
:v "R" 'narf:repl-eval :v "R" 'narf:repl-eval
@ -213,6 +215,11 @@
:n "g=" 'evil-numbers/inc-at-pt :n "g=" 'evil-numbers/inc-at-pt
:n "g-" 'evil-numbers/dec-at-pt :n "g-" 'evil-numbers/dec-at-pt
:n "gf" (λ! (helm-mode -1)
(call-interactively 'find-file-at-point)
(helm-mode 1)) ;; prevents helm
;; :n "gF" 'evil-numbers/dec-at-pt
:n "gc" 'evil-commentary :n "gc" 'evil-commentary
:n "gx" 'evil-exchange :n "gx" 'evil-exchange
:n "gr" 'narf:eval-region :n "gr" 'narf:eval-region
@ -244,7 +251,7 @@
;; paste from recent yank register; which isn't overwritten by deletes or ;; paste from recent yank register; which isn't overwritten by deletes or
;; other operations. ;; other operations.
:n "Y" "y$" :n "Y" "y$"
:v "P" "\"0p" :v "C-p" "\"0p"
:v "S" 'evil-surround-region :v "S" 'evil-surround-region
:v "R" 'evil-iedit-state/iedit-mode ; edit all instances of marked region :v "R" 'evil-iedit-state/iedit-mode ; edit all instances of marked region
@ -274,7 +281,6 @@
:n "!" 'rotate-word-at-point :n "!" 'rotate-word-at-point
:v "!" 'rotate-region :v "!" 'rotate-region
:e "<escape>" 'evil-normal-state
(:map evil-window-map ; prefix "C-w" (:map evil-window-map ; prefix "C-w"
"u" 'narf/undo-window-change "u" 'narf/undo-window-change
@ -291,10 +297,12 @@
"C-u" 'narf/undo-window-change "C-u" 'narf/undo-window-change
"C-r" 'narf/redo-window-change "C-r" 'narf/redo-window-change
"C-h" 'evil-window-left ; don't accidentally invoke help "C-h" 'evil-window-left
"C-j" 'evil-window-down ; don't accidentally invoke help "C-j" 'evil-window-down
"C-k" 'evil-window-up ; don't accidentally invoke help "C-k" 'evil-window-up
"C-l" 'evil-window-right ; don't accidentally invoke help
"l" 'narf/evil-window-right ; Switch to tmux if no window
"C-l" 'narf/evil-window-right ; Switch to tmux if no window
"C-w" 'ace-window "C-w" 'ace-window
"C-S-w" (λ! (ace-window 4)) ; swap windows "C-S-w" (λ! (ace-window 4)) ; swap windows
@ -360,7 +368,8 @@
;; Restores "dumb" indentation to the tab key. This rustles a lot of ;; Restores "dumb" indentation to the tab key. This rustles a lot of
;; peoples' jimmies, apparently, but it's how I like it. ;; peoples' jimmies, apparently, but it's how I like it.
(map! :i "<tab>" 'narf/dumb-indent (map! "C-b" 'backward-word
:i "<tab>" 'narf/dumb-indent
:i "<C-tab>" 'indent-for-tab-command :i "<C-tab>" 'indent-for-tab-command
;; No dumb-tab for lisp ;; No dumb-tab for lisp
@ -406,7 +415,6 @@
:n "<S-M-return>" (λ! (save-excursion (evil-insert-newline-above))) :n "<S-M-return>" (λ! (save-excursion (evil-insert-newline-above)))
;; Make ESC quit all the things ;; Make ESC quit all the things
:e [escape] 'evil-normal-state
(:map (minibuffer-local-map (:map (minibuffer-local-map
minibuffer-local-ns-map minibuffer-local-ns-map
minibuffer-local-completion-map minibuffer-local-completion-map

View file

@ -4,6 +4,7 @@
(exmap "acomp[ile]" 'narf:compile-autoloads) (exmap "acomp[ile]" 'narf:compile-autoloads)
(exmap "bcomp[ile]" 'narf:compile-el) (exmap "bcomp[ile]" 'narf:compile-el)
(exmap "echo" 'narf:echo) (exmap "echo" 'narf:echo)
(exmap "minor" 'what-minor-modes)
;; Editing ;; Editing
(exmap "@" 'narf/evil-macro-on-all-lines) (exmap "@" 'narf/evil-macro-on-all-lines)
@ -23,14 +24,12 @@
(exmap "http" 'httpd-start) (exmap "http" 'httpd-start)
(exmap "re[gex]" 'narf:regex) (exmap "re[gex]" 'narf:regex)
(exmap "repl" 'narf:repl) (exmap "repl" 'narf:repl)
(exmap "t[mux]" 'narf:send-to-tmux) (exmap "t[mux]" 'narf:tmux)
(exmap "t[mux]s" 'narf/tmux-split-window)
(exmap "t[mux]v" (λ! (narf/tmux-split-window t)))
(exmap "t[mux]w" 'narf/tmux-new-window) (exmap "t[mux]w" 'narf/tmux-new-window)
(exmap "tcd" 'narf:tmux-cd) (exmap "tcd" 'narf:tmux-cd)
(exmap "x" 'narf:scratch-buffer) (exmap "x" 'narf:send-to-scratch-or-org)
;; GIT ;; GIT
(exmap "git[hub]" 'narf:github-browse-file) (exmap "br[owse]" 'narf:git-remote-browse)
;; Dealing with buffers ;; Dealing with buffers
(exmap "k[ill]" 'narf/kill-real-buffer) ; Kill current buffer (exmap "k[ill]" 'narf/kill-real-buffer) ; Kill current buffer