How do I save all files (or save all buffers) in Emacs?

試著忘記壹切 提交于 2019-12-12 16:39:46

问题


C-x C-s saves only the current buffer.

How do I save all files (or all buffers)?


回答1:


Press "C-x s" and then choose "!" for saving all buffers.




回答2:


Another way might be using list-buffers

  1. C-x C-b RET ; 3rd column shows '*' for modified buffers.
  2. s ; Mark the buffer at point to be saved.
  3. x ; Save and/or delete marked buffers.

With ibuffer is slightly different:

  1. M-x ibuffer RET ; 2nd column shows '*' for modified buffers.
  2. m ; Mark the buffer at point.
  3. S ; Save the marked buffers.


来源:https://stackoverflow.com/questions/44875692/how-do-i-save-all-files-or-save-all-buffers-in-emacs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!