emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/backports-25.2 4af6945 39/46: Add `size-indication


From: Noam Postavsky
Subject: [Emacs-diffs] scratch/backports-25.2 4af6945 39/46: Add `size-indication-mode' to the menu on `mouse-1' "Top"
Date: Sun, 2 Oct 2016 14:04:50 +0000 (UTC)

branch: scratch/backports-25.2
commit 4af6945f6008b2e280dd2a097413b7bfe751725f
Author: Lars Ingebrigtsen <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Add `size-indication-mode' to the menu on `mouse-1' "Top"
    
    * lisp/bindings.el (mode-line-column-line-number-mode-map):
    Add `size-indication-mode' to the menu (bug#5727).
    
    (cherry picked from commit 3984fbbce9c93a118eebd73366e8338867c88e4d)
---
 lisp/bindings.el |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/bindings.el b/lisp/bindings.el
index 9e8e745..709efb8 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -338,6 +338,10 @@ mouse-3: Toggle minor modes"
 (defvar mode-line-column-line-number-mode-map
   (let ((map (make-sparse-keymap))
        (menu-map (make-sparse-keymap "Toggle Line and Column Number Display")))
+    (bindings--define-key menu-map [size-indication-mode]
+      '(menu-item "Display Size Indication" size-indication-mode
+                 :help "Toggle displaying a size indication in the mode-line"
+                 :button (:toggle . size-indication-mode)))
     (bindings--define-key menu-map [line-number-mode]
       '(menu-item "Display Line Numbers" line-number-mode
                  :help "Toggle displaying line numbers in the mode-line"



reply via email to

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