[Misc] Use ‘with-editor’ in eshell and shell
This commit is contained in:
parent
6b1b3c5806
commit
60a3675d3e
8
init.el
8
init.el
|
@ -1030,15 +1030,19 @@ Certificates are assumed to be of the form *.crt."
|
|||
(add-hook 'compilation-filter-hook #'endless/colorize-compilation)))
|
||||
|
||||
(use-package shell
|
||||
:defer t
|
||||
:commands (shell)
|
||||
: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 'comint-output-filter-functions 'comint-strip-ctrl-m)
|
||||
(add-hook 'shell-mode-hook 'with-editor-export-editor)))
|
||||
|
||||
(use-package eshell
|
||||
:commands (eshell)
|
||||
:config (use-package db-eshell))
|
||||
|
||||
(use-package with-editor
|
||||
:commands (with-editor-export-editor))
|
||||
|
||||
|
||||
;; * Lisp
|
||||
|
||||
|
|
|
@ -54,6 +54,9 @@
|
|||
(lambda ()
|
||||
(add-hook 'eshell-output-filter-functions 'eshell-truncate-buffer)))
|
||||
|
||||
(add-hook 'eshell-mode-hook
|
||||
'with-editor-export-editor)
|
||||
|
||||
|
||||
;; Git Completion
|
||||
;; https://tsdh.wordpress.com/2013/05/31/eshell-completion-for-git-bzr-and-hg/
|
||||
|
|
Loading…
Reference in New Issue