Skip to content

Commit

Permalink
feat: add segment buffer-point
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyinz committed Dec 12, 2023
1 parent 228cd1c commit 3c60309
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mini-echo-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ nil means to use `default-directory'.
(propertize (string-replace "Bottom" "Bot" pos)
'face 'mini-echo-buffer-position)))

(mini-echo-define-segment "buffer-point"
"Return the cursor position of point integer of current buffer."
:fetch
(propertize (format "%d" (point)) 'face 'mini-echo-buffer-position))

(mini-echo-define-segment "buffer-size"
"Return the size of current buffer."
:fetch
Expand Down

0 comments on commit 3c60309

Please sign in to comment.