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:
Henrik Lissner 2018-06-14 19:55:36 +02:00
parent 0020631b2e
commit 6fe0017e24
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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'