1
0
Fork 0
mirror of https://git.sr.ht/~ryuslash/yoshi-theme synced 2025-01-31 03:15:52 +01:00

Add spaces around the Current info node in the mode-line

This puts it in line with the buffer identification for all other buffers that
I’ve seen.
This commit is contained in:
Tom Willemse 2021-10-30 21:56:06 -07:00
parent 06a6bcfc58
commit 787bb0a13c

View file

@ -36,9 +36,16 @@
"Return ARGS with the car modified to contain 2 spaces."
(cons (format " %s " (car args)) (cdr args)))
(defun yoshi-theme-add-spaces-around-current-info-node (func &rest args)
(let ((Info-current-node (format " %s " Info-current-node)))
(apply func args)))
(advice-add 'propertized-buffer-identification
:filter-args #'yoshi-theme-add-space-to-first-arg)
(advice-add 'Info-set-mode-line
:around #'yoshi-theme-add-spaces-around-current-info-node)
(defun yoshi-theme--make-inline-box (border-color)
"Return a list representing a box specification using BORDER-COLOR."
(let ((line-width (if (> emacs-major-version 27)