[Misc] Use ‘with-editor’ in eshell and shell

This commit is contained in:
Daniel - 2018-01-14 10:09:44 +01:00
parent 6b1b3c5806
commit 60a3675d3e
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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/