When I write text in the emacs editor and the text reaches the right border of the program, emacs continues on the next line and puts an arrow on both sides of its borders. I want to know if its possible to remove these ugly arrows and modify emacs in a way, that the last word is put on the next line instead of the last letters. So it would quite more readable because no words are cut due to a linebreak.

up vote 1 down vote accepted

It sounds like Visual Line mode is what you want: M-x visual-line-mode

  • Does visual line do word wrapping by default? – Malabarba Jan 9 '15 at 12:36
  • @Malabarba I tested it out and it worked. I got the desired result. What do I have to do to make it permanent? I added (visual-line-mode), (visual-line-mode t) and (visual-line-mode 1) in the .emacs file but none of them worked. If this is a trivial problem I am sorry but I am new to emacs – Miguellissimo Jan 9 '15 at 13:12
  • 1
    Okay, I found the answer for permanent behaviour. Add (global-visual-line-mode t) to the .emacs file. Found here stackoverflow.com/questions/3281581/how-to-word-wrap-in-emacs – Miguellissimo Jan 9 '15 at 13:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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