Add eshell/mkdir-and-cd command

I'd recommend aliasing this to mkdircd or take.
This commit is contained in:
Henrik Lissner 2018-07-06 15:33:25 +02:00
parent 633b5b764d
commit 29ae7f935f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -12,3 +12,9 @@
"Quit the current eshell buffer and close the window it's in."
(setq-local +eshell-kill-window-on-exit t)
(throw 'eshell-terminal t))
;;;###autoload
(defun eshell/mkdir-and-cd (dir)
"Create a directory then cd into it."
(make-directory dir t)
(eshell/cd dir))