summary refs log tree commit diff
path: root/emacs.d/custom/fcuny-eshell.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-01-04 19:52:04 -0800
committerFranck Cuny <franck@fcuny.net>2021-01-04 19:52:04 -0800
commit88ab401adc83bea6e1f571c54093dbc7f521e080 (patch)
treee2ae9336119ee36707b0e76a6592f4fc8503a4ef /emacs.d/custom/fcuny-eshell.el
parentgit: store configuration under XDG_CONFIG_HOME (diff)
downloademacs.d-88ab401adc83bea6e1f571c54093dbc7f521e080.tar.gz
emacs: rename the directory
Diffstat (limited to 'emacs.d/custom/fcuny-eshell.el')
-rw-r--r--emacs.d/custom/fcuny-eshell.el39
1 files changed, 0 insertions, 39 deletions
diff --git a/emacs.d/custom/fcuny-eshell.el b/emacs.d/custom/fcuny-eshell.el
deleted file mode 100644
index 113964c..0000000
--- a/emacs.d/custom/fcuny-eshell.el
+++ /dev/null
@@ -1,39 +0,0 @@
-(use-package eshell
-  :hook (eshell-mode . fcuny/eshell-mode-setup)
-
-  :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-prefer-lisp-functions nil)
-  (eshell-destroy-buffer-when-process-dies t)
-
-  :init
-  (defun fcuny/eshell-mode-setup ()
-    (eshell/alias "e" "find-file $1")
-    (eshell/alias "emacs" "find-file $1")
-    (eshell/alias "ee" "find-file-other-window $1")
-
-    (eshell/alias "gs" "magit-status")
-    (eshell/alias "gd" "magit-diff-unstaged")
-    (eshell/alias "gds" "magit-diff-staged")
-    (eshell/alias "d" "dired $1"))
-
-  (defun eshell/gst (&rest args)
-    (magit-status (pop args) nil)
-    (eshell/echo))   ;; The echo command suppresses output
-
-  (defun fcuny/eshell-here ()
-    "Opens up a new shell in the directory associated with the current
-buffer's file. The eshell is renamed to match that directory to make
-multiple eshell windows easier."
-    (interactive)
-    (let* ((height (/ (window-total-height) 3)))
-      (split-window-vertically (- height))
-      (other-window 1)
-      (eshell "new")
-      (insert (concat "ls"))
-      (eshell-send-input))))
-
-(provide 'fcuny-eshell)