I am currently using
visual-line-mode in emacs with the following:
(add-hook 'visual-line-mode-hook 'visual-fill-column-mode) (global-visual-line-mode t) (define-key visual-line-mode-map [remap kill-line] nil)
This enable both mode everywhere, but I would like:
visual-line-modeto be enable everywhere but in terminal (e.g.
visual-fill-column-modeto be enable only in "text" and "programming"
Currently I have the following hook for
ansi-term but it does not work:
(defun my-term-hook () (visual-fill-column-mode nil) (visual-line-mode nil)) (add-hook 'term-load-hook 'my-term-hook)
And I don't on which hook I could bind those mode to enable them in all programming mode (I know about
text-mode-hook for text mode)?