summaryrefslogtreecommitdiffstats
path: root/init.org
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2018-05-05 19:48:58 -0400
committerAmin Bandali <amin@aminb.org>2018-05-05 19:48:58 -0400
commit36fca3098e496e85810f533882535aea4d7c5b34 (patch)
treef2a87c7ef3c6ccf674c7efe8550b7f10359eeb95 /init.org
parenta81db9232492b543525e69e01451374515f835c7 (diff)
downloadconfigs-36fca3098e496e85810f533882535aea4d7c5b34.tar.gz
configs-36fca3098e496e85810f533882535aea4d7c5b34.tar.xz
configs-36fca3098e496e85810f533882535aea4d7c5b34.zip
[emacs] assimilate hlint-refactor
Diffstat (limited to 'init.org')
-rw-r--r--init.org18
1 files changed, 17 insertions, 1 deletions
diff --git a/init.org b/init.org
index 84f8408..7127c0e 100644
--- a/init.org
+++ b/init.org
@@ -941,7 +941,9 @@ TODO: break this giant source block down into individual org sections.
("S-SPC" . company-complete)))
#+end_src
-** [[https://github.com/haskell/haskell-mode][Haskell]]
+** Haskell
+
+*** [[https://github.com/haskell/haskell-mode][haskell-mode]]
#+begin_src emacs-lisp
(use-package haskell-mode
@@ -950,6 +952,20 @@ TODO: break this giant source block down into individual org sections.
haskell-indentation-left-offset 4
haskell-indentation-ifte-offset 4))
#+end_src
+
+*** [[https://github.com/mpickering/hlint-refactor-mode][hlint-refactor]]
+
+Emacs bindings for [[https://github.com/ndmitchell/hlint][hlint]]'s refactor option. This requires the refact
+executable from [[https://github.com/mpickering/apply-refact][apply-refact]].
+
+#+begin_src emacs-lisp
+(use-package hlint-refactor
+ :bind (:map hlint-refactor-mode-map
+ ("C-c l b" . hlint-refactor-refactor-buffer)
+ ("C-c l r" . hlint-refactor-refactor-at-point))
+ :hook (haskell-mode . hlint-refactor-mode))
+#+end_src
+
* Post initialization
:PROPERTIES:
:CUSTOM_ID: post-initialization