mirror of https://github.com/CrimsonTome/tldr.git
emacs, emacsclient: refresh (#6096)
parent
498e88cef7
commit
68023b7eb8
|
@ -1,16 +1,29 @@
|
||||||
# emacs
|
# emacs
|
||||||
|
|
||||||
> Der erweiterbare, veränderbare und selbst-dokumentierende Echtzeit Text Editor.
|
> Der erweiterbare, veränderbare und selbst-dokumentierende Echtzeit Text Editor.
|
||||||
|
> Siehe auch `emacsclient`.
|
||||||
> Weitere Informationen: <https://www.gnu.org/software/emacs>.
|
> Weitere Informationen: <https://www.gnu.org/software/emacs>.
|
||||||
|
|
||||||
- Starte Emacs in der Konsole (ohne X-Fenster):
|
|
||||||
|
|
||||||
`emacs -nw`
|
|
||||||
|
|
||||||
- Öffne eine Datei in Emacs:
|
- Öffne eine Datei in Emacs:
|
||||||
|
|
||||||
`emacs {{pfad/zu/datei}}`
|
`emacs {{pfad/zu/datei}}`
|
||||||
|
|
||||||
|
- Öffne eine Datei in einer bestimmten Zeile:
|
||||||
|
|
||||||
|
`emacs +{{zeilennummer}} {{pfad/zu/datei}}`
|
||||||
|
|
||||||
|
- Starte Emacs in der Konsole (ohne X-Fenster):
|
||||||
|
|
||||||
|
`emacs --no-window-system`
|
||||||
|
|
||||||
|
- Starte einen Emacs-Server im Hintergrund (aufrufbar mit `emacsclient`):
|
||||||
|
|
||||||
|
`emacs --daemon`
|
||||||
|
|
||||||
|
- Beende einen laufenden Emacs-Server und alle Instanzen und frage nach Bestätigung für ungespeicherte Dateien:
|
||||||
|
|
||||||
|
`emacsclient --eval '(save-buffers-kill-emacs)'`
|
||||||
|
|
||||||
- Tastenkombination zum Speichern einer Datei:
|
- Tastenkombination zum Speichern einer Datei:
|
||||||
|
|
||||||
`Ctrl + X, Ctrl + S`
|
`Ctrl + X, Ctrl + S`
|
||||||
|
@ -18,7 +31,3 @@
|
||||||
- Tastenkombination zum Beenden von Emacs:
|
- Tastenkombination zum Beenden von Emacs:
|
||||||
|
|
||||||
`Ctrl + X, Ctrl + C`
|
`Ctrl + X, Ctrl + C`
|
||||||
|
|
||||||
- Öffne eine Datei in einer bestimmten Zeile:
|
|
||||||
|
|
||||||
`emacs +{{zeilennummer}} {{pfad/zu/datei}}`
|
|
||||||
|
|
|
@ -1,24 +1,29 @@
|
||||||
# emacsclient
|
# emacsclient
|
||||||
|
|
||||||
> Öffnet Dateien in einem laufenden Emacs Server.
|
> Öffnet Dateien in einem laufenden Emacs-Server.
|
||||||
|
> Siehe auch `emacs`.
|
||||||
> Weitere Informationen: <https://www.emacswiki.org/emacs/EmacsClient>.
|
> Weitere Informationen: <https://www.emacswiki.org/emacs/EmacsClient>.
|
||||||
|
|
||||||
- Öffne eine Datei (direkt in der GUI wenn möglich):
|
- Öffne eine Datei in einem laufenden Emacs-Server (mit GUI wenn möglich):
|
||||||
|
|
||||||
`emacsclient {{pfad/zu/datei}}`
|
`emacsclient {{pfad/zu/datei}}`
|
||||||
|
|
||||||
- Öffne eine Datei in der Konsole (ohne X-Fenster):
|
- Öffne eine Datei in der Konsole (ohne X-Fenster):
|
||||||
|
|
||||||
`emacsclient -nw {{pfad/zu/datei}}`
|
`emacsclient --no-window-system {{pfad/zu/datei}}`
|
||||||
|
|
||||||
- Öffne eine Datei in Emacs mit direktem Zurückkehren in die Konsole:
|
|
||||||
|
|
||||||
`emacsclient -n {{pfad/zu/datei}}`
|
|
||||||
|
|
||||||
- Öffne eine Datei in einem neuen Emacs Fenster:
|
- Öffne eine Datei in einem neuen Emacs Fenster:
|
||||||
|
|
||||||
`emacsclient -c {{pfad/zu/datei}}`
|
`emacsclient --create-frame {{pfad/zu/datei}}`
|
||||||
|
|
||||||
- Führe einen Befehl in einem neuen Emacs Fenster aus:
|
- Führe einen Befehl aus und schreibe das Ergebnis in stdout:
|
||||||
|
|
||||||
`emacsclient -c -e '({{befehl}})'`
|
`emacsclient --eval '({{befehl}})'`
|
||||||
|
|
||||||
|
- Gib einen alternativen Editor an für den Fall, dass kein Emacs-Server läuft:
|
||||||
|
|
||||||
|
`emacsclient --alternate-editor {{editor}} {{pfad/zu/datei}}`
|
||||||
|
|
||||||
|
- Beende einen laufenden Emacs-Server und alle Instanzen und frage nach Bestätigung für ungespeicherte Dateien:
|
||||||
|
|
||||||
|
`emacsclient --eval '(save-buffers-kill-emacs)'`
|
||||||
|
|
|
@ -1,24 +1,33 @@
|
||||||
# emacs
|
# emacs
|
||||||
|
|
||||||
> The extensible, customizable, self-documenting, real-time display editor.
|
> The extensible, customizable, self-documenting, real-time display editor.
|
||||||
|
> See also `emacsclient`.
|
||||||
> More information: <https://www.gnu.org/software/emacs>.
|
> More information: <https://www.gnu.org/software/emacs>.
|
||||||
|
|
||||||
- Start in console mode (without X window):
|
- Start Emacs and open a file:
|
||||||
|
|
||||||
`emacs -nw`
|
|
||||||
|
|
||||||
- Open a file:
|
|
||||||
|
|
||||||
`emacs {{path/to/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:
|
- Open a file at a specified line number:
|
||||||
|
|
||||||
`emacs +{{line_number}} {{path/to/file}}`
|
`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`
|
||||||
|
|
|
@ -1,24 +1,29 @@
|
||||||
# emacsclient
|
# emacsclient
|
||||||
|
|
||||||
> Open files in an existing emacs server.
|
> Open files in an existing Emacs server.
|
||||||
|
> See also `emacs`.
|
||||||
> More information: <https://www.emacswiki.org/emacs/EmacsClient>.
|
> More information: <https://www.emacswiki.org/emacs/EmacsClient>.
|
||||||
|
|
||||||
- Open files in an existing Emacs server (using GUI if available):
|
- Open a file in an existing Emacs server (using GUI if available):
|
||||||
|
|
||||||
`emacsclient {{filename}}`
|
`emacsclient {{path/to/file}}`
|
||||||
|
|
||||||
- Open file in console mode (without X window):
|
- Open a file in console mode (without an X window):
|
||||||
|
|
||||||
`emacsclient -nw {{filename}}`
|
`emacsclient --no-window-system {{path/to/file}}`
|
||||||
|
|
||||||
- Open a file in an existing emacs frame and return immediately:
|
- Open a file in a new Emacs window:
|
||||||
|
|
||||||
`emacsclient -n {{filename}}`
|
`emacsclient --create-frame {{path/to/file}}`
|
||||||
|
|
||||||
- Open file in a new emacs frame:
|
- Evaluate a command, printing the output to stdout, and then quit:
|
||||||
|
|
||||||
`emacsclient -c {{filename}}`
|
`emacsclient --eval '({{command}})'`
|
||||||
|
|
||||||
- Evaluate command in a new emacs frame:
|
- Specify an alternative editor in case no Emacs server is running:
|
||||||
|
|
||||||
`emacsclient -c -e '({{command}})'`
|
`emacsclient --alternate-editor {{editor}} {{path/to/file}}`
|
||||||
|
|
||||||
|
- Stop a running Emacs server and all its instances, asking for confirmation on unsaved files:
|
||||||
|
|
||||||
|
`emacsclient --eval '(save-buffers-kill-emacs)'`
|
||||||
|
|
Loading…
Reference in New Issue