1

I am using Emacs on mac osx 10.7*. I have the LongLines mode where long sentences are truncated on screen with $ symbol. M-x visual-line-mode does not exist in my Emacs. That is when I type M-x and then visual and TAB it says no such command, nothing with visual. How to set line wrap in this situation?

  • 1
    What does M-x emacs-version RET report? – Basil Oct 13 '17 at 10:09
  • According to describe-symbol, visual-line-mode is an interactive compiled Lisp function in ‘simple.el’. In my system (emacs version 25.3 installed through homebrew), you can find simple.el with the following command find /usr/local/Cellar/emacs/25.3/ | grep simple.el – Martín Oct 13 '17 at 15:14
  • 1
    Visual line mode has been part of Emacs since 23.1, released in 2009, so you've either got a very old version of Emacs, or something very strange has happened in your config. github.com/emacs-mirror/emacs/blob/… – Tyler Oct 13 '17 at 17:45
  • If you want a current self-contained Emacs version that is pre-built, have a look at: emacsformacosx.com It has nothing extra -- it is just a vanilla build for OSX. – lawlist Oct 13 '17 at 21:25
  • My emacs version is : GNU Emacs 22.1.1 (mac-apple-darwin) of 2012-08-24. I am using osX lion and the emacs is the default one. For Updating it I might have to install newer verison and change links (apple.stackexchange.com/questions/229669/…). Should I update or is there a similar command for line wrap in this old version. Thanks guys ! – user1782328 Oct 14 '17 at 8:22
2

The problem was the version. I installed emacs version - 25.3 from port. Now it works. emacs-25.3 gets installed in /opt/local/bin and one can rename it so that emacs command from terminal opens it. And emacs in /usr/bin can be renamed to emacs-22 so that it can still be accessed and there is no conflict.

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.