Uncluttered custom modeline to show page numbers

Add rules to handle windows that should not be considered as popups.
This commit is contained in:
UndeadKernel
2018-04-12 16:03:48 +02:00
parent 717f6e3cfe
commit 12fd06d4e6
2 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
;;; tools/pdf/+modeline.el -*- lexical-binding: t; -*-
(def-modeline-segment! +pdf-tools-pages
"Current and total page indicator for PDF documents."
(format " P %d/%d" (pdf-view-current-page) (pdf-cache-number-of-pages)))
(def-modeline! pdf-tools-modeline
(bar matches " " buffer-info +pdf-tools-pages)
(major-mode vcs))