Hacker News new | ask | show | jobs
by nobleach 2395 days ago
Oddly I have an installation of Emacs on my current ArchLinux box that doesn't shut down with `C-xC-c`.... I've had to resort to `C-z, ps ax | grep emacs` to kill the process. I haven't cared enough to fix it.
2 comments

I'd like to tangent a bit and introduce you to pgrep and pkill (available in arch via `procps-ng` pkg). They are very nice for reducing the amount of grep/sed/awk magic on the output of ps.
Assuming `M-x` still works correctly, in emacs you can explicitly run any command associated with a shortcut.

So in this case, `M-x save-buffers-kill-emacs`, or simply `M-x kill-emacs`, could have done the job.

(if this still didn't work, you could even have written "(kill-emacs)" in a buffer and ran it with `C-x C-e` :D )