From 8852f98e46074bcb1250ed2d6e07e509e56f1b5f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 18 Dec 2020 00:01:55 -0800 Subject: [PATCH] Add spaces around the buffer id --- yoshi-theme.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/yoshi-theme.el b/yoshi-theme.el index b4a6f1e..9211199 100644 --- a/yoshi-theme.el +++ b/yoshi-theme.el @@ -32,6 +32,13 @@ (deftheme yoshi "Created 2012-09-24") +(defun yoshi-theme-add-space-to-first-arg (args) + "Return ARGS with the car modified to contain 2 spaces." + (cons (format " %s " (car args)) (cdr args))) + +(advice-add 'propertized-buffer-identification + :filter-args #'yoshi-theme-add-space-to-first-arg) + (let ((yoshi-0 "#111414") (yoshi-1 "#2c3434") (yoshi-2 "#475454") @@ -547,7 +554,7 @@ :internal-border-color ,yoshi-1 :background-color ,yoshi-1)) '(flycheck-posframe-border-width 5) - '(mode-line-buffer-identification (propertized-buffer-identification " %b ")))) + '(mode-line-buffer-identification (propertized-buffer-identification "%b")))) ;;;###autoload (and load-file-name