From ee143eaf147847eada08207c8f72eb04dc834ed5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 12 Sep 2018 11:38:04 +0200 Subject: [PATCH] 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. --- init/functions.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/functions.el b/init/functions.el index ef4c8cef7..640957f10 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)