From 1e8efaed1a8d9f3961838865525f4d10fb18aa14 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 18 Nov 2016 18:45:19 -0600 Subject: [PATCH] [Emacs] Add array multi-line support to sh-mode --- dotfiles/emacs.d/README.org | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 1570b0d4..6e499d07 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -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