I would like emacs to mark files that are generated as read-only when they\'re opened. The part of the puzzle that I\'m missing is how to check if a file \"exists\". I current
Use f.el, modern library for file and directory manipulation. You can use f-exists?, f-file?, f-directory? and many other predicates. The library is better than standard functions, because it's every file related function you'll ever need under one namespace.