summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index e25961e..4379085 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -135,6 +135,14 @@
(apply orig-fun args)))
(advice-add 'align-regexp :around #'align-regexp--use-spaces)
+(defun sh-smie-sh-rules--fix (args)
+ "Replace :after \"then\" with :after \"if\" because Emacs 24
+sh-script.el is broken."
+ (if (equal args (list :after "then"))
+ (list :after "if")
+ args))
+(advice-add 'sh-smie-sh-rules :filter-args #'sh-smie-sh-rules--fix)
+
(require 'go-mode-load nil t)