aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-12-18 00:01:55 -0800
committerGravatar Tom Willemse2020-12-18 00:01:55 -0800
commit8852f98e46074bcb1250ed2d6e07e509e56f1b5f (patch)
tree237d9412af692e7ac0306ba3764cd8790b56202d
parentfac9353d72c4df060d796d0bd5095871af5ebd9f (diff)
downloadyoshi-theme-8852f98e46074bcb1250ed2d6e07e509e56f1b5f.tar.gz
yoshi-theme-8852f98e46074bcb1250ed2d6e07e509e56f1b5f.zip
Add spaces around the buffer id
-rw-r--r--yoshi-theme.el9
1 files changed, 8 insertions, 1 deletions
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