about summary refs log tree commit diff
path: root/init/functions.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-09-12T09·38+0200
committerVincent Ambo <github@tazj.in>2019-02-10T20·43+0100
commitee143eaf147847eada08207c8f72eb04dc834ed5 (patch)
tree9afc9e7faf55ea9626135b83c6a6abea3812c003 /init/functions.el
parentbab9f15a33ae85a685a766e74e57df3ade467274 (diff)
fix: Run GHCi-workaround /after/ switching to REPL buffer
This simply changes the advice position. This way around makes more
sense in case that the REPL is just being started up.
Diffstat (limited to 'init/functions.el')
-rw-r--r--init/functions.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/functions.el b/init/functions.el
index ef4c8cef79d9..640957f109e1 100644
--- a/init/functions.el
+++ b/init/functions.el
@@ -254,9 +254,9 @@ Including indent-buffer, which should not be called automatically on save."
 ;; is selected.
 ;;
 ;; Upstream issue: https://github.com/commercialhaskell/intero/issues/569
-(advice-add 'intero-repl :before (lambda (&rest r) (intero-fix-ghci-panic))
+(advice-add 'intero-repl :after (lambda (&rest r) (intero-fix-ghci-panic))
             '((name . intero-panic-fix)))
-(advice-add 'intero-repl-load :before (lambda (&rest r) (intero-fix-ghci-panic))
+(advice-add 'intero-repl-load :after (lambda (&rest r) (intero-fix-ghci-panic))
             '((name . intero-panic-fix)))
 
 (provide 'functions)