mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
Uncluttered custom modeline to show page numbers
Add rules to handle windows that should not be considered as popups.
This commit is contained in:
10
modules/tools/pdf/+modeline.el
Normal file
10
modules/tools/pdf/+modeline.el
Normal 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))
|
Reference in New Issue
Block a user