Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove newline symbols inside emacs vertical border

I love adaptive-wrap-prefix-mode, which makes a soft-wrap whenever you overcome your window width, nicely formatting text in next line with a non-real ("soft") indentation.

But there is one problem with it. Whenever this happens -- emacs draws a "newline" symbol on both sides of it's vertical line, and those symbols do take my attention to those lines, defeating the whole purpose of adaptive-wrap (to not break visual indentation of code with long lines).

Question is: how do I remove those symbols on left and right?

like image 422
Konstantine Rybnikov Avatar asked Dec 20 '22 07:12

Konstantine Rybnikov


1 Answers

(setf (cdr (assq 'continuation fringe-indicator-alist))
      '(nil nil) ;; no continuation indicators
      ;; '(nil right-curly-arrow) ;; right indicator only
      ;; '(left-curly-arrow nil) ;; left indicator only
      ;; '(left-curly-arrow right-curly-arrow) ;; default
      )

I suggest trying "right indicator only", as I suspect it's only the left side which is drawing your attention, and this way you will still have the information available.

like image 142
phils Avatar answered Mar 08 '23 17:03

phils