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 emacs on MacOS.

I added the following to my init.el, but the changes are not having an effect. Is there something wrong with the way I'm trying to update the values?

Specifically, I want to change continuation to nil nil.

(setq fringe-indicator-alist '((truncation nil nil)
    (continuation nil nil)
    (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)))
  • Are you using Emacs in the Terminal, or the GUI version of Emacs? Emacs in the Terminal does not use fringes.
    – lawlist
    Jan 6 at 15:53
  • @lawlist I'm using the GUI version (updated in post). Jan 6 at 16:34
  • TEST: *No .emacs. Open a GUI version of Emacs, in this case 27.2-3 downloaded from emacsformacosx.com . The default buffer that is visible is *GNU Emacs*. The line "GNU Emacs 27.2 (build 1, x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G22010))" is wrapped. I evaluate (setq truncate-lines t) and the aforementioned line of text is now continued beyond the length of the screen, and there is a right-arrow visible in the fringe. Then, I evaluate the code posted by the O.P. in the question above, and the right-arrow (continuation) disappears.
    – lawlist
    Jan 6 at 17:19

The fringe-indicator-alist is a buffer-local variable, which means that the code the O.P. wishes to use should either be evaluated in every buffer desired, or set the default value by using setq-default.

`fringe-indicator-alist' is a variable defined in ‘C source code’.
Its value is shown below.

  Automatically becomes buffer-local when set.
  Probably introduced at or before Emacs version 22.1.
  • Thanks — updating setq to setq-default in init.el did the trick. Jan 7 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.