Monica Cellio
Monica Cellio

Reputation: 1589

Suppressing left-side continuation arrows in emacs on Windows 7

I'm using Emacs 22.3 on Windows 7, launched via runemacs.exe (not from a shell command line). Lines that are too long for the window wrap (good!), with an arrow glyph at the end of the line (I'm used to '\', but ok) -- and also with a matching arrow glyph at the beginning of the wrapped line. I've not seen that left-side arrow before and I'm finding it distracting. How do I get rid of it?

This appears in all modes (so far). The word "wrap" does not appear in my .emacs file, which is pretty lightweight (mostly font sizes/colors and key mappings). I've searched Google and found plenty of advice about how to turn off line-wrap, but that's not what I want. I just want a different visual rendering of line-wrap.

I noticed, while removing .emacs entirely to verify that nothing there is to blame, that by default the thin "columns" where these arrows appear are a slightly different background color than the main window. In my configuration I've set background and foreground colors and those apply to this part of the UI too. A solution that changes the background color under the arrows would probably also work; my problem is that they appear to be part of the text to me.

Upvotes: 4

Views: 716

Answers (1)

lawlist
lawlist

Reputation: 13457

(setq-default visual-line-fringe-indicators nil)

(setq-default fringe-indicator-alist '(
  (truncation left-arrow right-arrow)
  (continuation nil right-curly-arrow) ;; left-curly-arrow
  (overlay-arrow . right-triangle)
  (up . up-arrow)
  (down . down-arrow)
  (top top-left-angle top-right-angle)
  (bottom bottom-left-angle bottom-right-angle top-right-angle top-left-angle)
  (top-bottom left-bracket right-bracket top-right-angle top-left-angle)
  (empty-line . empty-line)
  (unknown . question-mark)))

ALTERNATIVE method when using visual-line-mode defined in simple.el:

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

Upvotes: 3

Related Questions