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

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

[elpa] externals/marginalia 5052240 114/241: annotate-buffer: use mode-n


From: Stefan Monnier
Subject: [elpa] externals/marginalia 5052240 114/241: annotate-buffer: use mode-name instead of major-mode
Date: Fri, 28 May 2021 20:49:08 -0400 (EDT)

branch: externals/marginalia
commit 5052240243c03997013911277de85ee7d7ca770d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    annotate-buffer: use mode-name instead of major-mode
    
    * mode-name is also shown in the modeline
    * more appropriate for user-facing output
---
 marginalia.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/marginalia.el b/marginalia.el
index e8817ee..5dd758b 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -535,7 +535,7 @@ Similar to `marginalia-annotate-symbol', but does not show 
symbol class."
        (if (buffer-modified-p buffer) "*" " ")
        (if (buffer-local-value 'buffer-read-only buffer) "%" " "))
       :face 'marginalia-modified)
-     ((buffer-local-value 'major-mode buffer) :width 30 :face 'marginalia-mode)
+     ((buffer-local-value 'mode-name buffer) :width 30 :face 'marginalia-mode)
      ((when-let (file (buffer-file-name buffer))
         (abbreviate-file-name file))
       :truncate (/ marginalia-truncate-width 2)



reply via email to

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