diff options
author | Franck Cuny <franck@fcuny.net> | 2021-10-18 06:46:29 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-10-18 06:46:29 -0700 |
commit | 16e8ac11aad471470a7f6c5832ca3b589e67449a (patch) | |
tree | 5f68d76f1efcc27474bea9ae8dc115ee1f9fc9fd | |
parent | emacs: set eshell-prompt-regexp (diff) | |
download | emacs.d-16e8ac11aad471470a7f6c5832ca3b589e67449a.tar.gz |
emacs: start a shell when configuration is loaded
Once the initialization of our configuration is done, we start a shell session with `eshell'.
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/fcuny-eshell.el | 6 | ||||
-rw-r--r-- | emacs/init.el | 4 |
2 files changed, 10 insertions, 0 deletions
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.") diff --git a/emacs/init.el b/emacs/init.el index 84f1356..0b62061 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -45,3 +45,7 @@ (require 'fcuny-tramp) (require 'fcuny-twitter) (require 'fcuny-notmuch) + +;; once we're done initializing the configuration, we start a shell +;; session with eshell. +(fcuny/eshell-main) |