From 488a5c4956ea5789528b48d5a8dd97c9c8f3e701 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 28 Jul 2013 18:02:36 +0200 Subject: Emacs: Enabling some more visual commands in EShell, set EShell config directory to ~/.config/eshell (similar to the fish dir) --- emacs.d/init-eshell.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'emacs.d/init-eshell.el') diff --git a/emacs.d/init-eshell.el b/emacs.d/init-eshell.el index 2fd2ed9422..18543f80a7 100644 --- a/emacs.d/init-eshell.el +++ b/emacs.d/init-eshell.el @@ -66,6 +66,21 @@ (setq eshell-highlight-prompt nil) (setq eshell-prompt-regexp "^.+? \\((\\(git\\|svn\\|hg\\|darcs\\|cvs\\|bzr\\):.+?) \\)?[$#] ") +;; Ignore version control folders in autocompletion +(setq eshell-cmpl-cycle-completions nil + eshell-save-history-on-exit t + eshell-cmpl-dir-ignore "\\`\\(\\.\\.?\\|CVS\\|\\.svn\\|\\.git\\)/\\'") + +;; Load some EShell extensions +(eval-after-load 'esh-opt + '(progn + (require 'em-term) + (require 'em-cmpl) + ;; More visual commands! + (add-to-list 'eshell-visual-commands "ssh") + (add-to-list 'eshell-visual-commands "tail"))) + +(setq eshell-directory-name "~/.config/eshell/") ;; EShell functions that come in handy -- cgit 1.4.1