How can I check if a file exists using Emacs Lisp?

前端 未结 3 1858
萌比男神i
萌比男神i 2021-02-01 12:09

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

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-01 12:28

    try file-exists-p

    "Return t if file filename exists (whether or not you can read it.)"

提交回复
热议问题