From 8f9c0441f72aceca04416d0fa2d2a99c57aadbe3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 23 Feb 2016 13:11:41 -0500 Subject: [PATCH] Clean up bindings --- private/my-bindings.el | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/private/my-bindings.el b/private/my-bindings.el index 3016bc7c7..6db250305 100644 --- a/private/my-bindings.el +++ b/private/my-bindings.el @@ -49,14 +49,6 @@ "C-" 'evil-emacs-state :e "C-" 'evil-normal-state - :m "M-j" 'narf/multi-next-line - :m "M-k" 'narf/multi-previous-line - - :n "M-r" 'narf:eval-buffer - :v "M-r" 'narf:eval-region - :n "M-o" 'narf/ido-find-file - :n "M-O" 'narf/ido-find-project-file - :m "M-1" (λ! (narf:switch-to-tab 0)) :m "M-2" (λ! (narf:switch-to-tab 1)) :m "M-3" (λ! (narf:switch-to-tab 2)) @@ -74,13 +66,20 @@ "A-SPC" 'just-one-space "M-a" 'mark-whole-buffer "M-c" 'evil-yank + "M-o" 'helm-find-files + "M-q" 'evil-quit-all "M-s" 'evil-write "M-v" 'clipboard-yank - "M-q" 'evil-quit-all "M-z" 'undo "M-Z" 'redo "C-M-f" 'narf:toggle-fullscreen + :m "M-j" 'narf/multi-next-line + :m "M-k" 'narf/multi-previous-line + + :n "M-r" 'narf:eval-buffer + :v "M-r" 'narf:eval-region + :ni "" 'narf/dash-at-pt ;; Textmate-esque indent shift left/right @@ -258,11 +257,9 @@ ;; aliases for % :m "%" 'evilmi-jump-items - :m [tab] (λ! (cond ((eq major-mode 'org-mode) - (org-cycle)) - (t (if (ignore-errors (hs-already-hidden-p)) - (hs-toggle-hiding) - (call-interactively 'evilmi-jump-items))))) + :m [tab] (λ! (if (ignore-errors (hs-already-hidden-p)) + (hs-toggle-hiding) + (call-interactively 'evilmi-jump-items))) ;; Textmate-esque newlines :i "" 'backward-delete-char-untabify @@ -358,11 +355,11 @@ ;; Keymap fixes ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; This section is dedicated to keymaps that "fix" certain keys so -;; that they behave more like vim (or how I like it). +;; This section is dedicated to bindings that "fix" certain keys so that they behave more +;; like vim (or how I like it). -;; Restores "dumb" indentation to the tab key. This rustles a lot of -;; peoples' jimmies, apparently, but it's how I like it. +;; Restores "dumb" indentation to the tab key. This rustles a lot of peoples' jimmies, +;; apparently, but it's how I like it. (map! "C-b" 'backward-word :i "" 'narf/dumb-indent :i "" 'narf/dumb-dedent