Closes ansi-term window on exit

This commit is contained in:
William Carroll 2017-06-02 17:23:19 -04:00
parent bf59063853
commit a98d537843

View file

@ -114,7 +114,7 @@
;; Load custom Emacs functions ;; Load custom Emacs functions
(load "~/.emacs/wc-helper-functions.lisp") (load "~/.emacs.d/wc-helper-functions.lisp")
;; ERC configuration (IRC in Emacs) ;; ERC configuration (IRC in Emacs)
@ -184,7 +184,7 @@
(if (memq (process-status proc) '(signal exit)) (if (memq (process-status proc) '(signal exit))
(let ((buffer (process-buffer proc))) (let ((buffer (process-buffer proc)))
ad-do-it ad-do-it
(kill-buffer buffer)) (kill-buffer-and-window))
ad-do-it)) ad-do-it))
(ad-activate 'term-sentinel) (ad-activate 'term-sentinel)