I have a specific file which I want to always open with visual-line-mode activated. This file cannot be distinguished from others for which I want visual-line-mode deactivated, either by file name/extension or by its contents. For example, running file(1)
on the file in question will give the same result as it would on lots of my other files.
At the moment, I am using # -*- eval: (visual-line-mode t); -*-
in the first line of the file. This is less than ideal because every time I open the file I need to confirm I want to eval this code. The file should just open in visual-line-mode without asking for
confirmation. What is the best way to achieve this?
A perfect answer would not require me to add anything to my .emacs
and would be applicable to other modes besides visual-line.