Add shackle compatibility for eww browser
This commit is contained in:
parent
a4ddb1bc9b
commit
f78fd0d91a
1 changed files with 4 additions and 1 deletions
|
@ -88,7 +88,8 @@ recognized by DOOM's popup system. They are:
|
||||||
(setq shackle-default-alignment 'below
|
(setq shackle-default-alignment 'below
|
||||||
shackle-default-size 8
|
shackle-default-size 8
|
||||||
shackle-rules
|
shackle-rules
|
||||||
'(("^\\*ftp " :noselect t :autokill t :noesc t)
|
'(("^\\*eww" :regexp t :size 0.5 :select t :autokill t :noesc t)
|
||||||
|
("^\\*ftp " :noselect t :autokill t :noesc t)
|
||||||
;; doom
|
;; doom
|
||||||
("^\\*doom:scratch" :regexp t :size 12 :noesc t :select t :modeline t :autokill t :static t)
|
("^\\*doom:scratch" :regexp t :size 12 :noesc t :select t :modeline t :autokill t :static t)
|
||||||
("^\\*doom:" :regexp t :size 0.35 :noesc t :select t :modeline t)
|
("^\\*doom:" :regexp t :size 0.35 :noesc t :select t :modeline t)
|
||||||
|
@ -279,6 +280,8 @@ properties."
|
||||||
(symbol-function 'pop-to-buffer)))
|
(symbol-function 'pop-to-buffer)))
|
||||||
(apply orig-fn args)))
|
(apply orig-fn args)))
|
||||||
(advice-add #'info :around #'doom*suppress-pop-to-buffer-same-window)
|
(advice-add #'info :around #'doom*suppress-pop-to-buffer-same-window)
|
||||||
|
(advice-add #'eww :around #'doom*suppress-pop-to-buffer-same-window)
|
||||||
|
(advice-add #'eww-browse-url :around #'doom*suppress-pop-to-buffer-same-window)
|
||||||
|
|
||||||
(defun doom*buffer-menu (&optional arg)
|
(defun doom*buffer-menu (&optional arg)
|
||||||
"Open `buffer-menu' in a popup window."
|
"Open `buffer-menu' in a popup window."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue