emacs, emacsclient: refresh (#6096)

This commit is contained in:
marchersimon
2021-06-15 00:27:30 +02:00
committed by GitHub
parent 498e88cef7
commit 68023b7eb8
4 changed files with 70 additions and 42 deletions

View File

@@ -1,24 +1,33 @@
# emacs
> The extensible, customizable, self-documenting, real-time display editor.
> See also `emacsclient`.
> More information: <https://www.gnu.org/software/emacs>.
- Start in console mode (without X window):
`emacs -nw`
- Open a file:
- Start Emacs and open a file:
`emacs {{path/to/file}}`
- Save a file:
`Ctrl + X, Ctrl + S`
- Quit:
`Ctrl + X, Ctrl + C`
- Open a file at a specified line number:
`emacs +{{line_number}} {{path/to/file}}`
- Start Emacs in console mode (without an X window):
`emacs --no-window-system`
- Start an Emacs server in the background (accessible via `emacsclient`):
`emacs --daemon`
- Stop a running Emacs server and all its instances, asking for confirmation on unsaved files:
`emacsclient --eval '(save-buffers-kill-emacs)'`
- Save a file in Emacs:
`Ctrl + X, Ctrl + S`
- Quit Emacs:
`Ctrl + X, Ctrl + C`