summary refs log tree commit diff
diff options
context:
space:
mode:
authorCrazazy2023-06-08 14:37:18 +0200
committerCrazazy2023-09-23 13:10:15 +0200
commitd383a7dbb96829886f98f9e727b5e0a162f5e23d (patch)
tree201efb95b5add01f6280761f5cbf683e4cedc3a0
parenteac372bb7167ab507dcb18873556e617ec196df3 (diff)
fix haskell-mode
-rw-r--r--emacs.org27
1 files changed, 15 insertions, 12 deletions
diff --git a/emacs.org b/emacs.org
index 92bf0fa..9ef4f19 100644
--- a/emacs.org
+++ b/emacs.org
@@ -388,18 +388,21 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto
     It has nix and lisp support, but other langages are fairly standards so not much configuration needed there
     #+begin_src emacs-lisp :tangle emacsconfig/extras.el
       (use-package smartparens
-	:hook
-	(emacs-lisp-mode . smartparens-mode)
-	(nix-mode . smartparens-mode)
-	(lisp-mode . smartparens-mode)
-	:config
-	(sp-with-modes '(lisp-mode emacs-lisp-mode)
-		       (sp-local-pair "'" nil :actions nil)
-		       (sp-local-pair "`" nil :actions nil))
+        :hook
+        (emacs-lisp-mode . smartparens-mode)
+        (nix-mode . smartparens-mode)
+        (haskell-mode . smartparens-mode)
+        (lisp-mode . smartparens-mode)
+        :config
+        (sp-with-modes '(lisp-mode emacs-lisp-mode)
+          (sp-local-pair "'" nil :actions nil)
+          (sp-local-pair "`" nil :actions nil))
 
-	(sp-with-modes '(nix-mode)
-		       (sp-local-pair "'" nil :actions nil)
-		       (sp-local-pair "''" "''")))
+        (sp-with-modes '(haskell-mode)
+          (sp-local-pair "'" nil :actions nil))
+        (sp-with-modes '(nix-mode)
+          (sp-local-pair "'" nil :actions nil)
+          (sp-local-pair "''" "''")))
     #+end_src
 *** Languages
     Other than that, there are some language-specific setups that I want to do,which are a bit more complicated
@@ -531,7 +534,7 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto
          :hook
          (haskell-mode . dante-mode)
          :custom
-         (dante-repl-command-line (nix-executable-find haskell-env "ghci"))
+         (dante-repl-command-line (list (nix-executable-find haskell-env "ghci")))
          (dante-methods '(nix-ghci bare-cabal bare-ghci)))
      #+end_src