Refactor + rearrange popup rules
This commit is contained in:
parent
d0cfb12689
commit
dbceec4149
3 changed files with 45 additions and 42 deletions
|
@ -90,7 +90,7 @@ session)."
|
|||
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)")
|
||||
|
||||
;; Configure `counsel-rg', `counsel-ag' & `counsel-pt'
|
||||
(set! :popup "^\\*ivy-occur counsel-[arp]g" :size (+ 2 ivy-height) :regexp t :autokill t)
|
||||
(set! :popup 'ivy-occur-grep-mode :size (+ 2 ivy-height) :regexp t :autokill t)
|
||||
|
||||
(dolist (cmd '(counsel-ag counsel-rg counsel-pt))
|
||||
(ivy-add-actions
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue