sh-mode: add more electric 'words'

This commit is contained in:
Henrik Lissner 2016-10-11 13:20:22 +02:00
parent 8c5deda9e3
commit a1b0db0b07

View file

@ -9,7 +9,7 @@
:init (add-hook! sh-mode '(flycheck-mode doom|sh-extra-font-lock-activate))
:config
(def-company-backend! sh-mode (shell))
(def-electric! sh-mode :words ("else" "elif" "fi" "done"))
(def-electric! sh-mode :words ("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
(def-repl! sh-mode doom/inf-shell)
(setq sh-indent-after-continuation 'always)