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:
parent
6bcc01f591
commit
9abafcf74a
1 changed files with 3 additions and 3 deletions
|
@ -204,7 +204,7 @@
|
||||||
;;
|
;;
|
||||||
(defvar doom-mode-line-alist nil)
|
(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)))
|
(setf (alist-get name doom-mode-line-alist) (list left right)))
|
||||||
|
|
||||||
(defun set-modeline! (name &optional default)
|
(defun set-modeline! (name &optional default)
|
||||||
|
@ -461,11 +461,11 @@ segment.")
|
||||||
(format " %dW" (count-words beg end)))))
|
(format " %dW" (count-words beg end)))))
|
||||||
'face 'doom-modeline-highlight))))
|
'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-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))
|
'(+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-bar +mode-line-buffer-directory)
|
||||||
'(+mode-line-major-mode))
|
'(+mode-line-major-mode))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue