activate minor mode in hook instead

This commit is contained in:
Erik 2016-03-21 07:53:21 +01:00
parent e63c3709ce
commit f9b35f6682

View File

@ -211,8 +211,9 @@ to continue it."
(setq comint-input-filter #'inf-carp-input-filter)
(set (make-local-variable 'comint-prompt-read-only) inf-carp-prompt-read-only)
(add-hook 'comint-preoutput-filter-functions #'inf-carp-preoutput-filter nil t)
(add-hook 'completion-at-point-functions #'inf-carp-completion-at-point nil t)
(inf-carp-minor-mode 1))
(add-hook 'completion-at-point-functions #'inf-carp-completion-at-point nil t))
(add-hook 'carp-mode-hook (lambda () (inf-carp-minor-mode 1)))
(defun inf-carp-get-old-input ()
"Return a string containing the sexp ending at point."