2

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?

5
  • 1
    What does M-x emacs-version RET report?
    – Basil
    Commented Oct 13, 2017 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
    Commented Oct 13, 2017 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
    Commented Oct 13, 2017 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
    Commented Oct 13, 2017 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 ! Commented Oct 14, 2017 at 8:22

1 Answer 1

3

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 and acknowledge you have read our privacy policy.

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