Electric-indent on words

This commit is contained in:
Henrik Lissner 2016-03-23 11:59:06 -04:00
parent 3c72351220
commit 28a720e626
4 changed files with 22 additions and 2 deletions

View file

@ -16,6 +16,10 @@
;; Formatting
(setq ruby-deep-indent-paren t)
(add-hook! ruby-mode
(electric-indent-local-mode +1)
(setq narf-electric-indent-words '("else" "end" "elseif")))
;; Don't interfere with my custom RET behavior
(define-key ruby-mode-map [?\n] nil)