dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

commit c7b55ce417e81b011b22599e345b71fbd5a76229
parent d4a976ff91ded0c0670fdc20dd07d219dcdfc8a4
Author: Anton Konyahin <me@konyahin.xyz>
Date:   Wed, 24 Jan 2024 19:30:43 +0300

emacs: simplify eshell starter

Diffstat:
Memacs/.emacs.d/init.el | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el @@ -155,9 +155,11 @@ "Jump to exist shell buffer, or open new" (interactive) (let ((dir (eshell/pwd))) - (with-current-buffer (if (get-buffer "*eshell*") - (switch-to-buffer "*eshell*") - (eshell)) - (message dir) - (eshell/cd dir)))) + (eshell) + (message dir) + (eshell/cd dir) + ;; update shell prompt + (eshell-interrupt-process))) (global-set-key (kbd "C-x j") 'knh/jump-to-shell) + +(server-start)