From d6b5f596b5db6607ccc0df606b39f88643ae32e6 Mon Sep 17 00:00:00 2001 From: Tu Do Date: Mon, 25 May 2015 10:47:13 +0700 Subject: [PATCH] Remove auto change directory in ansi-term By sending `cd` command, it clears previous shell output. This is only an issue with ansi-term, not other shells. --- contrib/shell/packages.el | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contrib/shell/packages.el b/contrib/shell/packages.el index afe3bbeae..862b7c156 100644 --- a/contrib/shell/packages.el +++ b/contrib/shell/packages.el @@ -137,10 +137,6 @@ (delete-window)))))) (add-hook 'term-mode-hook 'ansi-term-handle-close) - (defun term-switch-dir-hook () - (term-send-raw-string (concat "cd " default-directory "\n"))) - (add-hook 'shell-pop-in-hook #'term-switch-dir-hook) - (defun spacemacs/default-pop-shell () "Open the default shell in a popup." (interactive)