mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Add help-echo and mouse-click for buffer position and size.
This commit is contained in:
parent
f73eba86fa
commit
8a2e5ffbda
1 changed files with 11 additions and 2 deletions
|
@ -1168,7 +1168,12 @@ of active `multiple-cursors'."
|
|||
(doom-modeline--symbol-overlay)
|
||||
(doom-modeline--multiple-cursors))))
|
||||
(or (and (not (equal meta "")) meta)
|
||||
(if buffer-file-name " %I "))))
|
||||
(if (and buffer-file-name size-indication-mode)
|
||||
(propertize " %I "
|
||||
'help-echo "Buffer size\n\
|
||||
mouse-1: Display Line and Column Mode Menu"
|
||||
'local-map mode-line-column-line-number-mode-map
|
||||
'mouse-face 'mode-line-highlight)))))
|
||||
|
||||
|
||||
;;
|
||||
|
@ -1361,7 +1366,11 @@ See `mode-line-percent-position'.")
|
|||
|
||||
(doom-modeline-def-segment buffer-position
|
||||
"The buffer position information."
|
||||
'(" " mode-line-position))
|
||||
`(:propertize (concat " " mode-line-position)
|
||||
help-echo "Buffer position\n\
|
||||
mouse-1: Display Line and Column Mode Menu"
|
||||
local-map ,mode-line-column-line-number-mode-map
|
||||
mouse-face mode-line-highlight))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue