I am looking to create some customized settings for a specific file. I think I want to add a hook for that file, or something that will create a few settings when that file loads.
For example, I have a file "really-long-lines.org", where every time I open it, I run
M-x toggle-truncate-lines. By default, I have all files under
org-mode open with
(toggle-truncate-lines 0) set. But for this one file, I want it to be set to
(toggle-truncate-lines 1). My first approach would be to create a mode for this one file,
really-long-lines-mode, and run something like this:
(add-hook 'really-long-lines-mode (lambda() (toggle-truncate-lines 1)))
But is there a way to add a hook for a specific file? Or whatever solution works best.