mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-10 19:54:38 +03:00
activate minor mode in hook instead
This commit is contained in:
parent
e63c3709ce
commit
f9b35f6682
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user