mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Rename def-modeline! -> def-modeline-format!
As to differentiate it from the old def-modeline! macro. This only affects users of the +new modeline.
This commit is contained in:
@ -204,7 +204,7 @@
|
||||
;;
|
||||
(defvar doom-mode-line-alist nil)
|
||||
|
||||
(defun def-modeline! (name left &optional right)
|
||||
(defun def-modeline-format! (name left &optional right)
|
||||
(setf (alist-get name doom-mode-line-alist) (list left right)))
|
||||
|
||||
(defun set-modeline! (name &optional default)
|
||||
@ -461,11 +461,11 @@ segment.")
|
||||
(format " %dW" (count-words beg end)))))
|
||||
'face 'doom-modeline-highlight))))
|
||||
|
||||
(def-modeline! :main
|
||||
(def-modeline-format! :main
|
||||
'(+mode-line-bar +mode-line-matches " " +mode-line-buffer-id " %2l:%c %p " +mode-line-selection-info)
|
||||
'(+mode-line-encoding +mode-line-major-mode +mode-line-vcs))
|
||||
|
||||
(def-modeline! :project
|
||||
(def-modeline-format! :project
|
||||
'(+mode-line-bar +mode-line-buffer-directory)
|
||||
'(+mode-line-major-mode))
|
||||
|
||||
|
Reference in New Issue
Block a user