summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-09-24 16:20:34 -0700
committerFranck Cuny <franck@fcuny.net>2021-09-24 16:20:34 -0700
commit49bca2e7ccfc2885df05928df1acac63dd03047c (patch)
treea45bd3d60e4740c81e1019d1c940dde787ff8048 /emacs/custom
parentemacs: set the path where to store compiled files (diff)
downloademacs.d-49bca2e7ccfc2885df05928df1acac63dd03047c.tar.gz
emacs: some eshell tweaks
Diffstat (limited to 'emacs/custom')
-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)