[Emacs] Add Eshell packages

Eshell autosuggest (fish-like)

Eshell implementation of z

Eshell syntax highlighting (fish-like)

WIP powerline-eshell theme
This commit is contained in:
Lucien Cartier-Tilet 2021-07-30 19:06:25 +02:00
parent ff624ab8da
commit fc16384b1f
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -2444,9 +2444,26 @@ directories dont, similarly to the ~-p~ option passed to ~mkdir~.
(cd dir))
#+end_src
**** Custom Functions
**** Autosuggestion
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Emacs-built-ins-Eshell-Custom-Functionsw492fl6184j0
:CUSTOM_ID: Packages-Configuration-Emacs-built-ins-Eshell-Autosuggestion-kf6ipm1195j0
:END:
I really like fishs autosuggestion feature, so lets reproduce it
here!
#+begin_src emacs-lisp
(use-package esh-autosuggest
:defer t
:after eshell
:straight (:build t)
:hook (eshell-mode . esh-autosuggest-mode)
:general
(:keymaps 'esh-autosuggest-active-map
"C-e" #'company-complete-selection))
#+end_src
**** Commands
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Emacs-built-ins-Eshell-Commands-n8w3fh2195j0
:END:
When Im in Eshell, sometimes I wish to open multiple files at once in
Emacs. For this, when I have several arguments for ~find-file~, I want
@ -2469,6 +2486,17 @@ that.
(eshell 'N))
#+end_src
A very useful command I use often in fish is ~z~, a port from bashs and
zshs command that allows to jump around directories based on how
often we go in various directories.
#+begin_src emacs-lisp
(use-package eshell-z
:defer t
:after eshell
:straight (:build t)
:hook (eshell-mode . (lambda () (require 'eshell-z))))
#+end_src
**** Environment Variables
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Emacs-built-ins-Eshell-Environment-Variablesmna2fl6184j0
@ -2513,6 +2541,25 @@ I like it, so [[https://github.com/Phundrak/eshell-info-banner.el][Ive writte
eshell-info-banner-partition-prefixes '("/dev" "zroot" "tank")))
#+end_src
Another feature I like is fish-like syntax highlight, which brings
some more colors to Eshell.
#+begin_src emacs-lisp
(use-package eshell-syntax-highlighting
:after esh-mode
:defer t
:config
(eshell-syntax-highlighting-global-mode +1))
#+end_src
Powerline prompts are nice, git-aware prompts are even better!
~eshell-git-prompt~ is nice, but I prefer to write my own package for
that.
#+begin_src emacs-lisp
(use-package powerline-eshell
:load-path "~/fromGIT/emacs-packages/powerline-eshell.el/"
:after eshell)
#+end_src
*** Tramp
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Emacs-built-ins-Tramplqd2fl6184j0