Fringes in real buffers only
andreyorst opened this issue · 1 comments
I've noticed that I'm adding too much functions to disable fringes in windows where I don't want them since they look inconsistently with Solaire Mode, so I've decided to go the opposite way and enable fringes only in the "real" buffers and some others, in which I know I need fringes. Because it is easier to list when I need fringes than when it's not.
So I've set (fringe-mode 0)
at Emacs startup and wrote a function that enables fringes in current window if it is "real":
(defun my/enable-fringes (&rest _)
"Wrapper around `set-window-fringes' function."
(when (and (not (minibufferp))
(buffer-file-name))
(set-window-fringes nil 8 1 nil)))
At first I thought that I could advice the turn-on-solaire-mode
function in order to automatically call my function, but it seems that nothing happens. I've tried other hooks, like change-major-mode-hook
and advising other Solaire functions but no luck.
Is there any way I could achieve this by jolly cooperation with Solaire?
I think I can use window-configuration-change-hook
for that for now. But it will be kinda Solaire independent solution.