From 11875773484d7e19822ab79d8fb0e623c0570c54 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Wed, 26 Aug 2020 19:45:34 +0200 Subject: [PATCH] Manipulate explicit-bash-args only after loading shell package It's not there available early, duh! --- init.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index d12e182..e623b26 100644 --- a/init.el +++ b/init.el @@ -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