Commit 6f6ff531 authored by Duncan Bayne's avatar Duncan Bayne

Actually cd inside each terminal when changing dir

parent 53aac18c
......@@ -26,7 +26,12 @@
(mapcar
'(lambda (buf)
(if (eq (with-current-buffer buf major-mode) 'term-mode)
(with-current-buffer buf (cd new-directory))))
(with-current-buffer buf (progn
;; change the buffer working directory
(cd new-directory)
;; send a 'cd' command to the terminal
(term-send-raw-string (concat "cd " new-directory "\n"))))))
(buffer-list)))
(defun duncans_emacs:create-terminals (terminal-names)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment