summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/my-eshell.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/custom/my-eshell.el b/emacs/custom/my-eshell.el
index a5cc33b..f382241 100644
--- a/emacs/custom/my-eshell.el
+++ b/emacs/custom/my-eshell.el
@@ -55,7 +55,7 @@
   "Capture last command prompt and its output."
   (let ((beg (save-excursion
                (goto-char (eshell-beginning-of-input))
-               (goto-char (point-at-bol)))))
+               (goto-char (pos-bol)))))
   (when (derived-mode-p 'eshell-mode)
     (buffer-substring-no-properties beg (eshell-end-of-output)))))
 
@@ -71,7 +71,7 @@ append to it, while separating multiple outputs with
       (goto-char (point-max))
       (unless (eq (point-min) (point-max))
         (insert (format "\n%s\n\n" my/eshell-output-delimiter)))
-      (goto-char (point-at-bol))
+      (goto-char (pos-bol))
       (insert eshell-output)
       (switch-to-buffer-other-window (current-buffer)))))