Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:01:16+00:00 2026-06-04T11:01:16+00:00

How to kill an internal process in Emacs? For example I run M-x shell

  • 0

How to kill an internal process in Emacs? For example I run M-x shell.

I can check running processes with M-x list-processes but how can I kill a process from this list?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:01:18+00:00Added an answer on June 4, 2026 at 11:01 am

    There is no default key binding for this; however see pjammer’s answer — list-processes+ includes (among other things) a kill binding on C-k — and also Joao Tavora’s answer — which provides just a kill binding (for the same key).

    event_jr points out in the comments that you can use M-: (kill-process) RET to kill the current buffer’s process.

    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. Process names take precedence over buffer names, should you happen to have a conflict; so it’s probably best to be in the habit of supplying the process name.

    Alternatively, Emacs 23+ has a general system process manager (M-x proced) which is more akin to running top, and which does have a default binding for sending (arbitrary) signals (k). Of course it may be far less obvious in that listing which process you’re interested in.


    Edit: Better late than never 🙂 The following enables M-x kill-process RET to be used (tested in Emacs 26.1):

    ;; Enable M-x kill-process (to kill the current buffer's process).
    (put 'kill-process 'interactive-form
         '(interactive
           (let ((proc (get-buffer-process (current-buffer))))
             (if (process-live-p proc)
                 (unless (yes-or-no-p (format "Kill %S? " proc))
                   (error "Process not killed"))
               (error (format "Buffer %s has no process" (buffer-name))))
             nil)))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When running my WebApp project from Eclipse most of times it run correctly. But
I have a report in our internal system that can return anywhere from 1
How do I kill the space in the top left corner of this example
How can I kill all my instances from the command line? Is there a
Hello How can i kill my service when my Mobile Boot ups. For example
kill -s SIGCHLD The above is the code for killing any zombie process, But
I know you cannot kill a boost thread, but can you change it's task?
I want to kill a process running on the machine using taskkill if they're
How can I kill all the Activities of my application? I tried using this.finish()
I need to kill a running application on iPhone using mobile substrate.Can anybody help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.