diff options
Diffstat (limited to '')
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | init.org | 18 | ||||
m--------- | lib/hlint-refactor | 0 |
3 files changed, 20 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules index fdcca20..d267480 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,6 +58,9 @@ [submodule "helm"] path = lib/helm url = git@github.com:emacs-helm/helm.git +[submodule "hlint-refactor"] + path = lib/hlint-refactor + url = git@github.com:mpickering/hlint-refactor-mode.git [submodule "ivy"] path = lib/ivy url = git@github.com:abo-abo/swiper.git @@ -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 diff --git a/lib/hlint-refactor b/lib/hlint-refactor new file mode 160000 +Subproject 92c69aa01c65968e86c15db087bb1ea785e4736 |