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
16
votes
2answers
3k 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 (...
15
votes
2answers
1k 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: ...
14
votes
3answers
2k 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 ...
12
votes
3answers
4k 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 ...
7
votes
2answers
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 ...
7
votes
0answers
399 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 ...
5
votes
1answer
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 ...
2
votes
1answer
249 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: ...
2
votes
1answer
172 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 ...
2
votes
1answer
2k 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-...
2
votes
0answers
228 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 ...
2
votes
1answer
120 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 ...
1
vote
2answers
902 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> ...
1
vote
2answers
574 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-...
1
vote
1answer
157 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 ...
1
vote
1answer
128 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 ...
1
vote
1answer
132 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 ...
1
vote
1answer
184 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-...
1
vote
1answer
71 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 ...
1
vote
1answer
308 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?
1
vote
0answers
23 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 ...
1
vote
0answers
30 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 ...
0
votes
1answer
478 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 ...
0
votes
2answers
69 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. ...
0
votes
1answer
148 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 ,...
0
votes
1answer
352 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-...
0
votes
0answers
34 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 ...
0
votes
0answers
19 views

Fringe value not taking effect until I switch buffers

I'm not quite sure how best to describe what's going on. I have the following lines on my init.el file. (setq-default left-fringe-width 40) (setq-default right-fringe-width 40) I expect this to ...