aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-16 16:49:34 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-16 16:49:34 +0100
commit3ea88a55a24704c2bd6a589006f4c427d22bb67c (patch)
treef89e4b46b37b71ce9f3ebda6f54eebfc3017750b /Emacs/.config
parentf82a489b1517876570dc34b78acdee25219a9065 (diff)
downloaddotfiles-3ea88a55a24704c2bd6a589006f4c427d22bb67c.tar.gz
dotfiles-3ea88a55a24704c2bd6a589006f4c427d22bb67c.tar.bz2
dotfiles-3ea88a55a24704c2bd6a589006f4c427d22bb67c.zip
Move +eshell/banner-message to EShell basics
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org12
1 files changed, 7 insertions, 5 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 2833253..57c845e 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -1925,10 +1925,15 @@ them.
(display-buffer-same-window)
(reusable-frames . t))
:init
+ (defun +eshell/banner-message ()
+ (concat (shell-command-to-string "fortune") "\n"))
+
(setq eshell-cmpl-ignore-case t
eshell-cd-on-directory t
eshell-cd-shows-directory nil
- eshell-highlight-prompt nil)
+ eshell-highlight-prompt nil
+ eshell-banner-message '(+eshell/banner-message))
+
(defun +eshell/good-clear ()
(interactive)
(eshell/clear-scrollback)
@@ -1973,10 +1978,7 @@ internals without autoloading.
(use-package eshell-prompt
:load-path "elisp/"
:config
- (defun +eshell/banner-message ()
- (concat (shell-command-to-string "fortune") "\n"))
- (setq eshell-prompt-function #'+eshell-prompt/make-prompt
- eshell-banner-message '(+eshell/banner-message)))
+ (setq eshell-prompt-function #'+eshell-prompt/make-prompt))
#+end_src
*** EShell additions
Using my external library