Add popup hacks for pdf-tools' annot list windows
Annotations are displayed in stacked windows to the left of the pdf. Thanks to @UndeadKernel for help figuring this out.
This commit is contained in:
parent
0020631b2e
commit
6fe0017e24
1 changed files with 20 additions and 3 deletions
|
@ -184,6 +184,10 @@ the command buffer."
|
||||||
(advice-add #'info-lookup-symbol :after #'+popup*switch-to-info-window)
|
(advice-add #'info-lookup-symbol :after #'+popup*switch-to-info-window)
|
||||||
|
|
||||||
|
|
||||||
|
;; `multi-term'
|
||||||
|
(setq multi-term-buffer-name "doom terminal")
|
||||||
|
|
||||||
|
|
||||||
;; `neotree'
|
;; `neotree'
|
||||||
(after! neotree
|
(after! neotree
|
||||||
(advice-add #'neo-util--set-window-width :override #'ignore)
|
(advice-add #'neo-util--set-window-width :override #'ignore)
|
||||||
|
@ -244,9 +248,22 @@ instead of switch-to-buffer-*."
|
||||||
(advice-add #'persp-load-state-from-file :after #'+popup*persp-mode-restore-popups))
|
(advice-add #'persp-load-state-from-file :after #'+popup*persp-mode-restore-popups))
|
||||||
|
|
||||||
|
|
||||||
;; `multi-term'
|
;; `pdf-tools'
|
||||||
(after! multi-term
|
(after! pdf-tools
|
||||||
(setq multi-term-buffer-name "doom terminal"))
|
(setq tablist-context-window-display-action
|
||||||
|
'((+popup-display-buffer)
|
||||||
|
(side . left)
|
||||||
|
(slot . 2)
|
||||||
|
(window-height . 0.3)
|
||||||
|
(inhibit-same-window . t))
|
||||||
|
pdf-annot-list-display-buffer-action
|
||||||
|
'((+popup-display-buffer)
|
||||||
|
(side . left)
|
||||||
|
(slot . 3)
|
||||||
|
(inhibit-same-window . t)))
|
||||||
|
|
||||||
|
(add-hook 'pdf-annot-list-mode-hook #'hide-mode-line-mode)
|
||||||
|
(set! :popup "\\(^\\*Contents\\|'s annots\\*$\\)" :ignore t))
|
||||||
|
|
||||||
|
|
||||||
;; `wgrep'
|
;; `wgrep'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue