summaryrefslogtreecommitdiff
path: root/emacs/custom/my-eshell.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/my-eshell.el')
-rw-r--r--emacs/custom/my-eshell.el50
1 files changed, 21 insertions, 29 deletions
diff --git a/emacs/custom/my-eshell.el b/emacs/custom/my-eshell.el
index cb2587f..db2d540 100644
--- a/emacs/custom/my-eshell.el
+++ b/emacs/custom/my-eshell.el
@@ -4,7 +4,6 @@
;;; Code:
-(require 'use-package)
(require 'cl-seq)
(require 'vc)
(require 'eshell)
@@ -139,34 +138,27 @@ append to it, while separating multiple outputs with
(add-hook 'eshell-pre-command-hook #'my/eshell-current-command-start nil t)
(add-hook 'eshell-post-command-hook #'my/eshell-current-command-stop nil t))
-(use-package eshell
- :hook ((eshell-mode . my/eshell-mode-setup)
- (eshell-mode . my/eshell-current-command-time-track)
- (eshell-mode . eshell-smart-initialize)
- (eshell-mode . (lambda ()
- (setq-local corfu-auto nil)
- (corfu-mode))))
- :commands (eshell eshell-command)
- :bind (("C-c e h" . my/eshell-here)
- ("C-c e e" . my/eshell-export)
- :map eshell-mode-map
- ("C-o" . my/eshell-open-file-at-point))
- :custom
- (eshell-scroll-to-bottom-on-input 'all)
- (eshell-error-if-no-glob t)
- (eshell-hist-ignoredups t)
- (eshell-save-history-on-exit t)
- (eshell-cd-on-directory t)
- (eshell-prefer-lisp-functions nil)
- (eshell-where-to-jump 'begin)
- (eshell-review-quick-commands nil)
- (eshell-smart-space-goes-to-end t)
- (tramp-shell-prompt-pattern "^[^$>\n]*[#$%>] *\\(\[[0-9;]*[a-zA-Z] *\\)*")
- (eshell-destroy-buffer-when-process-dies t))
-
-(use-package eshell-bookmark
- :ensure t
- :hook (eshell-mode . eshell-bookmark-setup))
+(global-set-key (kbd "C-c e h") 'my/eshell-here)
+(define-key eshell-mode-map (kbd "C-c e e") 'my/eshell-export)
+(define-key eshell-mode-map (kbd "C-o") 'my/eshell-open-file-at-point)
+
+(customize-set-variable 'eshell-scroll-to-bottom-on-input 'all)
+(customize-set-variable 'eshell-error-if-no-glob t)
+(customize-set-variable 'eshell-hist-ignoredups t)
+(customize-set-variable 'eshell-save-history-on-exit t)
+(customize-set-variable 'eshell-cd-on-directory t)
+(customize-set-variable 'eshell-prefer-lisp-functions nil)
+(customize-set-variable 'eshell-where-to-jump 'begin)
+(customize-set-variable 'eshell-review-quick-commands nil)
+(customize-set-variable 'eshell-smart-space-goes-to-end t)
+(customize-set-variable 'tramp-shell-prompt-pattern "^[^$>\n]*[#$%>] *\\(customize-set-variable '\[[0-9;]*[a-zA-Z] *\\)*")
+(customize-set-variable 'eshell-destroy-buffer-when-process-dies t)
+
+(add-hook 'eshell-mode-hook 'my/eshell-mode-setup)
+(add-hook 'eshell-mode-hook 'my/eshell-current-command-time-track)
+(add-hook 'eshell-mode-hook 'eshell-smart-initialize)
+(add-hook 'eshell-mode-hook 'eshell-bookmark-setup)
(provide 'my-eshell)
+
;;; my-eshell.el ends here