diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2023-03-12 11:07:20 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2023-03-12 11:07:20 -0400 |
commit | 7964c8ce1279249e640406cfbcd4be13f3c2a2b3 (patch) | |
tree | e1ee9f2f4c3a2f6b27b6a05293798316ddbbd0bb /emacs/.config/emacs-kj/eshell.el | |
parent | f9986a8179655a57e76424ed5430f1c929ce14c8 (diff) |
emacs config
Diffstat (limited to 'emacs/.config/emacs-kj/eshell.el')
-rw-r--r-- | emacs/.config/emacs-kj/eshell.el | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/emacs/.config/emacs-kj/eshell.el b/emacs/.config/emacs-kj/eshell.el deleted file mode 100644 index cd8d684..0000000 --- a/emacs/.config/emacs-kj/eshell.el +++ /dev/null @@ -1,44 +0,0 @@ -;;; -*- lexical-binding: t; -*- -(use-package eshell - :config - (add-hook 'eshell-mode-hook - (lambda () - (setenv "PAGER" "cat")) - (setenv "EDITOR" "emacsclient")) - (setq eshell-prefer-lisp-functions nil - eshell-scroll-to-bottom-on-input 'all - eshell-hist-ignoredups t - eshell-error-if-no-glob t) - (setq tramp-remote-path '(tramp-own-remote-path)) - - (add-to-list 'eshell-modules-list 'eshell-tramp) - (add-to-list 'eshell-load-hook #'kj/on-eshell-load) - - (add-hook 'eshell-mode-hook 'visual-line-mode)) - -(use-package esh-help - :init - (setup-esh-help-eldoc)) - -(use-package eshell-syntax-highlighting - :hook (eshell-mode . eshell-syntax-highlighting-mode)) - -(use-package fish-completion - :config - (setq fish-completion-fallback-on-bash-p t) - :init - (fish-completion-mode 1)) - -(defun kj/on-eshell-load (&args rest) - (add-to-list 'eshell-visual-commands - '("htop" "tmux" "vim" "nvim")) - (add-to-list 'eshell-complex-commands "ssh")) - -(defun eshell/ssh (&rest args) - (if (= 1 (length args)) - (throw 'eshell-replace-command - (eshell/cd - (format "/ssh:%s:" (car args)))) - (throw 'eshell-replace-command - (eshell-parse-command "*ssh" - (eshell-stringify-list (flatten-tree args)))))) |