mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: invalid faces.
This commit is contained in:
parent
ab7f854d89
commit
d46b5434f2
1 changed files with 13 additions and 16 deletions
|
@ -318,8 +318,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
'face `(:height
|
'face `(:height
|
||||||
,(doom-modeline-icon-height 1.1)
|
,(doom-modeline-icon-height 1.1)
|
||||||
:family
|
:family
|
||||||
,(all-the-icons-icon-family icon)
|
,(all-the-icons-icon-family icon))))
|
||||||
:inherit t)))
|
|
||||||
(if active doom-modeline-vspc doom-modeline-inactive-vspc))))
|
(if active doom-modeline-vspc doom-modeline-inactive-vspc))))
|
||||||
|
|
||||||
;; state icon
|
;; state icon
|
||||||
|
@ -334,8 +333,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
`(:height
|
`(:height
|
||||||
,(doom-modeline-icon-height 1.3)
|
,(doom-modeline-icon-height 1.3)
|
||||||
:family
|
:family
|
||||||
,(all-the-icons-icon-family icon)
|
,(all-the-icons-icon-family icon))
|
||||||
:inherit t)
|
|
||||||
'mode-line-inactive)))
|
'mode-line-inactive)))
|
||||||
(if active doom-modeline-vspc doom-modeline-inactive-vspc)))
|
(if active doom-modeline-vspc doom-modeline-inactive-vspc)))
|
||||||
|
|
||||||
|
@ -371,7 +369,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
" ")
|
" ")
|
||||||
'face (if (doom-modeline--active) 'mode-line 'mode-line-inactive)
|
'face (if (doom-modeline--active) 'mode-line 'mode-line-inactive)
|
||||||
'help-echo 'mode-line-mule-info-help-echo
|
'help-echo 'mode-line-mule-info-help-echo
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map mode-line-coding-system-map))
|
'local-map mode-line-coding-system-map))
|
||||||
|
|
||||||
|
|
||||||
|
@ -538,8 +536,7 @@ Uses `all-the-icons-octicon' to fetch the icon."
|
||||||
`(:height
|
`(:height
|
||||||
,(doom-modeline-icon-height 1.2)
|
,(doom-modeline-icon-height 1.2)
|
||||||
:family
|
:family
|
||||||
,(all-the-icons-icon-family icon)
|
,(all-the-icons-icon-family icon))
|
||||||
:inherit t)
|
|
||||||
'mode-line-inactive))
|
'mode-line-inactive))
|
||||||
doom-modeline-inactive-vspc
|
doom-modeline-inactive-vspc
|
||||||
(propertize text 'face 'mode-line-inactive)))
|
(propertize text 'face 'mode-line-inactive)))
|
||||||
|
@ -598,7 +595,7 @@ mouse-2: Show help for minor mode")
|
||||||
('errored "Error")
|
('errored "Error")
|
||||||
('interrupted "Interrupted")
|
('interrupted "Interrupted")
|
||||||
('suspicious "Suspicious")))
|
('suspicious "Suspicious")))
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map (let ((map (make-sparse-keymap)))
|
'local-map (let ((map (make-sparse-keymap)))
|
||||||
(define-key map [mode-line down-mouse-1]
|
(define-key map [mode-line down-mouse-1]
|
||||||
flycheck-mode-menu-map)
|
flycheck-mode-menu-map)
|
||||||
|
@ -734,7 +731,7 @@ wheel-up/wheel-down: Previous/next error"))
|
||||||
mouse-1: Display minor mode menu
|
mouse-1: Display minor mode menu
|
||||||
mouse-2: Show help for minor mode"
|
mouse-2: Show help for minor mode"
|
||||||
(length running) (length known)))))
|
(length running) (length known)))))
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map (let ((map (make-sparse-keymap)))
|
'local-map (let ((map (make-sparse-keymap)))
|
||||||
(define-key map [mode-line down-mouse-1]
|
(define-key map [mode-line down-mouse-1]
|
||||||
flymake-menu)
|
flymake-menu)
|
||||||
|
@ -1039,7 +1036,7 @@ Requires `anzu', also `evil-anzu' if using `evil-mode' for compatibility with
|
||||||
'face (if (doom-modeline--active) 'mode-line 'mode-line-inactive)
|
'face (if (doom-modeline--active) 'mode-line 'mode-line-inactive)
|
||||||
'help-echo "Buffer size
|
'help-echo "Buffer size
|
||||||
mouse-1: Display Line and Column Mode Menu"
|
mouse-1: Display Line and Column Mode Menu"
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map mode-line-column-line-number-mode-map)))
|
'local-map mode-line-column-line-number-mode-map)))
|
||||||
|
|
||||||
(doom-modeline-def-segment matches
|
(doom-modeline-def-segment matches
|
||||||
|
@ -1298,7 +1295,7 @@ See `mode-line-percent-position'.")
|
||||||
(propertize (format-mode-line lc)
|
(propertize (format-mode-line lc)
|
||||||
'help-echo "Buffer position\n\
|
'help-echo "Buffer position\n\
|
||||||
mouse-1: Display Line and Column Mode Menu"
|
mouse-1: Display Line and Column Mode Menu"
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map mode-line-column-line-number-mode-map))
|
'local-map mode-line-column-line-number-mode-map))
|
||||||
(propertize
|
(propertize
|
||||||
(concat " "
|
(concat " "
|
||||||
|
@ -1311,7 +1308,7 @@ mouse-1: Display Line and Column Mode Menu"
|
||||||
'face (if active 'mode-line 'mode-line-inactive)
|
'face (if active 'mode-line 'mode-line-inactive)
|
||||||
'help-echo "Buffer position\n\
|
'help-echo "Buffer position\n\
|
||||||
mouse-1: Display Line and Column Mode Menu"
|
mouse-1: Display Line and Column Mode Menu"
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map mode-line-column-line-number-mode-map))))
|
'local-map mode-line-column-line-number-mode-map))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -1517,7 +1514,7 @@ Example:
|
||||||
'help-echo "Github Notifications
|
'help-echo "Github Notifications
|
||||||
mouse-1: Show notifications
|
mouse-1: Show notifications
|
||||||
mouse-3: Fetch notifications"
|
mouse-3: Fetch notifications"
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map (let ((map (make-sparse-keymap)))
|
'local-map (let ((map (make-sparse-keymap)))
|
||||||
(define-key map [mode-line mouse-1]
|
(define-key map [mode-line mouse-1]
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
@ -1551,7 +1548,7 @@ mouse-3: Fetch notifications"
|
||||||
(propertize "!" 'face 'doom-modeline-urgent))
|
(propertize "!" 'face 'doom-modeline-urgent))
|
||||||
'help-echo "Debug on Error
|
'help-echo "Debug on Error
|
||||||
mouse-1: Toggle Debug on Error"
|
mouse-1: Toggle Debug on Error"
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map (make-mode-line-mouse-map 'mouse-1 #'toggle-debug-on-error)))
|
'local-map (make-mode-line-mouse-map 'mouse-1 #'toggle-debug-on-error)))
|
||||||
(when debug-on-quit
|
(when debug-on-quit
|
||||||
(propertize
|
(propertize
|
||||||
|
@ -1560,7 +1557,7 @@ mouse-1: Toggle Debug on Error"
|
||||||
(propertize "!" 'face 'doom-modeline-warning))
|
(propertize "!" 'face 'doom-modeline-warning))
|
||||||
'help-echo "Debug on Quit
|
'help-echo "Debug on Quit
|
||||||
mouse-1: Toggle Debug on Quit"
|
mouse-1: Toggle Debug on Quit"
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'local-map (make-mode-line-mouse-map 'mouse-1 #'toggle-debug-on-quit)))
|
'local-map (make-mode-line-mouse-map 'mouse-1 #'toggle-debug-on-quit)))
|
||||||
(and (or debug-on-error debug-on-quit) " "))))
|
(and (or debug-on-error debug-on-quit) " "))))
|
||||||
|
|
||||||
|
@ -1604,7 +1601,7 @@ mouse-1: Toggle Debug on Quit"
|
||||||
doom-modeline-vspc
|
doom-modeline-vspc
|
||||||
(propertize (number-to-string mu4e-alert-mode-line)
|
(propertize (number-to-string mu4e-alert-mode-line)
|
||||||
'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
||||||
'mouse-face '(:inherit t)
|
'mouse-face '(:box 0)
|
||||||
'help-echo (if (= mu4e-alert-mode-line 1)
|
'help-echo (if (= mu4e-alert-mode-line 1)
|
||||||
"You have an unread email"
|
"You have an unread email"
|
||||||
(format "You have %s unread emails" mu4e-alert-mode-line)))
|
(format "You have %s unread emails" mu4e-alert-mode-line)))
|
||||||
|
|
Loading…
Reference in a new issue