Merge pull request #1089 from UndeadKernel/fix_pdf_modeline

pdf-tools: fixes for the new `modeline` module
This commit is contained in:
Henrik Lissner 2019-01-02 16:01:07 -05:00 committed by GitHub
commit c7f9886be8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -6,8 +6,8 @@
(if (featurep! :ui modeline)
(def-modeline-format! '+pdf
'(+mode-line-bar " " +mode-line-buffer-id " " +pdf-pages)
'(+mode-line-major-mode +mode-line-vcs))
'(+modeline-matches " " +modeline-buffer-id " " +pdf-pages)
'(+modeline-major-mode (vc-mode (" " +modeline-vcs))))
(def-modeline! '+pdf
'(bar matches " " buffer-info " " +pdf-pages)
'(major-mode vcs)))

View file

@ -34,8 +34,7 @@
(load! "+modeline"))
;; Handle PDF-tools related popups better
(set-popup-rule! "^\\*Outline*" :side 'right :size 40 :select nil)
;; TODO: Add additional important windows that should be handled differently
;; TODO: These two next rules don't work (they should), investigate
;; The next rules are not needed, they are defined in modules/ui/popups/+hacks.el
;; (set-popup-rule! "\\*Contents\\*" :side 'right :size 40)
;; (set-popup-rule! "* annots\\*$" :side 'left :size 40 :select nil)
)