summaryrefslogtreecommitdiff
path: root/durand-bongo.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-12-25 13:30:59 +0800
committerJSDurand <mmemmew@gmail.com>2022-12-25 13:30:59 +0800
commit528d21753fd3c336263c59280cfe0f940afcb76d (patch)
tree6414e7de3470b7a0acd517135e22efe925c95a83 /durand-bongo.el
parentb3debc853aa22b87b281af47bc5c67d748443744 (diff)
bongo: eliminate some mysterious left fringe
* durand-bongo.el (durand-bongo-set-fringe, bongo-playlist-mode-hook): This left fringe of width 40 just appears out of thin air, so I eliminate it in this function call, hooked into bongo-playlist-mode.
Diffstat (limited to 'durand-bongo.el')
-rw-r--r--durand-bongo.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/durand-bongo.el b/durand-bongo.el
index 632a79e..b183fba 100644
--- a/durand-bongo.el
+++ b/durand-bongo.el
@@ -30,6 +30,16 @@
;;; Basic customizations
+;;;; No left fringes
+
+(defun durand-bongo-set-fringe ()
+ "Set the fringe to zero and redisplay window."
+ (setq left-fringe-width 0)
+ ;; set-window-buffer triggers redisplay of the window.
+ (set-window-buffer (selected-window) (current-buffer)))
+
+(add-hook 'bongo-playlist-mode-hook #'durand-bongo-set-fringe)
+
;;;; No electric modes
;; I just don't like those.