I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

4 years ago
4 years ago
4 years ago
  1. #+TITLE: EShell
  2. #+AUTHOR: Christopher James Hayward
  3. #+EMAIL: chris@chrishayward.xyz
  4. #+PROPERTY: header-args:emacs-lisp :tangle eshell.el :comments org
  5. #+PROPERTY: header-args :results silent :eval no-export :comments org
  6. #+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil
  7. #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil
  8. EShell is a fully POSIX compliant shell written entirely in Emacs Lisp, included with Emacs.
  9. * Config
  10. While not a traditional terminal emulator, it provides a native REPL for Emacs Lisp code, with everything in your configuration available in the environment. Make some slight configurations:
  11. + Don't highlight the prompt
  12. + Favour use of system utilities
  13. #+begin_src emacs-lisp
  14. (setq eshell-highlight-prompt nil
  15. eshell-prefer-lisp-functions nil)
  16. #+end_src
  17. * Extras
  18. Implement the lambda prompt for aesthetic purposes with the ~eshell-prompt-extras~ package. Here's an example of what that looks like:
  19. #+begin_example
  20. ~/.emacs.d/modules:main*? λ
  21. #+end_example
  22. #+begin_src emacs-lisp
  23. (use-package eshell-prompt-extras
  24. :custom (eshell-prompt-function 'epe-theme-lambda))
  25. #+end_src
  26. * Shortcuts
  27. Open ~eshell~ in the current buffer with =SPC e=:
  28. #+begin_src emacs-lisp
  29. (dotfiles/leader
  30. "e" '(eshell :which-key "EShell"))
  31. #+end_src