Questions tagged [fringe]

The fringe is a tiny margin to the left or right edge, or both, of a window on a graphical display. Glyphs can be displayed there.

41 questions
20
votes
3 answers

Is there a way to change color of active window's fringe?

To better distinguish between focused window and rest that are not I would love to change this window's fringe color. Discovering customize with fringe keyword I found only how to change its bg color without ability to set different colors for…
sandric
  • 1,221
  • 9
  • 19
17
votes
2 answers

How do I turn off Spacemacs’s tildes on empty lines?

I just installed Spacemacs, mainly for its nifty defaults. One default I'm not so pleased about is that it puts tildes on empty lines in the file. I've tried putting (setq vi-tilde-fringe nil) and (setq indicate-empty-lines nil) inside the…
Violet
  • 488
  • 4
  • 13
16
votes
2 answers

Actionable code folding in Emacs fringe

I would like to configure my Emacs fringe to show code folding sections. For example, BBEdit on the Mac would show the following when editing a JSON file: The marks themselves are actionable: clicking on a mark would expand or collapse the…
Mathieu Legrand
  • 163
  • 1
  • 7
15
votes
3 answers

How do I set the fringe colors to whatever is the background color?

I am using a distraction-free mode that uses giant fringes to center the buffer called bzg-big-fringe-mode. Problem is, these fringes often have a different color than the background which give an ugly visual effect (see the picture at the end). I…
The Unfun Cat
  • 2,393
  • 16
  • 32
8
votes
0 answers

How to indicate the currently clocked-in task?

I'm using org-mode's clocking functions to track the hours I spend on projects. Since my main org file is rather large and I scroll through it a lot, it would be great to have a visual cue of the task that's currently clocked in. Ideally some…
ph0t0nix
  • 1,119
  • 13
  • 28
7
votes
2 answers

Any way to get a working separator line between fringe/line numbers and the buffer?

is there any way to get a separator like the one for the split buffers (line in the middle of the image) for the line numbers/fringe? I tried (setq linenum-format "%4d \u2502 ") but that gives me a buggy weird broken lines with varying widths -.-
nemesit
  • 291
  • 1
  • 5
5
votes
1 answer

Turn off fringes in text-mode

How do I turn off fringes in text-mode? The closest I've gotten is this: (add-hook 'text-mode-hook (lambda () (set-fringe-mode '(0 . 0)))) But that turns off fringes permanently for all buffers after I've visited a text buffer…
MajorBriggs
  • 236
  • 1
  • 8
4
votes
1 answer

Bent arrow (↩) in visual-line-mode

I would like to see a bent arrow (↩) in the window fringe, when I'm using visual-line-mode becuse with no linum-mode (e.g. org, md, latex..) I'm not able to distinguish the lines. References: LineWrap
Francesco Cadei
  • 327
  • 3
  • 17
4
votes
2 answers

How to change fringe background color for current line only?

We can change current line background using global-hl-line-mode. How about fringe background of the current line?
AhLeung
  • 1,083
  • 5
  • 14
3
votes
0 answers

How to have a right line continuation indicator on the right of `word-wrap`ped lines without "having a right fringe" and while having a left fringe?

In Emacs, I want to have line continuation indicators (the curly arrows by default) shown before or after my wrapped text (e.g. in the fringes). However: I don't want want to be able to tell apart my right fringe from my buffer, either by not…
habit
  • 143
  • 4
3
votes
1 answer

Turn off fringe character for org-capture

I updated to Emacs 28 recently and org-capture now puts a small character in the left fringe for captured items. I know that I can set fringe-mode to no-fringe to not see any fringe, but that's not what I want. I want to specifically turn off or set…
jrasband
  • 73
  • 6
3
votes
1 answer

Move the fringe indicators close to the window text

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…
Arch Stanton
  • 1,525
  • 9
  • 22
3
votes
0 answers

How can I assign multiple faces for fringes?

Since there is a chance that this is another XY problem I'll provide a context as to how I arrived at the problem in the first place. I'm writing a package that let the user highlight any text with their selected color and also add fringe with the…
C11g
  • 333
  • 1
  • 7
3
votes
1 answer

How to modify fringes only for magit mode?

I have tried: (defun my-change-fringes () (set-window-fringes (selected-window) 20 0)) (add-hook 'magit-mode-hook 'my-change-fringes)) The problem seems to be that when I open a magit buffer for the first time, the selected window is for some…
caisah
  • 4,056
  • 1
  • 23
  • 43
3
votes
1 answer

terminal fringes and diff-hl

I use diff-hl to highlight changed lines. However it doesn't play well in terminal mode. I know that terminal Emacs doesn't support fringes, and it is better to use diff-hl-margin-mode instead, it works in terminal but margins are awful with linum.…
zzell
  • 31
  • 2
1
2 3