From 3422f2f8593b4f9e363742bb8fb5517535f70eec Mon Sep 17 00:00:00 2001 From: larstvei Date: Mon, 12 Jun 2023 19:49:42 +0200 Subject: [PATCH] use-package haskell-mode --- init.org | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/init.org b/init.org index 53fe98f..f2285bd 100644 --- a/init.org +++ b/init.org @@ -207,8 +207,7 @@ (let* ((package--builtins nil) (packages - '(haskell-mode ; A Haskell editing mode - lua-mode ; a major-mode for editing Lua scripts + '(lua-mode ; a major-mode for editing Lua scripts markdown-mode ; Emacs Major mode for Markdown-formatted files maude-mode ; Emacs mode for the programming language Maude minizinc-mode ; Major mode for MiniZinc code @@ -1555,9 +1554,12 @@ #+begin_src emacs-lisp - (add-hook 'haskell-mode-hook 'interactive-haskell-mode) - (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) - (add-hook 'haskell-mode-hook 'turn-on-haskell-indent) + ;; A Haskell editing mode + (use-package haskell-mode + :defer t + :hook ((haskell-mode . interactive-haskell-mode) + (haskell-mode . turn-on-haskell-doc-mode) + (haskell-mode . turn-on-haskell-indent))) #+end_src