0

Emacs have largely switched to visual-line-mode as default, but what do I use if I am working in -nw mode? Visual-line-mode is not working, and longlines-mode is branded as obsolete.

2
  • What makes you think visual-line-mode doesn't work in -nw?
    – Stefan
    Nov 11, 2018 at 15:23
  • emacs -nw; MacOS default terminal or iTerm2. in .emacs: (global-visual-line-mode 1) Response on starting emacs -nw: An error has occurred while loading `/Users/[myname]/.emacs': Symbol's function definition is void: global-visual-line-mode I have to use: (if window-system (global-visual-line-mode 1)) Nov 12, 2018 at 20:03

1 Answer 1

0

The problem has nothing to do with -nw: it's that you're not using the same Emacs in the two cases. When using -nw you're starting Emacs from the command line, most likely running MacOS's builtin /usr/bin/emacs (which is a dinosaur) instead of running the Emacs you installed yourself.

2
  • Thank you. So I understand that the "dinosaur" does indeed have no idea of visual-line-mode. No problem in general, it is that in some rare cases all what is available is the default version (in the case of re-installing the system of the fly due to some malfunction, for example). Nov 14, 2018 at 11:07
  • I recommend you complain to Apple about it (or upgrade to something like Debian)
    – Stefan
    Nov 14, 2018 at 12:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .