[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kill active process on exit
From: |
Kevin Rodgers |
Subject: |
Re: kill active process on exit |
Date: |
Tue, 21 Dec 2010 20:56:22 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
On 12/21/10 10:23 AM, Rajinder Yadav wrote:
Is the a general accepted way to kill an active process on exit
without being asked? i usually open a command shell and don't want to
be asked this question.
Specific to M-x shell:
(add-hook 'shell-mode-hook
(lambda ()
(set-process-query-on-exit-flag (get-buffer-process
(current-buffer))
nil)))
Easily generalized from shell-mode-hook to comint-exec-hook, which covers
most interactive processes.
i came across this:
http://xavier.robin.name/blog/2010/05/25/emacs-ess-active-process-exist-kill-them-and-exit-anyway
--
Kevin Rodgers
Denver, Colorado, USA