[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/nano-modeline 532f557c08 13/18: Space computation now t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/nano-modeline 532f557c08 13/18: Space computation now takes right margin into account |
Date: |
Thu, 12 May 2022 07:57:50 -0400 (EDT) |
branch: externals/nano-modeline
commit 532f557c08a6166d1e21482df965f420d50c86a9
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Space computation now takes right margin into account
---
nano-modeline.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/nano-modeline.el b/nano-modeline.el
index 2328b361f7..9ed01ec72f 100644
--- a/nano-modeline.el
+++ b/nano-modeline.el
@@ -459,25 +459,26 @@ KEY mode name, for reference only. Easier to do lookups
and/or replacements.
(propertize name 'face face-name)
(if (length name)
(propertize " " 'face face-modeline))
- (propertize primary 'face face-primary)))
+ (propertize primary 'face face-primary)))
(right (concat
(propertize secondary 'face face-secondary)
- (if (and (not (eq nano-modeline-prefix 'default))
+ (if (and (not (eq nano-modeline-prefix 'status))
(eq status 'modified))
- (propertize " [M]" 'face face-secondary)
+ (propertize " [M]" 'face face-name)
(if (window-dedicated-p)
- (propertize " [•]" 'face face-secondary)))
+ (propertize " •" 'face face-secondary)))
(propertize " " 'face `(:inherit ,face-modeline)
'display `(raise
,nano-modeline-space-bottom))))
(right-len (length (format-mode-line right))))
(concat
left
(propertize " " 'face face-secondary
- 'display `(space :align-to (- right ,(- right-len 0))))
+ 'display `(space :align-to (- right
+ (-1 . right-margin)
+ ,(- right-len 0))))
right)))
-
;; ---------------------------------------------------------------------
(defun nano-modeline-ein-notebook-mode ()
(let ((buffer-name (format-mode-line "%b")))
@@ -850,8 +851,7 @@ depending on the version of mu4e."
(nano-modeline-render (plist-get (cdr (assoc 'org-clock-mode
nano-modeline-mode-formats)) :icon)
buffer-name
(concat "(" mode-name
- (if branch (concat ", "
- (propertize branch 'face
'italic)))
+ (if branch (concat ", " branch))
")" )
org-mode-line-string)))
- [elpa] externals/nano-modeline ce924479de 05/18: Moved dedcited/modified status at end of modeline., (continued)
- [elpa] externals/nano-modeline ce924479de 05/18: Moved dedcited/modified status at end of modeline., ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline f75b90da5d 09/18: Read status from base buffer in case buffer is indirect, ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline 5948e191f1 06/18: Bugfix: uncommented text mode, ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline 5956e5a4fe 14/18: Fixed and simplified custom format for modes, ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline cdedb79ab5 17/18: Fixed imenu list mode (faulty code), ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline 960ff4f01a 16/18: Version 0.7, ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline d37ff5b014 18/18: Merge branch 'no-prefix', ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline acd020a045 10/18: Added imenu-list mode, ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline 6ab5d5b94d 15/18: Better display format for org headings, ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline a4e72d1486 11/18: Added handling of indirect buffer, ELPA Syncer, 2022/05/12
- [elpa] externals/nano-modeline 532f557c08 13/18: Space computation now takes right margin into account,
ELPA Syncer <=