[Emacs] Add array multi-line support to sh-mode

This commit is contained in:
Ivan Malison 2016-11-18 18:45:19 -06:00
parent 8429e14c05
commit 1e8efaed1a
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -2027,7 +2027,17 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
** multi-line
#+BEGIN_SRC emacs-lisp
(imalison:use-package multi-line
:bind ("C-c d" . multi-line))
:bind ("C-c d" . multi-line)
:config
(progn
;; This only works for array respacing
(multi-line-defhook sh
(make-instance
'multi-line-strategy
:find multi-line-lisp-find-strategy
:respace (multi-line-default-respacers
(multi-line-clearing-reindenting-respacer
multi-line-force-first-and-last-respacer))))))
#+END_SRC
** comment-dwim-2
#+BEGIN_SRC emacs-lisp