From 16e8ac11aad471470a7f6c5832ca3b589e67449a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 18 Oct 2021 06:46:29 -0700 Subject: emacs: start a shell when configuration is loaded Once the initialization of our configuration is done, we start a shell session with `eshell'. --- emacs/custom/fcuny-eshell.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs/custom/fcuny-eshell.el') diff --git a/emacs/custom/fcuny-eshell.el b/emacs/custom/fcuny-eshell.el index c013248..100dfd3 100644 --- a/emacs/custom/fcuny-eshell.el +++ b/emacs/custom/fcuny-eshell.el @@ -103,6 +103,12 @@ multiple eshell windows easier." (insert (concat "ls")) (eshell-send-input))) +(defun fcuny/eshell-main () + (eshell "new") + (rename-buffer "*eshell: main session*") + (insert "ls -l") + (eshell-send-input)) + (defvar-local fcuny/eshell-output-buffer "*Exported eshell output*" "Name of buffer with the last output of Eshell command.") -- cgit 1.4.1