lang/haskell: prevent 'kill the whole session' prompts

When closing the haskell-interactive-mode popup.
This commit is contained in:
Henrik Lissner 2019-10-20 20:12:37 -04:00
parent c56f0513fa
commit 88857b34ed
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -25,6 +25,14 @@
haskell-cabal-mode
literate-haskell-mode)
#'+haskell/open-repl)
;; Prevent the 'Kill the whole session (y or n)?' prompt caused by the popup
;; manager auto-killing haskell-interactive-mode's popup buffer (and process)
;; by settings :ttl to nil.
(set-popup-rule!
(lambda (bname _action)
(eq (buffer-local-value 'major-mode (get-buffer bname))
'haskell-interactive-mode))
:select t :ttl nil :quit nil)
(add-hook! 'haskell-mode-hook
#'haskell-collapse-mode ; support folding haskell code blocks