From 49bca2e7ccfc2885df05928df1acac63dd03047c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 24 Sep 2021 16:20:34 -0700 Subject: emacs: some eshell tweaks --- emacs/custom/fcuny-eshell.el | 10 +++++++--- 1 file 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) -- cgit 1.4.1