Hot answers tagged

16

Toggle You can toggle it off with (spacemacs/toggle-vi-tilde-fringe-off), you can get the list of all toggles in helm-spacemacs accessible via SPC f e h or SPC h SPC in more recent versions. Every toggle in this list have 3 functions associated to them, if we take vi-tilde-fringe then the functions are: spacemacs/toggle-vi-tilde-fringe (toggle the state on ...


16

Hideshowvis adds clickable icons to the fringe, but for some strange reason it's not included in elpa or melpa. By default it shows a - in the fringe for code that can be folded, and then elides the content with a .... By also enabling hideshowvis-symbols it adds a + and makes the hinting for folded content a little louder. Hideshow itself also allows mouse ...


11

The official way would be customizing the theme in question to make the fringe face look the same as the background face. A face spec along the lines of (fringe :inherit default) should do the trick. Alternatively, you can modify it on the fly using a code snippet: (defun my-tone-down-fringes () (set-face-attribute 'fringe nil :...


6

The documentation offers a couple of options: https://www.gnu.org/software/emacs/manual/html_node/elisp/Fringe-Size_002fPos.html One of the options mentioned uses buffer-local variables -- i.e., left-window-fringe and right-window-fringe. However, the documentation discusses some exceptions when those settings will not take effect immediately. The ...


5

Since you want "To better distinguish between focused window", you can use other ways to do that instead of just changing the active window's fringe color. I combine three ways to better distinguish between active and inactive windows. Use different colors of mode line for the active and inactive windows. Highlight the current line where the point is in ...


5

The highlighting is performed by diff-hl-mode from the diff-hl package, and can be toggled with M-x diff-hl-mode, or unconditionally disabled by passing a negative argument (M-- M-x diff-hl-mode interactively, (diff-hl-mode -1) from lisp) like most minor modes. To find out yourself which minor mode is causing the effect you could use f1 m (describe-mode) ...


4

(setq visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow))


4

You can set the fringe color to nil, in which case you don't need to worry about any theme changes. I've got the following in my config: (set-face-attribute 'fringe nil :background nil) And the fringe just disappears.... :)


4

While I don't think the fringe items can directly receive clicks (I might be wrong though), a possible hack would be to bind (kbd "<left-fringe> <double-mouse-1>") Since the first click would move the point to the beginning of the line that corresponds to the fringe icon, testing the value of (point) in your hypothetical (un)folding function ...


3

There are a few ways to do this -- my preferred method is to set the frame defaults for the fringes: (set-face-attribute 'fringe nil :background "red") (add-to-list 'default-frame-alist '(left-fringe . 11)) (add-to-list 'default-frame-alist '(right-fringe . 0)) It is possible to set the windows fringes globally: (setq-default left-fringe-width 11) (setq-...


2

as a workaround I make it invisible by (set-face-attribute 'flycheck-fringe-warning nil :foreground (face-attribute 'fringe :background )) similarly, I removed the underline with (set-face-attribute 'flycheck-warning nil :underline nil)


2

(setq flycheck-indication-mode nil) Relevant docs here.


2

That's called the fringe. You can indeed turn it off or control it's size; see the documentation for the fringe-mode function (type C-h f fringe-mode RET).


2

I do not know about the color #616161 as my Emacs version doesn't seem to display a big enough difference in the color for me to see it with my naked eye, but here is an example using "yellow". (defface my-custom-curly-face '((t (:foreground "yellow"))) "Face for fringe curly bitmaps." :group 'basic-faces) (set-fringe-bitmap-face 'left-curly-arrow '...


2

emacs-26 comes with a built-in line number mode, controlled by display-line-numbers which might combine better with other packages.


1

It is a scaling issue (or lack thereof). Example: on Windows 4k resolution with 200% scaling, the fringe is tiny. But with 100% scaling they appear ok. The official bug report is at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31203


1

Note that if you call set-window-fringes in a mode hook, then your change will not be in effect if that existing magit buffer is then displayed in a different window. The simplest solution to your problem is: (defun my-magit-mode-hook () "Custom `magit-mode' behaviours." (setq left-fringe-width 20 right-fringe-width 0)) (add-hook 'magit-mode-...


1

The global value of window-configuration-change-hook is called once for the modified frame, and can be used to iterate over all the windows using walk-windows


1

I thought the window separators used the fringes' foreground color. They don't. The fringe foreground color is for continuation lines in the fringe. The face I was trying to change is vertical-border. This in my theme: `(vertical-border ((t (:foreground ,bisque-fg-2)))) (with (bisque-fg-2 "#5f5549")) gave what I wanted (a darker separator):


1

I agree with npostavs' suggestion. Something like: (add-hook 'post-command-hook 'my-narrowed-fringe-status) (defun my-narrowed-fringe-status () "Make the fringe background reflect the buffer's narrowing status." (set-face-attribute 'fringe nil :background (if (buffer-narrowed-p) my-fringe-narrow-bg ...


1

Just turn off both the left and right fringe (the vertical gray bars you noticed). One way: M-x customize-option default-frame-alist, and add these entries, then save. INS DEL Parameter: left-fringe Value: 0 INS DEL Parameter: right-fringe Value: 0 That adds these entries to the alist value of default-frame-alist: (left-fringe . 0) ...


1

The answer from https://stackoverflow.com/questions/7251784/how-do-i-adjust-the-left-margin-in-emacs-nox: (set-window-margins nil 1) will instantly give a left margin of one char to the current window (that's the nil)


1

When fringes are turned OFF in a GUI version of Emacs, the continuation image that is displayed in what appeared to be the right fringe is actually a glyph, not a bitmap. Therefore, users must create their own backslash if they want to display that image in the fringe -- i.e., the staircase-looking bitmap in the question is about as good as it gets. See: ...


Only top voted, non community-wiki answers of a minimum length are eligible