summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-11-25 22:24:26 -0500
committerKyle Meyer <kyle@kyleam.com>2015-11-25 22:24:26 -0500
commitf17542d13de2ebe35ed51ecf93709daa3b5adfd4 (patch)
tree8ae48f4e4ee5a97e86af7d8acb873c64cda1cd50
parent412754b52b4911db39898cd5ca1ea43f9614c535 (diff)
downloademacs.d-f17542d13de2ebe35ed51ecf93709daa3b5adfd4.tar.gz
zsh-ansi-term: Position point when switching
Switching away from the buffer seems to move point the beginning of the buffer. Haven't looked into what's causing it.
-rw-r--r--lisp/init-external.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/init-external.el b/lisp/init-external.el
index 1e4f98e..9063402 100644
--- a/lisp/init-external.el
+++ b/lisp/init-external.el
@@ -62,7 +62,8 @@ DIRECTORY."
(t
(cl-letf (((symbol-function 'switch-to-buffer)
(lambda (b &rest _) (get-buffer b))))
- (ansi-term "zsh" name)))))))
+ (ansi-term "zsh" name)))))
+ (comint-goto-process-mark)))
(defun km/zsh-toggle-ansi-term-home (&optional other-window)
(interactive "P")