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
0 votes
1 answer
34 views

How can I remove extra gray line at left and right margin in Emacs GUI app? [duplicate]

In macOS Monterey I am using Emacs inside iTerm2 and also Emacs.app (as gui). In the Emacs.app itself there is extra space before each line. That is actually caused by a gray line in the margin. => ...
alper's user avatar
  • 1,140
3 votes
0 answers
36 views

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 ...
habit's user avatar
  • 143
0 votes
0 answers
32 views

change fringe face height

This increases the buffer text height: (face-remap-add-relative 'default :height 1.5) This has no effect on the fringe continuation mark heights: (face-remap-add-relative 'fringe :height 1.5) So how ...
joharr's user avatar
  • 113
2 votes
1 answer
181 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. ...
Dan Drake's user avatar
  • 451
3 votes
1 answer
243 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 ...
jrasband's user avatar
0 votes
0 answers
31 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 ...
Felipe Dilho's user avatar
2 votes
2 answers
85 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?
ideasman42's user avatar
  • 8,187
3 votes
1 answer
187 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 ...
Arch Stanton's user avatar
  • 1,515
0 votes
1 answer
124 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 ...
charliesneath's user avatar
0 votes
1 answer
220 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 ...
tobiasBora's user avatar
3 votes
0 answers
155 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 ...
C11g's user avatar
  • 333
1 vote
1 answer
267 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 ...
telephon's user avatar
0 votes
2 answers
173 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, ...
Akib Azmain Turja's user avatar
1 vote
0 answers
47 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 ...
eugene's user avatar
  • 395
1 vote
0 answers
124 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 ...
Yatima's user avatar
  • 31
1 vote
1 answer
155 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 ...
desmogix's user avatar
1 vote
2 answers
342 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. ...
hey's user avatar
  • 31
3 votes
1 answer
638 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 ...
caisah's user avatar
  • 4,026
3 votes
1 answer
611 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 ...
zzell's user avatar
  • 31
2 votes
0 answers
908 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 ...
Florent's user avatar
  • 121
4 votes
1 answer
609 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: ...
Francesco Cadei's user avatar
1 vote
1 answer
472 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 ...
caseneuve's user avatar
  • 387
2 votes
1 answer
259 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 ...
xeijin's user avatar
  • 101
4 votes
2 answers
649 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?
AhLeung's user avatar
  • 1,063
0 votes
1 answer
297 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 ,...
Gauthier's user avatar
  • 489
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 ...
rob65536's user avatar
1 vote
1 answer
472 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-...
Tom's user avatar
  • 45
1 vote
1 answer
269 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 ...
Greth's user avatar
  • 355
1 vote
0 answers
38 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 ...
Nordlöw's user avatar
  • 467
1 vote
2 answers
1k 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-...
space_voyager's user avatar
20 votes
3 answers
5k 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 ...
sandric's user avatar
  • 1,221
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 (...
Violet's user avatar
  • 488
3 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-...
Steei's user avatar
  • 33
8 votes
0 answers
516 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 ...
ph0t0nix's user avatar
  • 1,109
1 vote
2 answers
2k 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> ...
Croad Langshan's user avatar
1 vote
1 answer
921 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 ...
Jason Mirk's user avatar
0 votes
1 answer
525 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-...
lawlist's user avatar
  • 18.6k
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 ...
MajorBriggs's 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 ...
The Unfun Cat's 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 ...
nemesit's user avatar
  • 291
16 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: ...
Mathieu Legrand's user avatar