Refactor + rearrange popup rules

This commit is contained in:
Henrik Lissner 2017-05-15 14:07:12 +02:00
parent d0cfb12689
commit dbceec4149
3 changed files with 45 additions and 42 deletions

View file

@ -92,7 +92,10 @@ invokes the repl. Takes the same arguements as `rtog/add-repl'."
(add-hook! 'quickrun--mode-hook (linum-mode +1))
:config
(set! :popup "*quickrun*" :size 10 :noesc t :autokill t :autoclose t)
(set! :popup
'("*quickrun*" :size 10 :noesc t :autokill t :autoclose t)
'("*eval*" :size 12 :noselect t :autokill t :autoclose t)
'("*Pp Eval Output*" :size 12 :noselect t :autokill t :autoclose t))
(defun +eval*quickrun-auto-close (&rest _)
"Allows us to silently re-run quickrun from within the quickrun buffer."