Clean up & remove god-mode
This commit is contained in:
parent
a182796600
commit
f0e7f177da
2 changed files with 26 additions and 28 deletions
|
@ -31,7 +31,6 @@
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(bind '(normal visual) my-mode-map
|
(bind '(normal visual) my-mode-map
|
||||||
"\\" 'evil-execute-in-god-state ; localleader
|
|
||||||
";" 'evil-ex
|
";" 'evil-ex
|
||||||
"X" 'evil-exchange
|
"X" 'evil-exchange
|
||||||
|
|
||||||
|
@ -54,6 +53,7 @@
|
||||||
"[ \\" 'er/contract-region)
|
"[ \\" 'er/contract-region)
|
||||||
|
|
||||||
(bind 'normal my-mode-map
|
(bind 'normal my-mode-map
|
||||||
|
;; <leader>
|
||||||
", ," 'helm-projectile-switch-to-buffer
|
", ," 'helm-projectile-switch-to-buffer
|
||||||
", ." 'helm-resume
|
", ." 'helm-resume
|
||||||
", /" 'helm-projectile-find-file
|
", /" 'helm-projectile-find-file
|
||||||
|
@ -71,6 +71,25 @@
|
||||||
", p" 'helm-projectile-switch-project
|
", p" 'helm-projectile-switch-project
|
||||||
", y" 'helm-show-kill-ring
|
", y" 'helm-show-kill-ring
|
||||||
|
|
||||||
|
;; <localleader>
|
||||||
|
"\\ \\" 'neotree-toggle
|
||||||
|
"\\ ;" 'linum-mode
|
||||||
|
"\\ =" 'toggle-transparency
|
||||||
|
"\\ e" 'evil-emacs-state
|
||||||
|
|
||||||
|
"\\ ]" 'next-buffer
|
||||||
|
"\\ [" 'previous-buffer
|
||||||
|
|
||||||
|
"\\ o f" 'my-send-dir-to-finder
|
||||||
|
"\\ o u" 'my-send-to-transmit
|
||||||
|
"\\ o l" 'my-send-to-launchbar
|
||||||
|
"\\ o L" 'my-send-dir-to-launchbar
|
||||||
|
|
||||||
|
;; tmux: cd (default-directory)
|
||||||
|
"\\ o t" (λ (ex:tmux-chdir nil t))
|
||||||
|
;; tmux: cd [project root]
|
||||||
|
"\\ o T" 'ex:tmux-chdir
|
||||||
|
|
||||||
;; behave like D and C; yank to end of line
|
;; behave like D and C; yank to end of line
|
||||||
"Y" (λ (evil-yank (point) (point-at-eol)))
|
"Y" (λ (evil-yank (point) (point-at-eol)))
|
||||||
|
|
||||||
|
@ -114,26 +133,6 @@
|
||||||
(linum-mode 0)
|
(linum-mode 0)
|
||||||
(remove-hook 'pre-command-hook 'my--disable-linum))
|
(remove-hook 'pre-command-hook 'my--disable-linum))
|
||||||
|
|
||||||
(bind 'god my-mode-map
|
|
||||||
;; <localleader>
|
|
||||||
"\\" 'neotree-toggle
|
|
||||||
";" 'linum-mode
|
|
||||||
"=" 'toggle-transparency
|
|
||||||
"e" 'evil-emacs-state
|
|
||||||
|
|
||||||
"]" 'next-buffer
|
|
||||||
"[" 'previous-buffer
|
|
||||||
|
|
||||||
"o f" 'my-send-dir-to-finder
|
|
||||||
"o u" 'my-send-to-transmit
|
|
||||||
"o l" 'my-send-to-launchbar
|
|
||||||
"o L" 'my-send-dir-to-launchbar
|
|
||||||
|
|
||||||
;; tmux: cd (default-directory)
|
|
||||||
"o t" (λ (my:tmux-chdir nil t))
|
|
||||||
;; tmux: cd [project root]
|
|
||||||
"o T" 'my:tmux-chdir)
|
|
||||||
|
|
||||||
(bind 'emacs [escape] 'evil-normal-state)
|
(bind 'emacs [escape] 'evil-normal-state)
|
||||||
|
|
||||||
(bind 'insert my-mode-map
|
(bind 'insert my-mode-map
|
||||||
|
@ -161,7 +160,7 @@
|
||||||
(bind 'motion my-mode-map "g x" 'my-scratch-buffer) ; send to scratch buffer
|
(bind 'motion my-mode-map "g x" 'my-scratch-buffer) ; send to scratch buffer
|
||||||
|
|
||||||
;; Easy escape from insert mode (more responsive than using key-chord-define)
|
;; Easy escape from insert mode (more responsive than using key-chord-define)
|
||||||
(bind 'insert "j" #'my--maybe-exit-insert-mode)
|
(bind 'insert "j" 'my--maybe-exit-insert-mode)
|
||||||
|
|
||||||
(bind 'insert "C-g" 'evil-normal-state)
|
(bind 'insert "C-g" 'evil-normal-state)
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
(set-register ?@ "~/.emacs.d/init.el")
|
(set-register ?@ "~/.emacs.d/init.el")
|
||||||
|
|
||||||
(add-hook 'help-mode-hook 'visual-line-mode)
|
(add-hook 'help-mode-hook 'visual-line-mode)
|
||||||
(add-hook! 'before-save-hook
|
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||||
(unless (eq major-mode 'org-mode)
|
|
||||||
(delete-trailing-whitespace)))
|
|
||||||
|
|
||||||
;; Performance checks
|
;; Performance checks
|
||||||
(add-hook! 'find-file-hook
|
(add-hook! 'find-file-hook
|
||||||
|
@ -86,16 +84,17 @@
|
||||||
"\C-w" 'ido-delete-backward-word-updir))
|
"\C-w" 'ido-delete-backward-word-updir))
|
||||||
|
|
||||||
;; Make ESC quit all the things
|
;; Make ESC quit all the things
|
||||||
(bind minibuffer-inactive-mode-map [escape] (λ (other-window 1)))
|
;; (bind minibuffer-inactive-mode-map [escape] (λ (other-window 1)))
|
||||||
(bind (list minibuffer-local-map
|
(bind (list minibuffer-local-map
|
||||||
minibuffer-local-ns-map
|
minibuffer-local-ns-map
|
||||||
minibuffer-local-completion-map
|
minibuffer-local-completion-map
|
||||||
minibuffer-local-must-match-map
|
minibuffer-local-must-match-map
|
||||||
minibuffer-local-isearch-map) [escape] 'my--minibuffer-quit)
|
minibuffer-local-isearch-map)
|
||||||
|
[escape] 'my--minibuffer-quit)
|
||||||
(bind 'emacs [escape] 'my--minibuffer-quit)
|
(bind 'emacs [escape] 'my--minibuffer-quit)
|
||||||
(bind 'god [escape] 'evil-god-state-bail)
|
(bind 'god [escape] 'evil-god-state-bail)
|
||||||
(bind 'normal evil-command-window-mode-map [escape] 'kill-buffer-and-window)
|
(bind 'normal evil-command-window-mode-map [escape] 'kill-buffer-and-window)
|
||||||
(bind evil-ex-map [escape] 'my--minibuffer-quit)
|
;; (bind evil-ex-map [escape] 'my--minibuffer-quit)
|
||||||
|
|
||||||
(bind (list evil-ex-search-keymap minibuffer-local-map)
|
(bind (list evil-ex-search-keymap minibuffer-local-map)
|
||||||
"\C-w" 'evil-delete-backward-word)
|
"\C-w" 'evil-delete-backward-word)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue