質問

Has anyone found a workaround to the inability of Aquamacs 2.4 to correctly WordWrap at the window boundary?

The modes I use most often are text-mode and latex-mode.

I've removed the built-in hooks of text mode to try and isolate the bug and come up with a workaround:

(remove-hook 'text-mode-hook 'smart-spacing-mode)
(remove-hook 'text-mode-hook 'auto-detect-wrap)

The following code gives me a fancy indicator in the status bar WordWrap, but words are still fragmented at the window boundary.

(add-hook 'latex-mode-hook 'set-word-wrap)
(add-hook 'text-mode-hook 'set-word-wrap)

The following code gives me a pretty status bar indicator of vl WordWrap, but the words are still fragmented at the window boundary.

(setq-default global-visual-line-mode t)

The following code seems to have no appreciable effect:

(setq longlines-wrap-follows-window-size t)

I've really never seen this feature working, so I'm not sure it is even possible with Aquamacs 2.4.

The expected behavior is that words should stay together by automatically wrapping to the next line at the window boundary. As I resize the window, this should happen on the fly. As I type a line, this should happen automatically when I reach the window edge.

Just in case this is a conflict, I'll mention that I have Yasnippets, local and global whitespace, and flyspell all enabled. I also have line numbers, highlight the current line, size indication, and column numbers.

Perhaps someone could just give me the name of the el / elc file that is responsible for this behavior, and I'll take it from a 24.3 version and paste it into Aquamacs 2.4. I am primarily interested in this version because of the ease of which it handles LaTeX documents.

役に立ちましたか?

解決 2

The nightly builds of Emacs / Aquamacs have fixed this issue.

他のヒント

Have you tried in the "Options" menu the submenu "Line wrapping in this buffer"?

Alternatively,

(add-hook 'text-mode-hook #'visual-line-mode)

or

(global-visual-line-mode 1)
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top