Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一个 emacs 选项可以从命令行只读文件?我正在寻找类似的东西vim -R filename。 最好的。
vim -R filename
emacs FILE --eval '(setq buffer-read-only t)'
https://superuser.com/questions/204236/how-can-i-open-a-file-read-only-from-command-line-with-emacs-vi-vim