diff options
| -rw-r--r-- | config/emacs/init.el | 5 | ||||
| -rwxr-xr-x | tree/src/microhs/setup.sh | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el index d5db7d1..20970b0 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -898,7 +898,10 @@ With ARG, don't save the current layout." (haskell-tags-on-save t) (haskell-process-type 'cabal-repl) (haskell-process-auto-import-loaded-modules t) - :hook (haskell-mode . interactive-haskell-mode)) + :hook (haskell-mode . interactive-haskell-mode) + :config + (add-to-list 'compilation-error-regexp-alist-alist (cons 'microhs (list "^mhs:.*error:\\s-*\"\\(.*\\)\":\\s-*line \\([0-9]*\\), col \\([0-9]*\\)" 1 2 3 2))) + (add-to-list 'compilation-error-regexp-alist 'microhs)) (use-package opam-switch-mode ; make emacs mode respect switch :config diff --git a/tree/src/microhs/setup.sh b/tree/src/microhs/setup.sh index 374c238..297059f 100755 --- a/tree/src/microhs/setup.sh +++ b/tree/src/microhs/setup.sh @@ -3,5 +3,7 @@ set -e cd microhs +sed -i 's,^PREFIX=.*,PREFIX=${HOME}/.local,' Makefile make -make minstall +make install +make -f Makefile.packages |
