summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2026-02-21 18:16:06 -0800
committerKleidi Bujari <mail@4kb.net>2026-02-21 18:16:06 -0800
commitc15fc8aef0ad29e54410030c88548080e07322fd (patch)
tree7a76861092fbf7d1e774350a53e2949d3d7187f0 /init.el
parent71a10010b44baa8ca85bc076fb9c23dfa852542d (diff)
download.emacs.d-c15fc8aef0ad29e54410030c88548080e07322fd.tar.gz
.emacs.d-c15fc8aef0ad29e54410030c88548080e07322fd.tar.bz2
.emacs.d-c15fc8aef0ad29e54410030c88548080e07322fd.zip
don't start eshell each time init.el is evaluated
before eshell was started on each evaluation. eshell should start on emacs startup but it should be disabled for evaluating init.el manually when iterating on config changes
Diffstat (limited to 'init.el')
-rw-r--r--init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.el b/init.el
index 45c402d..7df12da 100644
--- a/init.el
+++ b/init.el
@@ -260,4 +260,6 @@
:ensure t
:hook (after-init . envrc-global-mode))
-(eshell)
+;; Start eshell unless evaluating init.el
+(unless (string-equal "init.el" (format "%s" (current-buffer)))
+ (eshell))