mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/haskell: prevent 'kill the whole session' prompts
When closing the haskell-interactive-mode popup.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user