From 012e96051096f337035ff8cdbd194ac6b81c968f Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Sun, 22 Sep 2024 11:44:09 +0200 Subject: [PATCH] COMPILATION: goto end of buffer on completion --- config_new.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config_new.org b/config_new.org index b329034..2f066d7 100644 --- a/config_new.org +++ b/config_new.org @@ -572,6 +572,21 @@ Magit depends on this and it seems it's not installed as a dependency, so instal (add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode)) #+END_SRC +** Compilation + +*** Goto end of buffer on completion + +Compilation output is almost always bigger than a normal buffer. +Move to the end if the compilation finishes. + +#+BEGIN_SRC emacs-lisp +(defun goto-end-compilation-buffer (comp-buffer msg) + (goto-char (point-max)) + ) + +(add-hook 'compilation-finish-functions #'goto-end-compilation-buffer) +#+END_SRC + * Multiple cursors #+BEGIN_SRC emacs-lisp