Do a whole bunch of eshell stuff, consolidate settings file

This commit is contained in:
MitchMarq42 2022-08-24 19:26:50 -08:00
parent 20dc5b7887
commit eaf91b1cbd
2 changed files with 27 additions and 25 deletions

View File

@ -1,19 +0,0 @@
;;; 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

View File

@ -44,17 +44,38 @@ NAME and ARGS are in `use-package'."
:custom :custom
(whitespace-style '(face lines-tail)) (whitespace-style '(face lines-tail))
(whitespace-line-column 80) (whitespace-line-column 80)
(use-package eshell :hook (prog-mode . whitespace-mode)
;; :config (global-whitespace-mode t)
)
(use-feature eshell
:straight (:type built-in) :straight (:type built-in)
:commands (eshell/emacs eshell/man) :commands (eshell/emacs eshell/man)
:custom (eshell-scroll-to-bottom-on-input t)
:config :config
(require 'eshell) (add-to-list 'eshell-modules-list 'eshell-rebind)
(require 'em-unix) (defun eshell/emacs (&rest args)
(require 'eshell-settings)) "Basically you can edit ARGS and it will open in a new buffer.
(use-package eshell-vterm 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)))))))
(elpaca-use-package eshell-vterm
:after eshell
:custom (eshell-destroy-buffer-when-process-dies t) :custom (eshell-destroy-buffer-when-process-dies t)
:hook (eshell-mode . eshell-vterm-mode)) :hook (eshell-mode . eshell-vterm-mode))
(use-package ibuffer (elpaca-use-package eshell-syntax-highlighting
:hook (eshell-mode . eshell-syntax-highlighting-mode))
(elpaca-use-package eshell-prompt-extras
:after eshell
:custom
(eshell-highlight-prompt nil)
(eshell-prompt-function 'epe-theme-multiline-with-status)
(epe-path-style 'full))
(use-feature ibuffer
:straight (:type built-in) :straight (:type built-in)
:commands ibuffer :commands ibuffer
:custom (ibuffer-use-other-window t)) :custom (ibuffer-use-other-window t))