Skip to content

Commit

Permalink
Fix call of `define-obsolete-variable-alias'
Browse files Browse the repository at this point in the history
* doom-modeline-core.el (doom-modeline-check-simple-format): Move
`defcustom' after the `define-obsolete-variable-alias' form.  From
the docstring:

If CURRENT-NAME is a defcustom or a defvar (more generally, any
variable where OBSOLETE-NAME may be set, e.g. in an init file,
before the alias is defined), then the
define-obsolete-variable-alias statement should be evaluated
before the defcustom, if user customizations are to be respected.
  • Loading branch information
dr-scsi authored and seagle0128 committed Feb 21, 2024
1 parent 62890ef commit f67f627
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doom-modeline-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -445,16 +445,16 @@ in the given order."
:type '(alist :key-type symbol :value-type sexp)
:group 'doom-modeline)

(defcustom doom-modeline-check-simple-format t
"If non-nil, only display one number for check information if applicable."
:type 'boolean
:group 'doom-modeline)

(define-obsolete-variable-alias
'doom-modeline-checker-simple-format
'doom-modeline-check-simple-format
"4.2.0")

(defcustom doom-modeline-check-simple-format t
"If non-nil, only display one number for check information if applicable."
:type 'boolean
:group 'doom-modeline)

(defcustom doom-modeline-number-limit 99
"The maximum number displayed for notifications."
:type 'integer
Expand Down

0 comments on commit f67f627

Please sign in to comment.