jeeger / twauctex

Tweaks for AUCtex
GNU General Public License v3.0
21 stars 4 forks source link

Remove visual-fill-column-mode dependency? #6

Closed apc closed 3 years ago

apc commented 3 years ago

Is there a reason not to at least have an option to prevent adding visual-fill-column-mode to hack-local-variables-hook? I'm a happy user of olivetti-mode, for example, and visual-fill-column-mode it doesn't play well with it. (I also prefer not to use visual-fill-column-mode since it messes with my modeline configuration.) Even if you'd want visual-fill-column-mode to be called by default, It seems like it wouldn't be difficult to just have a boolean that would allow a user to change the default.

jeeger commented 3 years ago

That makes sense. I'll make it conditional, since using OSPL without some sort of visual line breaking mode makes it look pretty horrible.

jeeger commented 3 years ago

You can try it out by setting twauctex-use-visual-fill-column to nil and restarting emacs. Also thanks for pointing me to olivetti-mode, I've been looking for horizontal text centering for some time now.

xiangsheng commented 2 years ago

Setting twauctex-use-visual-fill-column to nil really helps me out of some weird situation recently. But I still don't why it is necessary to add visual-fill-column-mode to hack-local-variables-hook, which has a global side effect even outside the buffer where twauctex mode is enabled.

In fact, after updating to emacs 28, I notice that the visual-fill-column mode is turned on for every newly opened buffer. After some investigation, I found this is caused by twauctex mode. It is quite strange that this thing only happens in emacs 28 since I've never noticed similar things in emacs 27 with the same settings.