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

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

diff --git a/nano-modeline.el b/nano-modeline.el
index aa453b4..7c561552 100644
--- a/nano-modeline.el
+++ b/nano-modeline.el
@@ -592,14 +592,10 @@ depending on the version of mu4e."
               (or (ignore-errors
                 (number-to-string (doc-view-last-page-number)))
               "???"))))
-    (nano-modeline-compose
-     (nano-modeline-status)
-     buffer-name
-     (concat "(" mode-name
-         (if branch (concat ", "
-                (propertize branch 'face 'italic)))
-         ")" )
-     page-number)))
+    (nano-modeline-render "DOC"
+                           buffer-name
+                           (if branch (concat "(" branch ")") "")
+                           page-number)))
 
 ;; ---------------------------------------------------------------------
 (defun nano-modeline-pdf-view-mode-p ()

Reply via email to