about summary refs log tree commit diff
path: root/emacs.d/wpc/packages
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2018-07-06T17·34-0400
committerWilliam Carroll <wpcarro@gmail.com>2018-07-19T16·00-0400
commitbb8cb310fa67db5f1431aeb69607722ebbb51217 (patch)
tree3fbac411a10cfb3da77df99698f26195b9becc84 /emacs.d/wpc/packages
parentb147b5fbd02440b602710bb86340bfe33ba21895 (diff)
Extend Haskell support
- Format imports on buffer-save.
- Adds two new snippets
Diffstat (limited to 'emacs.d/wpc/packages')
-rw-r--r--emacs.d/wpc/packages/wpc-haskell.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs.d/wpc/packages/wpc-haskell.el b/emacs.d/wpc/packages/wpc-haskell.el
index 5be444e51158..e6525537ba44 100644
--- a/emacs.d/wpc/packages/wpc-haskell.el
+++ b/emacs.d/wpc/packages/wpc-haskell.el
@@ -26,7 +26,9 @@
          '(("`mappend`" . "⊕")
            ("<>"        . "⊕"))))
     (dolist (item m-symbols) (add-to-list 'haskell-font-lock-symbols-alist item)))
-  (setq haskell-font-lock-symbols t))
+  (setq haskell-font-lock-symbols t)
+  (add-hook 'before-save-hook #'haskell-align-imports))
+
 
 (defun empire/haskell/module->test ()
   "Jump from a module to a test."
@@ -54,4 +56,4 @@
     (empire/haskell/test->module)))
 
 (provide 'wpc-haskell)
-;;; haskell.el ends here
+;;; wpc-haskell.el ends here