summaryrefslogtreecommitdiff
path: root/feebleline.el
diff options
context:
space:
mode:
authorbenjamin <benjamin.lindqvist@gmail.com>2018-09-11 21:28:44 +0200
committerbenjamin <benjamin.lindqvist@gmail.com>2018-09-11 21:29:50 +0200
commita8dc2089927beedd68440f8ccc7c688957e7db9f (patch)
tree70ac2436cf0028f8cc82dfde527fa8a4edbe63ed /feebleline.el
parent9ece1c02a60ed0209cda661bcb864a7e624e8aca (diff)
Made it possible to not show linenum info in feebleline. Solves #22
Diffstat (limited to 'feebleline.el')
-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