emacs/lisp/eshell-settings.el

20 lines
592 B
EmacsLisp

;;; eshell-settings --- settings for eshell.
;;; Commentary:
;; the elisp linter wants me to put some text here so I guess I will
;;; Code:
(require 'eshell)
(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
(mapcar
#'expand-file-name (flatten-tree (reverse args))))))
(provide 'eshell-settings)
;;; eshell-settings.el ends here