Manipulate explicit-bash-args only after loading shell package

It's not there available early, duh!
This commit is contained in:
Daniel - 2020-08-26 19:45:34 +02:00
parent 9f42b95958
commit 1187577348
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 7 additions and 7 deletions

14
init.el
View File

@ -2177,16 +2177,16 @@ With given ARG, display files in `db/important-document-path."
:commands (shell)
:bind (:map shell-mode-map
("C-r" . counsel-shell-history))
:init (progn
;; 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)))
:config (progn
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
(add-hook 'shell-mode-hook 'with-editor-export-editor)))
(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