summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2025-11-17 09:10:26 -0800
committerThomas Ulmer <thomasmulmer02@gmail.com>2025-11-17 09:10:26 -0800
commitb31209e20a5d5ebb76a28e812e1e2db87a996dba (patch)
tree4fd3ba4dac0c690b8861cf9135286629c436ec31
parent2146d2f2e5f43c90663ea114174ad859b12fa811 (diff)
prevent some whining on startup
-rw-r--r--emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 481935c..dc764f6 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -586,10 +586,11 @@ given keymap or in the global keymap."
:custom
(haskell-tags-on-save t)
(haskell-process-type 'cabal-repl)
+ (haskell-process-auto-import-loaded-modules t)
:hook (haskell-mode . interactive-haskell-mode))
(use-package opam-switch-mode
:config
- (when (file-exists-p "~/.opam")
+ (when (and (file-exists-p "~/.opam") (executable-find "opam"))
(opam-switch-set-switch "default")))
(use-package tuareg
:after opam-switch-mode)