summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--feebleline.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/feebleline.el b/feebleline.el
index bc3c71c..b9f6af2 100644
--- a/feebleline.el
+++ b/feebleline.el
@@ -97,6 +97,9 @@
(defcustom feebleline-show-directory t
"Set this if you want to show the direcory path as well as the file-name in the modeline proxy."
:group 'feebleline)
+(defcustom feebleline-show-linenum t
+ "Set this if you want to show line number and column number in the modeline proxy."
+ :group 'feebleline)
(defun feebleline-previous-buffer-name ()
"Get name of previous buffer."
@@ -131,7 +134,10 @@ sent to `add-text-properties'.")
'(
("%s" ((if feebleline-show-time (format-time-string "[%H:%M:%S] ") ""))
(face feebleline-time-face))
- ("%6s" ((format "%s:%s" (format-mode-line "%l") (current-column)))
+ ("%s"
+ ((if feebleline-show-linenum
+ (format "%5s:%-2s" (format-mode-line "%l") (current-column))
+ ""))
(face feebleline-linum-face))
(" %s" ((if (and feebleline-show-directory (buffer-file-name))
(replace-regexp-in-string