Skip to content

Commit

Permalink
Add custom lighter support
Browse files Browse the repository at this point in the history
  • Loading branch information
gzz2000 authored and rrthomas committed Jan 6, 2024
1 parent e0630f7 commit 48cc6ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dtrt-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ mode.
When dtrt-indent mode is enabled, the proper indentation offset
and `indent-tabs-mode' will be guessed for newly opened files and
adjusted transparently."
:lighter " dtrt-indent"
:lighter dtrt-indent-lighter
:group 'dtrt-indent
(if dtrt-indent-mode
(if (and (featurep 'smie) (not (null smie-grammar)) (not (eq smie-grammar 'unset)))
Expand Down Expand Up @@ -410,6 +410,12 @@ use either \\[customize] or the function `dtrt-indent-mode'."
:group 'dtrt-indent
:require 'dtrt-indent)

(defcustom dtrt-indent-lighter " dtrt-indent"
"Mode line lighter for the dtrt-indent minor mode.
If the value is nil, no lighter is displayed."
:type '(choice string
(const :tag "None" nil)))

(defcustom dtrt-indent-verbosity 1
"*Verbosity level.
Expand Down

0 comments on commit 48cc6ec

Please sign in to comment.