1

Is there a hook that gets called any time a file is opened, not a buffer but an actual file?

4
find-file-hook

Documentation: List of functions to be called after a buffer is loaded from a file. The buffer’s local variables (if any) will have been processed before the functions are called.

1
  • 1
    I was trying this, and I could be mistaken but this doesn't seem to fire if I use something other than find-file to open the file. – math0ne Jul 14 '17 at 22:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.