emacs/lisp/eshell-settings.el

20 lines
592 B
EmacsLisp
Raw Normal View History

2022-06-19 14:13:36 -08:00
;;; eshell-settings --- settings for eshell.
;;; Commentary:
;; the elisp linter wants me to put some text here so I guess I will
;;; Code:
(require 'eshell)
2022-06-19 14:13:36 -08:00
(defun eshell/emacs (&rest args)
"Basically you can edit ARGS and it will open in a new buffer.
When your shell is Emacs, your Emacs is but an oyster...
This is taken from a website that I can't remember at the moment."
(if (null args)
(bury-buffer)
(mapc
#'find-file-other-window
2022-06-19 14:13:36 -08:00
(mapcar
2022-08-08 06:32:57 -08:00
#'expand-file-name (flatten-tree (reverse args))))))
2022-06-19 14:13:36 -08:00
(provide 'eshell-settings)
;;; eshell-settings.el ends here