How do I change read/write mode for a file using Emacs?

前端 未结 9 1035
悲&欢浪女
悲&欢浪女 2021-01-29 21:11

If a file is set to read only mode, how do I change it to write mode and vice versa from within Emacs?

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 21:48

    What I found is M-x set-file-modes filename mode

    It worked at my Windows Vista box. For example: M-x set-file-modes ReadOnlyFile.txt 0666

提交回复
热议问题