smart/dumb indent/dedent bindings

This commit is contained in:
Henrik Lissner 2016-01-07 01:11:32 -05:00
parent cbe8f2bd7f
commit 11b514c8a1

View file

@ -84,8 +84,8 @@
:ni "M-d" 'dash-at-point :ni "M-d" 'dash-at-point
;; Textmate-esque indent shift left/right ;; Textmate-esque indent shift left/right
:i "M-[" (kbd "C-o m l C-o I DEL C-o ` l") :i "M-]" 'narf/smart-indent
:i "M-]" (λ! (evil-shift-right (point-at-bol) (point-at-eol))) :i "M-[" 'narf/dumb-dedent
;; Restore osx text objects ;; Restore osx text objects
:i "<A-backspace>" 'evil-delete-backward-word :i "<A-backspace>" 'evil-delete-backward-word
@ -367,6 +367,7 @@
;; peoples' jimmies, apparently, but it's how I like it. ;; peoples' jimmies, apparently, but it's how I like it.
(map! "C-b" 'backward-word (map! "C-b" 'backward-word
:i "<tab>" 'narf/dumb-indent :i "<tab>" 'narf/dumb-indent
:i "<backtab>" 'narf/dumb-dedent
:i "<C-tab>" 'indent-for-tab-command :i "<C-tab>" 'indent-for-tab-command
;; No dumb-tab for lisp ;; No dumb-tab for lisp