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

前端 未结 9 1034
悲&欢浪女
悲&欢浪女 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 22:02

    As mentioned up there by somebody else: M-x toggle-read-only would work.

    However, this is now deprecated and M-x read-only-mode is the current way to do it, that it is set to C-x C-q keybinding.

提交回复
热议问题