summaryrefslogtreecommitdiff
path: root/emacs/custom/fcuny-eshell.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/fcuny-eshell.el')
-rw-r--r--emacs/custom/fcuny-eshell.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/emacs/custom/fcuny-eshell.el b/emacs/custom/fcuny-eshell.el
index b5f3878..36aa55e 100644
--- a/emacs/custom/fcuny-eshell.el
+++ b/emacs/custom/fcuny-eshell.el
@@ -1,3 +1,5 @@
+(require 'eshell)
+
(defun fcuny/eshell-mode-setup ()
(eshell/alias "e" "find-file $1")
(eshell/alias "emacs" "find-file $1")
@@ -6,7 +8,10 @@
(eshell/alias "gs" "magit-status")
(eshell/alias "gd" "magit-diff-unstaged")
(eshell/alias "gds" "magit-diff-staged")
- (eshell/alias "d" "dired $1"))
+ (eshell/alias "d" "dired $1")
+
+ ;; Disable current line highlighting.
+ (setq-local global-hl-line-mode nil))
(defun eshell/gst (&rest args)
(magit-status (pop args) nil)
@@ -54,6 +59,7 @@ multiple eshell windows easier."
:hook ((eshell-mode . fcuny/eshell-mode-setup)
(eshell-mode . fcuny/eshell-current-command-time-track)
(eshell-mode . eshell-smart-initialize))
+ :commands (eshell eshell-command)
:bind (("C-c e h" . fcuny/eshell-here))
:init
(require 'em-smart)
@@ -72,8 +78,6 @@ multiple eshell windows easier."
(use-package eshell-bookmark
:ensure t
- :after (eshell)
- :commands eshell-bookmark-setup
:hook (eshell-mode . eshell-bookmark-setup))
(provide 'fcuny-eshell)