When I use olivetti-mode
I'd like to have grey margins and the fringe indicators close to the window text, like in this picture:
The problem is that when the fringes are wide the indicators end up being far from the text
Is there a way to move them close to the window text?
Another approach would be to keep the fringes's width to the usual narrow size and paint the margins the same grey as the fringes background, but as far as I understand that can't be done, because the margins take their background colour from the default
face, so it's bound to be the same as the text's background.
fringes-outside-margins
? If it isnil
which is the default, the fringe is supposed to appear between the margin and the text according to the doc string of the variable.nil
, but if I use wide margins instead of wide fringes (i.e., if I setolivetti-style
tonil
) I get these wide white bands on the outside and the grey narrow fringes around the text area. I’d like to have a uniform grey margin à la pdf reader.(set-face-attribute 'fringe nil :background nil)
. That's what I use.(set-face-attribute 'olivetti-fringe nil :foreground "grey80" :background (face-attribute 'default :background))
(called fromolivetti-mode-hook
so it adjusts to theme changes), which makes the fringes background "trasparent" like your setting but only whileolivetti-mode
is on. I'd like to see the borders of the text area though, while both these solutions blend it with the fringes and the margins.