Skip to content

Commit

Permalink
fix: do not shx-mode in incompatible ielm-mode (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
riscy committed Nov 15, 2020
1 parent 06b468b commit 5324aa9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shx.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 <return> (#25)
(not (eq major-mode 'inferior-emacs-lisp-mode)))
(shx-mode +1)))

;;;###autoload
(defun shx (&optional name directory)
Expand Down

0 comments on commit 5324aa9

Please sign in to comment.