mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Update mouse-face.
This commit is contained in:
parent
0e0988331a
commit
58267460c6
1 changed files with 37 additions and 35 deletions
|
@ -365,7 +365,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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'local-map mode-line-coding-system-map))
|
'local-map mode-line-coding-system-map))
|
||||||
|
|
||||||
|
|
||||||
|
@ -592,7 +592,7 @@ mouse-2: Show help for minor mode")
|
||||||
('errored "Error")
|
('errored "Error")
|
||||||
('interrupted "Interrupted")
|
('interrupted "Interrupted")
|
||||||
('suspicious "Suspicious")))
|
('suspicious "Suspicious")))
|
||||||
'mouse-face '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'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)
|
||||||
|
@ -728,7 +728,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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'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)
|
||||||
|
@ -1026,7 +1026,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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'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
|
||||||
|
@ -1287,7 +1287,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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'local-map mode-line-column-line-number-mode-map))
|
'local-map mode-line-column-line-number-mode-map))
|
||||||
(propertize
|
(propertize
|
||||||
(concat " "
|
(concat " "
|
||||||
|
@ -1300,7 +1300,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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'local-map mode-line-column-line-number-mode-map))))
|
'local-map mode-line-column-line-number-mode-map))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -1491,8 +1491,10 @@ Example:
|
||||||
(if (and doom-modeline-github
|
(if (and doom-modeline-github
|
||||||
(doom-modeline--active)
|
(doom-modeline--active)
|
||||||
(> doom-modeline--github-notifications-number 0))
|
(> doom-modeline--github-notifications-number 0))
|
||||||
|
(concat
|
||||||
|
" "
|
||||||
(propertize
|
(propertize
|
||||||
(concat " "
|
(concat
|
||||||
(if doom-modeline-icon
|
(if doom-modeline-icon
|
||||||
(doom-modeline-icon-faicon "github"
|
(doom-modeline-icon-faicon "github"
|
||||||
:v-adjust -0.0575
|
:v-adjust -0.0575
|
||||||
|
@ -1500,12 +1502,11 @@ Example:
|
||||||
(propertize "#" 'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
(propertize "#" 'face '(:inherit (doom-modeline-warning doom-modeline-unread-number))))
|
||||||
doom-modeline-vspc
|
doom-modeline-vspc
|
||||||
(propertize (number-to-string doom-modeline--github-notifications-number)
|
(propertize (number-to-string doom-modeline--github-notifications-number)
|
||||||
'face '(:inherit (warning doom-modeline-unread-number)))
|
'face '(:inherit (warning doom-modeline-unread-number))))
|
||||||
" ")
|
|
||||||
'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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'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 ()
|
||||||
|
@ -1519,7 +1520,8 @@ mouse-3: Fetch notifications"
|
||||||
(interactive)
|
(interactive)
|
||||||
(message "Fetching github notifications...")
|
(message "Fetching github notifications...")
|
||||||
(doom-modeline--github-fetch-notifications)))
|
(doom-modeline--github-fetch-notifications)))
|
||||||
map))))
|
map))
|
||||||
|
" ")))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -1538,7 +1540,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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'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
|
||||||
|
@ -1547,7 +1549,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 '(:box 1)
|
'mouse-face 'mode-line
|
||||||
'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) " "))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue