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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
46 views

how to find out what various fringe indicators mean?

I recently upgraded to emacs 28, and did some fiddling with my configuration (because configuring emacs is, after all, a lifestyle...) and now I have fringe indicators and I don't know what they mean. ...
user avatar
  • 299
2 votes
1 answer
31 views

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 ...
user avatar
0 votes
0 answers
24 views

How do I get the Fringe curved arrows to show in word wrap mode?

So I really like those curved arrows that appear in the Wrap at Window Edge option, like in this image: But i don't like that it breaks the words at random places, in this respect I like that the ...
user avatar
1 vote
1 answer
42 views

How to get the width of the window without line numbers? (or other content in the fringe)?

The result of window-body-width doesn't change when display-line-number-mode is enabled / disabled. How can I get the window width but excluding the fringe?
user avatar
  • 7,199
2 votes
1 answer
110 views

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 ...
user avatar
  • 1,414
0 votes
1 answer
46 views

Changes to fringe-indicator-alist not taking effect

It seems like the variable fringe-indicator-alist can be modified to hide the line-wrap indicators on the edges / fringe of the window. I am having trouble getting this to work properly in the GUI of ...
user avatar
0 votes
1 answer
79 views

How to change the color, or remove, the vertical line next to the scroll bar?

When I try some themes like the doom-nord-light theme, I get some weird line on the side of the scroll bar (here in yellow, but sometimes it is black): How can I could remove them or change their ...
user avatar
3 votes
0 answers
105 views

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 ...
user avatar
  • 313
1 vote
1 answer
175 views

How to use mouse click to the right or to the left of the text to move cursor to this line?

On a mouseclick to one side of the text, it can be convenient to make the cursor jump to: the beginning of the line (when clicking left of the text) the end of the line (when clicking right of the ...
user avatar
0 votes
2 answers
119 views

What is this area for and why the content inside it isn't showing correctly?

I'm using GNU Emacs with Doom. When using, I noticed an area placed before the line numbers. I don't know the name of the area. It is called "fringe". It is used by vi-tilde-fringe-mode, ...
user avatar
1 vote
0 answers
35 views

How to remove fringe when copying from emacs?

When copying from emacs buffers in a terminal to other application, I grab the region and copy them and paste it onto another application. The copied text has a leading whitespace in each line ...
user avatar
  • 355
1 vote
0 answers
93 views

How to use fringe indicators to display register positions?

I know that i can use customize register-marker-face to make position-registers location visible, - is there is a way to mark resisters position using left fringe? Also, I am using "Mitsuharu ...
user avatar
  • 31
1 vote
1 answer
140 views

How to downscale linum font size (and avoid left margin gap)?

I need your help cause I couldn't figure it out. My ideal linum format has 5 digits at least. I'd really like to scale the linum font size down with respect to the text, say by 1/3. This is great ...
user avatar
1 vote
2 answers
277 views

Fringe indicators very tiny

My fringe indicators have become extremely tiny. Left side is flycheck, right side is git-gutter-fringe. So different packages, both extremely tiny. My font might look huge, but it's not; it's 12. ...
user avatar
  • 31
3 votes
1 answer
530 views

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 ...
user avatar
  • 3,916
2 votes
1 answer
476 views

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 ...
user avatar
  • 21
2 votes
0 answers
741 views

Adding padding between the fringe and the text

How can I add padding between the right side of the fringe and the left side of my code? I have tried using (set-window-margins nil 1) but the margin is on the left side of the fringe. I'd like to ...
user avatar
  • 121
3 votes
1 answer
497 views

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: ...
user avatar
1 vote
1 answer
377 views

Which hooks guarantee proper (re)displaying of windows after windows configuration is changed?

I'm writing a simple minor mode (for personal use) which dynamically sets fringes according to current window width. I added a dedicated function to those hooks: window-configuration-change-hook ...
user avatar
  • 357
2 votes
1 answer
203 views

How can I get 'face' functions in emacs to show a gradient colour?

I want to change the emacs fringe to a gradient of two colours. (set-face-background 'fringe <gradient>) As set-face-background requires a colour name or hex, I'm unsure of how I can get it to ...
user avatar
  • 101
4 votes
2 answers
569 views

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?
user avatar
  • 959
0 votes
1 answer
263 views

Cannot set fringe foreground color

I want to change the foreground color of my fringes, in my theme file. I changed (line 84): - `(fringe ((t (:foreground ,bisque-fg :background ,bisque-bg)))) to + `(fringe ((t (:foreground ,...
user avatar
  • 387
1 vote
0 answers
27 views

Pixelwise access to the fringe? Making a basic progressivescroll/metalscroll/VS-mapmode

Is there a way to create a fringe in emacs that can allow for arbitrary pixel-wise access from elisp? Rather than 8x8 char-wise access that I think is the only option now. What I'm looking for is a ...
user avatar
1 vote
1 answer
414 views

How to indicate if narrow-to-region is currently in effect

I have advised the narrow and widen functions so that the fringe color indicates if narrowing is active: (advice-add 'narrow-to-region :after '(lambda (&rest args) (set-...
user avatar
  • 45
1 vote
1 answer
227 views

Change the color of the wrap around arrow

So I would like to change the color of the arrow that shows the text is being wrapped. Specifically the red arrow shown here: I have tried searching myself and the closest I came is finding out the ...
user avatar
  • 345
1 vote
0 answers
37 views

Visualizing D language coverage results in the fringe

I want to visualize coverage data from the D compiler DMD on the fringe. This packages makes use of linum-.*. Is this the best way to visualize such things in the margin? The Emacs package diff-hl ...
user avatar
  • 415
1 vote
2 answers
942 views

Emacs change window fringes (vertical padding)?

I have Emacs 24 running in Linux Mint 18 Xfce. As shown in the picture below by the red arrows, how can I decrease the width of the gray zones that are to the left/right of each Emacs window? The so-...
user avatar
20 votes
3 answers
4k views

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 ...
user avatar
  • 1,151
17 votes
2 answers
4k views

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 (...
user avatar
  • 488
2 votes
1 answer
3k views

Adding padding to the left of text in buffer

I have been looking around for some fix for this but I cannot google-fu my way out of it. I have tried setting the fringe, but that doesn't seem to work. Right now I have the code (unless (bound-and-...
user avatar
  • 23
7 votes
0 answers
493 views

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 ...
user avatar
  • 1,069
1 vote
2 answers
1k views

How to disable flycheck fringe markers for warnings?

I find the question mark fringe markers for flycheck warnings slightly distracting. Is there a way to hide them? I'd like to keep the error fringe markers. I tried M-x customize-face <RET> ...
user avatar
1 vote
1 answer
841 views

How do I disable the colored marks that appear next to changed lines when using git?

I am using orgmode and after I put my files under git I see some lines that appear next to lines that have changed. They are red, green or blue. I would like to disable this but have no idea how they ...
user avatar
0 votes
1 answer
474 views

Using the built-in backslash fringe bitmap

The built-in backslash fringe bitmap is somewhat mysterious in that it is not available to the user through a common name such as backslash or back-slash. I created my own -- using fringe-helper-...
user avatar
  • 17.7k
5 votes
1 answer
1k views

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 ...
user avatar
14 votes
3 answers
6k views

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 ...
user avatar
7 votes
2 answers
2k views

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 ...
user avatar
  • 291
15 votes
2 answers
2k views

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: ...
user avatar