Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Interesting, that was more the experience I had the first time I tried using Emacs as a vi user. The documentation I could find (limited, this was back in the <gasp> '80s, couldn't google it), said "You are never intended to leave Emacs, you should be able to do everything inside it." I was done with my lunch break and needed to get back to work, so I went to another X window and killed Emacs.


Nowadays, default (with-a-gui) emacs has the very standard "File > Quit" drop-dowm menu ;)


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.


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 )




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: