branch: externals/nano-modeline
commit febe3d4c12c7e0582b314e0a40ccde35ff44552d
Author: Nicolas P. Rougier <[email protected]>
Commit: Nicolas P. Rougier <[email protected]>

    Updated pdf view mode
---
 nano-modeline.el | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/nano-modeline.el b/nano-modeline.el
index 8f392da..2d4ae32 100644
--- a/nano-modeline.el
+++ b/nano-modeline.el
@@ -615,14 +615,10 @@ depending on the version of mu4e."
               (or (ignore-errors
                 (number-to-string (pdf-cache-number-of-pages)))
               "???"))))
-    (nano-modeline-compose
-     "RW"
-     buffer-name
-     (concat "(" mode-name
-         (if branch (concat ", "
-                (propertize branch 'face 'italic)))
-         ")" )
-     page-number)))
+    (nano-modeline-render "PDF"
+                          buffer-name
+                          (if branch (concat "(" branch ")") "")
+                          page-number)))
 
 ;; ---------------------------------------------------------------------
 (defun nano-modeline-buffer-menu-mode-p ()

Reply via email to