emacs-devel
[Top][All Lists]
Advanced

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

Show/Hide: Line and column numbers in the mode-line?


From: Pavel Janík
Subject: Show/Hide: Line and column numbers in the mode-line?
Date: Thu, 07 Feb 2002 07:50:30 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu)

What about this? Yes, people keep to ask how to display column number in
the mode-line, and we also have in the FAQ. Hmm, still Google tells me at
http://groups.google.com/groups?q=%2Bemacs+%2Bcolumn+%2Bnumber&hl=en&sa=N&tab=wg

Results 1 - 10 of about 9,760.

--- menu-bar.el.~1.194.~        Sun Feb  3 11:06:42 2002
+++ menu-bar.el Wed Feb  6 22:22:34 2002
@@ -572,6 +572,19 @@
 
 (defvar menu-bar-showhide-menu (make-sparse-keymap "Show/Hide"))
 
+(define-key menu-bar-showhide-menu [column-number-mode]
+  (menu-bar-make-toggle column-number-mode column-number-mode
+                       "Show Column Number" "Column number mode %s"
+                       "Show the current column number in the mode-line"))
+
+(define-key menu-bar-showhide-menu [line-number-mode]
+  (menu-bar-make-toggle line-number-mode line-number-mode
+                       "Show Line Number" "Line number mode %s"
+                       "Show the current line number in the mode-line"))
+
+(define-key menu-bar-showhide-menu [linecolumn-separator]
+  '("--"))
+
 (defun showhide-date-time ()
   "Toggle whether to show date and time in the mode-line."
   (interactive)

Attachment: snapshot.png
Description: PNG image

-- 
Pavel Janík

"when" is not a word I find useful about most bios bugs. Try "if" or
"less likely that being hit on the head by an asteroid"
                  -- Alan Cox in LKML about possibility of fixing BIOS bugs

reply via email to

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