mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
core-popups: integrate buffer-menu into shackle
This commit is contained in:
@ -69,6 +69,7 @@ is enabled/disabled.'")
|
||||
("*Pp Eval Output*" :size 16 :noselect t :autokill t :autoclose t)
|
||||
("*Apropos*" :size 0.3)
|
||||
("*Backtrace*" :size 25 :noselect t)
|
||||
("*Buffer List*" :size 20 :autokill t)
|
||||
("*Help*" :size 16)
|
||||
("*Messages*" :size 10 :noselect t)
|
||||
("*Warnings*" :size 10 :noselect t :autokill t)
|
||||
@ -237,6 +238,17 @@ properties."
|
||||
;; Hacks
|
||||
;;
|
||||
|
||||
(progn ; hacks for built-in functions
|
||||
(defun doom*buffer-menu (&optional arg)
|
||||
"Open `buffer-menu' in a popup window."
|
||||
(interactive "P")
|
||||
(let ((buf (list-buffers-noselect arg)))
|
||||
(doom-popup-buffer buf)
|
||||
(with-current-buffer buf
|
||||
(setq mode-line-format "Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %; q to quit; ? for help."))))
|
||||
(advice-add #'buffer-menu :override #'doom*buffer-menu))
|
||||
|
||||
|
||||
(after! evil
|
||||
(let ((map doom-popup-mode-map))
|
||||
(define-key map [remap evil-window-delete] 'doom/popup-close)
|
||||
|
Reference in New Issue
Block a user