4

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

1 Answer 1

7
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
    Commented Jul 14, 2017 at 22:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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