mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 03:00:57 +00:00
Update cheatsheets
This commit is contained in:
42
emacs
Normal file
42
emacs
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# emacs
|
||||
|
||||
> The extensible, customizable, self-documenting, real-time display editor.
|
||||
> See also `emacsclient`.
|
||||
> More information: <https://www.gnu.org/software/emacs>.
|
||||
|
||||
- Start Emacs and open a file:
|
||||
|
||||
`emacs {{path/to/file}}`
|
||||
|
||||
- Open a file at a specified line number:
|
||||
|
||||
`emacs +{{line_number}} {{path/to/file}}`
|
||||
|
||||
- Run an Emacs Lisp file as a script:
|
||||
|
||||
`emacs --script {{path/to/file.el}}`
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user