Compare commits

..

1 Commits

Author SHA1 Message Date
68efd1a67e
Use native Emacs completion in shell mode
Evaluating INSIDE_EMACS might also be helpful in setting a usable prompt, even if TERM is "dumb".
2025-03-15 19:56:35 +01:00

13
init.el
View File

@ -2543,8 +2543,7 @@ eventuelly be set to nil, however)."
comint-scroll-show-maximum-output t
comint-completion-addsuffix t
comint-buffer-maximum-size 100000
comint-input-ring-size 5000)
:config (add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m))
comint-input-ring-size 5000))
(use-package term
:commands (term-send-string
@ -2586,7 +2585,15 @@ eventuelly be set to nil, however)."
:commands (shell)
:config (progn
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
(add-hook 'shell-mode-hook 'with-editor-export-editor)))
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
(add-hook 'shell-mode-hook 'with-editor-export-editor)
;; We may want to use readline support in bash, don't inhibit this
;; with explicit command line arguments;
;; cf. https://coredumped.dev/2020/01/04/native-shell-completion-in-emacs/
(setq explicit-bash-args
(delete "--noediting" explicit-bash-args))))
(use-package db-eshell
:commands (db/run-or-hide-eshell