Zum Hauptinhalt springen
YouTube Security VideosComputerBase: Autonomer Einride-LKW im Auftrag von Lidl(18.09.2026 um 14:59 Uhr)
YouTube Security VideosGolemDE: iPhone Duo - Erster Eindruck(18.09.2026 um 15:00 Uhr)
Windows Tipps & SecuritySystemstartreparatur funktioniert nicht: So kommt ihr aus der Schleife(18.09.2026 um 15:20 Uhr)
Windows Tipps & SecurityMicrosoft Teams will soon support two people sharing screens at once(18.09.2026 um 14:50 Uhr)
Windows Tipps & SecurityToyota RAV4 PHEV im Test: Schnelles Laden und gute elektrische Reichweite(18.09.2026 um 15:30 Uhr)
Sicherheitslücken (CVE)USN-8782-1: Rclone vulnerability(18.09.2026 um 12:37 Uhr)
YouTube Security VideosComputerBase: Autonomer Einride-LKW im Auftrag von Lidl(18.09.2026 um 14:59 Uhr)
YouTube Security VideosGolemDE: iPhone Duo - Erster Eindruck(18.09.2026 um 15:00 Uhr)
Windows Tipps & SecuritySystemstartreparatur funktioniert nicht: So kommt ihr aus der Schleife(18.09.2026 um 15:20 Uhr)
Windows Tipps & SecurityMicrosoft Teams will soon support two people sharing screens at once(18.09.2026 um 14:50 Uhr)
Windows Tipps & SecurityToyota RAV4 PHEV im Test: Schnelles Laden und gute elektrische Reichweite(18.09.2026 um 15:30 Uhr)
Sicherheitslücken (CVE)USN-8782-1: Rclone vulnerability(18.09.2026 um 12:37 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Faster GNU Emacs start: The Emacs Daemon

Did you know Emacs can be ran in daemon mode?

$ emacs --daemon # Starts emacs, forks into background $ emacsclient -c # Connect to the daemon, '-c' to create new frame 

Or that this daemon can be auto-started if not running by specifying an empty string as an alternate editor?

$ emacsclient -a "" -c 

(And in case you didn't know it, you can run Emacs in the terminal too, with the -nw option.)

$ alias edit='emacsclient -a "" -nw -c' $ edit [file...] 

What this here does is it disconnects the big part of Emacs, the large lisp environment and configuration and buffer-handling and such, from the part of actually drawing the window and grabbing the editor when you need it. When you want to start editing a file, it's snap and ready; no crawling the disk and parsing elisp configuration files. Under the terminal particularly, it's an instant startup compared to how Emacs normally runs, and it really changes the perception of how heavy the editor seems.

The memory usage of opening up half a dozen clients and editing half a dozen files is the same as running a single emacs and editing as many files -- each client is only 1.5 megabytes of RAM usage, and the daemon itself caps out at 170 megabytes for my own workload, editing up to about a dozen C sources for a few projects every week.

At any time, you can close the daemon by opening a client and running M-x kill-emacs.

The one thing to watch out for is that, since your distro probably configures Emacs to use the GTK for running under X, that the daemon will crash when you close X. It won't mess up any of your files, and it's not going to be a problem for all but one or two of you, but it does happen.

Here's an emacsclient.desktop file that you can create in .local/share/applications in order to use it with your desktop environment, an edited version of the emacs.desktop on my system:

[Desktop Entry] Name=Emacsclient GenericName=Text Editor Comment=Edit text MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; Exec=emacsclient -a "" -c %F Icon=emacs Type=Application Terminal=false Categories=Development;TextEditor; StartupWMClass=Emacs Keywords=Text;Editor; 

For me, this works fantastically well because unlike a number of others, I don't run Emacs as an IDE, but rather as just a text editor. I'll open a new editor window to read or write in every five to fifteen minutes, I let dwm do the part of tiling them out and swapping between them, and I'll leave half a dozen clients running in the background so I can pick up on them exactly where I left off. I get my themes, a shortcut set I like, my macros, and online I can get the syntax highlighting for just about every language from NASM x86 to Forth to Donald Knuth's MMIX.

I hope this helps!

submitted by /u/bdlf1729
[link] [comments]
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Faster GNU Emacs start: The Emacs Daemon

Thematisch verwandte Begriffe: Faster, Emacs, start, Daemon · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61591 | djust provides Phoenix LiveView-style reactive server-side rendering for…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Rechts: Artikel Ziehen Links: RSS
Hoch: nächster Artikel Runter: zurück / schließen
News ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Rechts: Original Links: RSS-Ansicht
↗ Original-Quelle
Social Reaktionen Stimme abgeben (+5 Karma)
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick