Skip to content

Commit

Permalink
cleanup: remove eshell, as I don't use it as much
Browse files Browse the repository at this point in the history
  • Loading branch information
tungd committed Oct 8, 2024
1 parent e84a17b commit cc15c19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 61 deletions.
15 changes: 7 additions & 8 deletions emacs/custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,13 @@
'(epg-gpg-program "/usr/local/MacGPG2/bin/gpg2")
'(package-selected-packages
'(avy consult copilot crux csv-mode d2-mode detached diff-hl dune editorconfig
eglot emmet-mode envrc eshell-toggle eshell-up eshell-z
exec-path-from-shell f gptel gptel-anthropic highlight-indentation
indent-guide isearch-mb kotlin-mode kotlin-ts-mode lua-mode magit
markdown-mode markdown-ts-mode minions modus-theme ob-async ob-http
ob-kotlin ob-plantuml ob-redis orderless persp-mode protobuf-mode
rainbow-mode reason-mode redis rg scad-mode surround tempel
terraform-mode tuareg undo-fu-session vertico visual-regexp vterm vundo
web-beautify web-mode))
eglot emmet-mode envrc exec-path-from-shell f gptel gptel-anthropic
highlight-indentation indent-guide isearch-mb kotlin-mode
kotlin-ts-mode lua-mode magit markdown-mode markdown-ts-mode minions
modus-theme ob-async ob-http ob-kotlin ob-plantuml ob-redis orderless
persp-mode protobuf-mode rainbow-mode reason-mode redis rg scad-mode
surround tempel terraform-mode tuareg undo-fu-session vertico
visual-regexp vterm vundo web-beautify web-mode))
'(package-vc-selected-packages
'((copilot :url "https://github.com/copilot-emacs/copilot.el.git" :branch "main")))
'(safe-local-variable-values
Expand Down
53 changes: 0 additions & 53 deletions emacs/init.org
Original file line number Diff line number Diff line change
Expand Up @@ -652,59 +652,6 @@ Tempo integration code for future reference:
:bind ("C-c C-l" . comint-clear-buffer))
#+end_src

** EShell

#+begin_src emacs-lisp
(use-package eshell-toggle
:ensure t
:bind* (("C-c C-s" . eshell-toggle))
:custom
(eshell-toggle-use-git-root t))

(use-package eshell-up
:ensure t
:functions eshell-up
:defer t
:config
(defalias 'eshell/up 'eshell-up))

(use-package eshell-z
:ensure t
:functions eshell/z
:defer t)

;; (use-package eshell-vterm
;; :ensure t
;; :defer t
;; :hook (after-init . eshell-vterm-mode))

(defun td/eshell-pwd ()
(replace-regexp-in-string
(regexp-quote (expand-file-name "~"))
"~"
(eshell/pwd)))

(defun td/eshell-prompt ()
(format
"\n%s@%s in %s\n%s "
(propertize user-login-name 'face '(:foreground "#dc322f"))
(propertize (or (getenv "HOST") (system-name)) 'face '(:foreground "#b58900"))
(propertize (td/eshell-pwd) 'face '(:foreground "#859900"))
(if (= (user-uid) 0)
(propertize "#" 'face '(:foreground "red")) "$")))

(use-package eshell
:functions (eshell/pwd)
:custom
(eshell-prompt-function #'td/eshell-prompt)
(eshell-prompt-regexp "^[^#$\\n]*[#$] ")
(eshell-highlight-prompt nil)
(eshell-scroll-to-bottom-on-input t)
:config
(defalias 'eshell/e #'find-file)
(with-eval-after-load "crux"
(defalias 'eshell/open #'crux-open-with)))
#+end_src

** Tramp

Expand Down

0 comments on commit cc15c19

Please sign in to comment.