branch: elpa/crux commit e0457f62b1de50be008a7d6d625cd4a40948cbfa Author: Bozhidar Batsov <bozhi...@batsov.com> Commit: Bozhidar Batsov <bozhi...@batsov.com>
Fix a major mode check --- crux.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crux.el b/crux.el index b46c6a0..ca9d863 100644 --- a/crux.el +++ b/crux.el @@ -222,7 +222,7 @@ If the process in that buffer died, ask to restart." (apply crux-shell-func (list crux-shell-buffer-name))) (format "*%s*" crux-shell-buffer-name)) (when (and (null (get-buffer-process (current-buffer))) - (not (eq major-mode 'eshell)) ; eshell has no process + (not (eq major-mode 'eshell-mode)) ; eshell has no process (y-or-n-p "The process has died. Do you want to restart it? ")) (kill-buffer-and-window) (crux-visit-shell-buffer)))