ui/popup: polish default rules
- Establish popup naming convention: - *doom:name* -> a temporary editing buffer (requires interaction) - *doom name* -> a transient buffer (no interaction required)
This commit is contained in:
parent
c6ceb147e6
commit
c549091ce5
2 changed files with 12 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; emacs/eshell/autoload/eshell.el -*- lexical-binding: t; -*-
|
;;; emacs/eshell/autoload/eshell.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(defvar eshell-buffer-name "*doom eshell*")
|
(defvar eshell-buffer-name "*doom:eshell*")
|
||||||
|
|
||||||
(defvar +eshell-buffers (make-ring 25)
|
(defvar +eshell-buffers (make-ring 25)
|
||||||
"List of open eshell buffers.")
|
"List of open eshell buffers.")
|
||||||
|
|
|
@ -130,22 +130,18 @@ prevent the popup(s) from messing up the UI (or vice versa)."
|
||||||
'(("^\\*" :slot 1 :vslot -1 :select t)
|
'(("^\\*" :slot 1 :vslot -1 :select t)
|
||||||
("^ \\*" :slot 1 :vslot -1 :size +popup-shrink-to-fit)))
|
("^ \\*" :slot 1 :vslot -1 :size +popup-shrink-to-fit)))
|
||||||
(when (featurep! +defaults)
|
(when (featurep! +defaults)
|
||||||
'(("^\\*bin/doom\\*$"
|
'(("^\\*Completions"
|
||||||
:vslot 9999 :size 0.75 :quit 'current :select t :ttl 0)
|
|
||||||
("^\\*Completions"
|
|
||||||
:slot -1 :vslot -2 :ttl 0)
|
:slot -1 :vslot -2 :ttl 0)
|
||||||
("^\\*Compil\\(?:ation\\|e-Log\\)"
|
("^\\*\\(?:Compil\\(?:ation\\|e-Log\\)\\|Messages\\)"
|
||||||
:vslot -2 :size 0.3 :ttl nil :quit t)
|
:vslot -2 :size 0.3 :autosave t :quit t :ttl nil)
|
||||||
("^\\*\\(?:scratch\\|Messages\\)"
|
("^\\*doom " ; transient buffers (no interaction required)
|
||||||
:autosave t :ttl nil)
|
:vslot -3 :size 0.25 :autosave t :select t :quit nil :ttl 0)
|
||||||
|
("^\\*doom:" ; editing buffers (interaction required)
|
||||||
|
:vslot -4 :size 0.35 :autosave t :select t :modeline t :quit nil :ttl t)
|
||||||
("^\\*Man "
|
("^\\*Man "
|
||||||
:size 0.45 :vslot -3 :ttl 0 :quit t :select t)
|
:vslot -5 :size 0.45 :select t :quit t :ttl 0)
|
||||||
("^\\*doom \\(?:term\\|eshell\\)"
|
|
||||||
:size 0.25 :vslot -4 :select t :quit nil :ttl 0)
|
|
||||||
("^\\*doom:"
|
|
||||||
:vslot -5 :size 0.35 :size bottom :autosave t :select t :modeline t :quit nil)
|
|
||||||
("^\\*\\(?:\\(?:Pp E\\|doom e\\)val\\)"
|
("^\\*\\(?:\\(?:Pp E\\|doom e\\)val\\)"
|
||||||
:size +popup-shrink-to-fit :ttl 0 :select ignore)
|
:size +popup-shrink-to-fit :select ignore :ttl 0)
|
||||||
("^\\*Customize"
|
("^\\*Customize"
|
||||||
:slot 2 :side right :select t :quit t)
|
:slot 2 :side right :select t :quit t)
|
||||||
("^ \\*undo-tree\\*"
|
("^ \\*undo-tree\\*"
|
||||||
|
@ -153,11 +149,9 @@ prevent the popup(s) from messing up the UI (or vice versa)."
|
||||||
;; `help-mode', `helpful-mode'
|
;; `help-mode', `helpful-mode'
|
||||||
("^\\*[Hh]elp"
|
("^\\*[Hh]elp"
|
||||||
:slot 2 :vslot -2 :size 0.35 :select t)
|
:slot 2 :vslot -2 :size 0.35 :select t)
|
||||||
;; `eww' (and used by dash docsets)
|
("^\\*eww\\*" ; `eww' (and used by dash docsets)
|
||||||
("^\\*eww\\*"
|
|
||||||
:vslot -11 :size 0.35 :select t)
|
:vslot -11 :size 0.35 :select t)
|
||||||
;; `Info-mode'
|
("^\\*info\\*$" ; `Info-mode'
|
||||||
("^\\*info\\*$"
|
|
||||||
:slot 2 :vslot 2 :size 0.45 :select t)))
|
:slot 2 :vslot 2 :size 0.45 :select t)))
|
||||||
'(("^\\*Backtrace" :vslot 99 :size 0.4 :quit nil)
|
'(("^\\*Backtrace" :vslot 99 :size 0.4 :quit nil)
|
||||||
("^\\*CPU-Profiler-Report " :side bottom :vslot 100 :slot 1 :height 0.4 :width 0.5 :quit nil)
|
("^\\*CPU-Profiler-Report " :side bottom :vslot 100 :slot 1 :height 0.4 :width 0.5 :quit nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue