@papa @astralakash

If you are using emacsclient, the C-x C-c part is needed may be once a day, or a week, or a month, or a .. :P

@kaushalmodi @astralakash @splatt9990 @PinkCathodeCat My only problem with is that I can't get the key mappings right on all my SSH hosts. :( I wish I could just copy .emacs to a new host and it would work.

@papa @splatt9990 @astralakash @kaushalmodi I test for the host string using (string-equal (system-name) "$HOST") for that sort of config, but I need to make it for everything as it's sort of a hodge-podge of some config being separated into files for that purpose and some not.
@papa @splatt9990 @astralakash @kaushalmodi assuming I've understood your problem correctly of course, and am not suggesting something you already know :)

With the help of HOST I run the same config files on my Mac, Windows computer and server.

Also, I'm going to give a shout out for cask and pallet. I use them to handle emacs package deployment. It makes setting up emacs just the way I like it on a new machine a breeze.

@kaushalmodi @astralakash @splatt9990 @PinkCathodeCat

Just a more compulsive one. I became so tired of maintaining 3 different configs.

@kaushalmodi @astralakash @splatt9990 @PinkCathodeCat

@zge @kaushalmodi @astralakash I think the idea is to start in .xsession and keep it running in the background until you shutdown.

@papa @kaushalmodi @astralakash Yeah, but if you close your emacsclient session, you'd have to run C-x C-c. And if you're not going to close it, then what's the difference from running "regular" emacs?


> what's the difference from running "regular" emacs?

The difference is noticeable based on your file opening flow.

I don't always C-x C-f from the emacs(client) session. Many times, I'm in the terminal, and I want to open a file from there. Using emacsclient, I can open that file in the already open emacsclient session (minus the load time, etc.)

That cannot be done in emacs sessions.

@papa @astralakash

@kaushalmodi @papa @astralakash Yeah, I get that, but when you're done you close the client using C-x C-c, right?


No, I leave it open. It'd be doing something else or another in that emacsclient session. I use Emacs 100% of my work time.

I actually have tweaked C-x C-c to kill the server too. So I use that binding only when I want to hard-restart Emacs(client).

@papa @astralakash

@kaushalmodi @papa @astralakash Oh, ok that makes sense. I've never been too much of a fan of emacs-server/client, so I'm unfamiliar with the workflow.

@papa @astralakash False, you never need to exit #emacs

(global-set-key (kbd "C-x C-c") 'nil)

@papa @astralakash C-x C-s C-x C-c C-oh crap, I was in Vim on a client machine and I've done something with flow control and now the terminal is unresponsive.

Accidentally using Emacs keystrokes to quit Vim is Galaxy Brain level loss.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko