From 3689f0c90b057b170adbdad56f14d77b4556afea Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 24 Aug 2020 15:09:32 +0200 Subject: [PATCH] Dont jump cursor to the inserted position --- .config/emacs/config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 5cd5583..459fea6 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -1062,7 +1062,7 @@ Functions that only use built-in Emacs functionality. ;; Insert spaces (let ((diff (- until-column current-column))) (if (> diff 0) - (insert (make-string diff ?\ )) + (save-excursion (insert (make-string diff ?\ ))) (user-error "Column should be higher than point"))))) (defun dot/reload-theme ()