Skip to content

Commit 48cc6ec

Browse files
gzz2000rrthomas
authored andcommitted
Add custom lighter support
1 parent e0630f7 commit 48cc6ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dtrt-indent.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ mode.
192192
When dtrt-indent mode is enabled, the proper indentation offset
193193
and `indent-tabs-mode' will be guessed for newly opened files and
194194
adjusted transparently."
195-
:lighter " dtrt-indent"
195+
:lighter dtrt-indent-lighter
196196
:group 'dtrt-indent
197197
(if dtrt-indent-mode
198198
(if (and (featurep 'smie) (not (null smie-grammar)) (not (eq smie-grammar 'unset)))
@@ -410,6 +410,12 @@ use either \\[customize] or the function `dtrt-indent-mode'."
410410
:group 'dtrt-indent
411411
:require 'dtrt-indent)
412412

413+
(defcustom dtrt-indent-lighter " dtrt-indent"
414+
"Mode line lighter for the dtrt-indent minor mode.
415+
If the value is nil, no lighter is displayed."
416+
:type '(choice string
417+
(const :tag "None" nil)))
418+
413419
(defcustom dtrt-indent-verbosity 1
414420
"*Verbosity level.
415421

0 commit comments

Comments
 (0)