emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/nano-modeline 0c94fc8 20/24: Linting


From: ELPA Syncer
Subject: [elpa] externals/nano-modeline 0c94fc8 20/24: Linting
Date: Wed, 6 Oct 2021 17:57:36 -0400 (EDT)

branch: externals/nano-modeline
commit 0c94fc8fc5890fac38221ad35b2f39be12f7f855
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>

    Linting
---
 nano-modeline.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/nano-modeline.el b/nano-modeline.el
index 5be9f9e..8cecf51 100644
--- a/nano-modeline.el
+++ b/nano-modeline.el
@@ -581,7 +581,9 @@ Modeline is composed as:
 ;;   'header-line `(:background ,(face-background 'nano-subtle))))
 ;;(add-hook 'Buffer-menu-mode-hook
 ;;          #'buffer-menu-mode-header-line)
-(setq Buffer-menu-use-header-line nil)
+(if (boundp 'Buffer-menu-use-header-line)
+    (setq Buffer-menu-use-header-line nil))
+
 
 ;; ---------------------------------------------------------------------
 (defun nano-modeline-completion-list-mode-p ()
@@ -672,7 +674,9 @@ Modeline is composed as:
   (nano-modeline-face-clear 'mode-line)
   (nano-modeline-face-clear 'mode-line-inactive)
   (nano-modeline-face-clear 'header-line)
-  (setq eshell-status-in-modeline nil)
+  
+  (if (boundp 'eshell-status-in-modeline)
+    (setq eshell-status-in-modeline nil))
   
         ;; TTY mode top
   (cond ((and (not (display-graphic-p))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]