summaryrefslogtreecommitdiff
path: root/modeline.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-02-08 23:36:26 +0800
committerJSDurand <mmemmew@gmail.com>2021-02-08 23:36:26 +0800
commit393604e5bf4ce15df7342fdc094900fd1be2b39f (patch)
treed7b1e77cfe27b3ffa347fa2e9db632d97dfe7dc1 /modeline.el
parentc8d4224e42a710b262e8ba67d720f6eff4e89fcb (diff)
Constantly growing
A lot of improvements.
Diffstat (limited to 'modeline.el')
-rw-r--r--modeline.el28
1 files changed, 15 insertions, 13 deletions
diff --git a/modeline.el b/modeline.el
index 12893ea..6def3e3 100644
--- a/modeline.el
+++ b/modeline.el
@@ -327,19 +327,21 @@ W is the width, H is the height of the bar."
"The position of the cursor to be displayed in the mode line."
(cond
((derived-mode-p 'pdf-view-mode)
- (modeline-propertize
- (propertize
- (let ((current (pdf-view-current-page))
- (total (pdf-info-number-of-pages)))
- (concat
- "P."
- (number-to-string current)
- "/"
- (number-to-string total)))
- 'face (cond
- ((modeline-active-window-p) 'mode-line)
- (t 'mode-line-inactive)))
- nil "Current page / Total pages"))
+ (concat
+ (modeline-propertize
+ (propertize
+ (let* ((current (pdf-view-current-page))
+ (total (pdf-info-number-of-pages))
+ )
+ (concat
+ "P."
+ (number-to-string current)
+ "/"
+ (number-to-string total)))
+ 'face (cond
+ ((modeline-active-window-p) 'mode-line)
+ (t 'mode-line-inactive)))
+ nil "Current page / Total pages")))
(t
(modeline-propertize
(propertize