Post B32mLfoXdQ5zLblEeW by crandel@fosstodon.org
 (DIR) More posts by crandel@fosstodon.org
 (DIR) Post #B30QG5kjhDz6kWziGO by holl@mathstodon.xyz
       2026-02-05T07:43:50Z
       
       0 likes, 0 repeats
       
       Wondering what's the reason behind emacs --deamon. I don't get the usecases (for my own usage) but wondering if some would be applicable to myself. #emacs
       
 (DIR) Post #B30QG6svUG88GDplfU by devalot@hostux.social
       2026-02-05T08:00:41Z
       
       0 likes, 0 repeats
       
       @holl I have scripts that talk to the Emacs daemon, for example, capturing the URL of the focused browser to my to-do list.  I also use the daemon so I can edit text boxes on web forms in Emacs without having to start a fresh instance each time.
       
 (DIR) Post #B30QG7uNgKt7R1WRZg by crandel@fosstodon.org
       2026-02-05T08:41:28Z
       
       0 likes, 0 repeats
       
       @devalot @holl What is the problem with starting fresh instance every time? If you configure it correctly it takes less than second. I use #emacs for editing text areas in browsers too.
       
 (DIR) Post #B30QG8dOywttgeaOkS by tusharhero@mathstodon.xyz
       2026-02-05T08:43:24Z
       
       0 likes, 0 repeats
       
       @crandel @devalot @holl I prefer to have a single instance of emacs running so that I can keep using the same buffers, and the same in session configurations (happens more than you think), etc. After using it like this for a while, it feels weird to keep restarting the editor everytime you want to edit something.
       
 (DIR) Post #B30UatkztIq5RXIFUW by sysedit@mastodon.social
       2026-02-05T08:23:52Z
       
       0 likes, 0 repeats
       
       @holl I start Emacs daemon at system start with Systemd. When X starts I autostart Emacs with emacsclient -c. This makes it seem like the startup is instantly.
       
 (DIR) Post #B30Uauy9NsxFCcSGdE by tusharhero@mathstodon.xyz
       2026-02-05T09:32:08Z
       
       0 likes, 0 repeats
       
       @sysedit @holl the best way is to run emacscilent -nc -a '' you never have to worry about starting it manually at all, it will just work everywhere. (it starts a server if it doesn't already exist).
       
 (DIR) Post #B30Y5Dfki5orl9zRMu by crandel@fosstodon.org
       2026-02-05T10:11:13Z
       
       0 likes, 0 repeats
       
       @tusharhero @devalot @holl I'm glad I'm not using daemon mode, seams it cause very weird habits.
       
 (DIR) Post #B30bMhfcjPvHa8xThw by tusharhero@mathstodon.xyz
       2026-02-05T10:48:01Z
       
       0 likes, 0 repeats
       
       @crandel @devalot @holl what is weird about that? Do you also close your browser everytime you want to visit a website?
       
 (DIR) Post #B30iN8wG32XBpetaeO by devalot@hostux.social
       2026-02-05T11:52:10Z
       
       0 likes, 0 repeats
       
       @crandel @holl @tusharhero I suppose there are lots of different workflows.  When I used vim I would start and stop it like any other shell tool in between shell commands.  Now I used one Emacs GUI instance and my terminals are actually Emacs frames.  The only two apps I really ever have running are Emacs and (unfortunately) a web browser.
       
 (DIR) Post #B30iN9jB79fMHNmeu0 by tusharhero@mathstodon.xyz
       2026-02-05T12:06:29Z
       
       0 likes, 0 repeats
       
       @devalot Same! I guess the "start and exit, and then start again" only makes sense on a terminal. But then, if you are using Emacs, you might as well use M-x shell ;).
       
 (DIR) Post #B30jpjczKddxgU50wy by sysedit@mastodon.social
       2026-02-05T12:22:52Z
       
       0 likes, 0 repeats
       
       @tusharhero @holl I used to run it like this and now I prefer to run it differently.The matter is a subjective choice.
       
 (DIR) Post #B30jvEJcfBlkJAdrbk by tusharhero@mathstodon.xyz
       2026-02-05T12:23:53Z
       
       0 likes, 0 repeats
       
       @sysedit What is the advantage of having it run as a systemd service?
       
 (DIR) Post #B30kPiQjGKSUOWVE5A by sysedit@mastodon.social
       2026-02-05T12:29:22Z
       
       0 likes, 0 repeats
       
       @tusharhero The original case I've made for running it as a service was: "This makes it seem like the startup is instantly."Because Emacs daemon was started early, even before X was up it is ready for me the second X starts up. I only have to have emacsclient -c in my autostart.I no longer have to optimize my init.el for speed as Emacs is always up before X even starts the client.
       
 (DIR) Post #B3190WAsBobHzyASX2 by holl@mathstodon.xyz
       2026-02-05T17:04:57Z
       
       0 likes, 0 repeats
       
       @tusharhero @crandel @devalot yes.
       
 (DIR) Post #B319MfZ7xCoXUn4iSO by holl@mathstodon.xyz
       2026-02-05T17:08:58Z
       
       0 likes, 0 repeats
       
       @tusharhero @crandel @devalot i guess the thing is I always havd many emacs frames open. And when I close all, I mean I want to stop the program. I don''t see an advantage of having emacs still running while not also havomg an açtive frame on the de§ktop. But i'm asking especially that: are there such situations. maybe having an emacs command running headless as a cron job?
       
 (DIR) Post #B31QtOfpTdPRspOwfw by crandel@fosstodon.org
       2026-02-05T20:25:20Z
       
       0 likes, 0 repeats
       
       @tusharhero @devalot @holl Everybody is doing this right now, as every new tab is completely separate process. As for #emacs , it is not design this, it has too many global shared stuff, which confuse me a lot.
       
 (DIR) Post #B31R93yWCYJIJyc57A by crandel@fosstodon.org
       2026-02-05T20:28:11Z
       
       0 likes, 0 repeats
       
       @tusharhero @devalot I use oo many terminal tools which are not working in Emacs. Don't want to waste my time on it. I use #emacs only for text editing and coding.
       
 (DIR) Post #B31qtrEXtCnBGiWINc by hajovonta@mastodon.online
       2026-02-05T20:56:43Z
       
       0 likes, 0 repeats
       
       @crandel Not sure about what you are using, but I found most of the tools that didn't work within Emacs had a switch which made them output JSON - and then I could write a wrapper interface in Emacs which turned that JSON into an interactive interface.This, of course, requires some knowledge of Elisp and may not worth the effort, I guess I just wanted to add something to the conversation.✌️ @tusharhero @devalot
       
 (DIR) Post #B31qtsWf5KsTHC0HFw by tusharhero@mathstodon.xyz
       2026-02-06T01:16:46Z
       
       0 likes, 0 repeats
       
       @hajovonta @crandel @devalot they are probably talking about TUI programs.
       
 (DIR) Post #B31qu1yzvLtKbgKXAm by zardoz03@mastodon.online
       2026-02-05T20:27:41Z
       
       0 likes, 0 repeats
       
       @crandel @tusharhero @devalot @holl i mean i live in emacs but i regularly restart if i am configuring in order to keep it reproducible
       
 (DIR) Post #B31qu2u4V9XrSh278K by crandel@fosstodon.org
       2026-02-05T20:30:57Z
       
       0 likes, 0 repeats
       
       @zardoz03 @tusharhero @devalot @holl I have several machines running simultaneously, restarting them regularly help me keep config reproducible too. Totally agree
       
 (DIR) Post #B31qu40UOmGyst2km8 by tusharhero@mathstodon.xyz
       2026-02-06T01:16:16Z
       
       0 likes, 0 repeats
       
       @crandel @zardoz03 @devalot @holl I guess I treat Emacs as a long running repl. Instead of something you have to keep restarting to configure. (My Emacs sessions run for days usually).
       
 (DIR) Post #B31r1d9E8yvxtnjr0a by tusharhero@mathstodon.xyz
       2026-02-06T01:18:12Z
       
       0 likes, 0 repeats
       
       @holl @crandel @devalot well the advantage is that you won't accidentally kill your Emacs session.
       
 (DIR) Post #B32mLfoXdQ5zLblEeW by crandel@fosstodon.org
       2026-02-06T11:59:50Z
       
       0 likes, 0 repeats
       
       @tusharhero @holl @devalot You are not afraid to kill your session if you are doing this constantly)