I recently felt the need to work with Spacemacs for my erlang/elixir projects. (was coding Erlang on eclipse).
Now i'm feeling a bit more comfortable with Spacemacs, i have a question regarding how to deal with processes.
I made a mistake on my code and had an infinite loop. I killed it on console but i was wondering how to do the same thing within spacemacs. I've found that SPC a p gave me the possibility to list all the running processes.
Can please someone explain me (i'm a complete beginner on spacemacs/emacs) if it is possible to kill a running process within this menu ?
Regards
Pierre
More generally: You can use M-: (kill-process PROCESS) RET , where PROCESS "may be a process, a buffer, or the name of a process or buffer", with those names being as they appear in the output of list-processes .
Use kill-buffer-and-window to close a buffer and its window. But this will keep emacs running. If you also want to kill emacs (the equivalent of :q ) then try evil-quit-all if you're using evil, and save-buffers-kill-terminal for standard emacs quit.
M-x proced
Choose your line and then k
In Spacemacs, SPC a p
, which runs the command list-processes
, opens a buffer showing only those processes started by Spacemacs.
The list process buffer is evilified, so j
and k
navigate the list of processes,
d
in the list process buffer will immediately delete the process under the cursor (no prompt to confirm is given, so ensure its what you want to do).
q
will quit the process list and close the buffer.
Note: SPC a P
will list all operating system processes, not just those spawned by Spacemacs.
Reference: https://practicalli.github.io/spacemacs/install-spacemacs/troubleshooting.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With