From 5324aa9bfee4ac04cdb6727f0e93c58cf434279f Mon Sep 17 00:00:00 2001 From: riscy Date: Sat, 14 Nov 2020 18:17:09 -0800 Subject: [PATCH] fix: do not shx-mode in incompatible ielm-mode (#25) --- shx.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shx.el b/shx.el index 668b0c3..cc1a8bb 100644 --- a/shx.el +++ b/shx.el @@ -1083,7 +1083,11 @@ comint-mode in general. Use `shx-global-mode' to enable (defun shx--global-on () "Call the function `shx-mode' if appropriate for the buffer." - (when (derived-mode-p 'comint-mode) (shx-mode +1))) + (when (and + (derived-mode-p 'comint-mode) + ;; ielm is incompatible due to needing (#25) + (not (eq major-mode 'inferior-emacs-lisp-mode))) + (shx-mode +1))) ;;;###autoload (defun shx (&optional name directory)