summaryrefslogtreecommitdiff
path: root/terminal-here.el
diff options
context:
space:
mode:
authorDavid Shepherd <davidshepherd7@gmail.com>2017-03-30 08:43:16 +0100
committerDavid Shepherd <davidshepherd7@gmail.com>2017-03-30 16:23:55 +0100
commitc843a574f441be003c56c7ebda088950461c8f2e (patch)
tree4e70a9fc29fe091acc5ea3080a1dc3fe93fe930a /terminal-here.el
parentShow error message if terminal command fails (diff)
downloademacs-terminal-here-c843a574f441be003c56c7ebda088950461c8f2e.tar.gz
Don't query about closing terminals when exiting emacs on Windows
Diffstat (limited to 'terminal-here.el')
-rw-r--r--terminal-here.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/terminal-here.el b/terminal-here.el
index 0820ef9..6d412bf 100644
--- a/terminal-here.el
+++ b/terminal-here.el
@@ -31,7 +31,7 @@
((eq system-type 'darwin)
(list "open" "-a" "Terminal.app" dir))
- ;; From http://stackoverflow.com/a/13509208/874671
+ ;; From http://stackoverflow.com/a/13509208/874671
((memq system-type '(windows-nt ms-dos cygwin))
(list "cmd.exe" "/C" "start" "cmd.exe"))
@@ -78,7 +78,9 @@ buffer is not in a project."
(when (and (eq (process-status proc) 'exit) (/= (process-exit-status proc) 0))
(message "Error: in terminal here, command `%s` exited with error code %d"
(mapconcat #'identity term-command " ")
- (process-exit-status proc)))))))
+ (process-exit-status proc)))))
+ ;; Don't close when emacs closes, seems to only be necessary on Windows.
+ (set-process-query-on-exit-flag proc nil)))
;;;###autoload
(defun terminal-here-launch ()