Tanc
Tanc

Reputation: 667

How to kill a process within spacemacs

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

Upvotes: 7

Views: 2188

Answers (2)

practicalli-johnny
practicalli-johnny

Reputation: 1916

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

Upvotes: 3

djangoliv
djangoliv

Reputation: 1788

M-x proced

Choose your line and then k

Upvotes: 4

Related Questions