lang/haskell: prevent 'kill the whole session' prompts
When closing the haskell-interactive-mode popup.
This commit is contained in:
parent
c56f0513fa
commit
88857b34ed
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@
|
||||||
haskell-cabal-mode
|
haskell-cabal-mode
|
||||||
literate-haskell-mode)
|
literate-haskell-mode)
|
||||||
#'+haskell/open-repl)
|
#'+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
|
(add-hook! 'haskell-mode-hook
|
||||||
#'haskell-collapse-mode ; support folding haskell code blocks
|
#'haskell-collapse-mode ; support folding haskell code blocks
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue