summaryrefslogtreecommitdiff
path: root/emacs-config.org
diff options
context:
space:
mode:
authorBlake Romero <blake@developercraft.com>2025-10-12 18:17:29 +0100
committerBlake Romero <blake@developercraft.com>2025-10-12 18:17:29 +0100
commitb33055c8a7055a51f3e8ee2601c150be8309204a (patch)
tree98d65994f061ee43dc24d00463e807de4cef4239 /emacs-config.org
parent266d16fb72278612912433a45df8a83a1d22242e (diff)
Remove hook to auto-hide compilation buffer
Diffstat (limited to 'emacs-config.org')
-rw-r--r--emacs-config.org18
1 files changed, 0 insertions, 18 deletions
diff --git a/emacs-config.org b/emacs-config.org
index 92092ed..7a64f55 100644
--- a/emacs-config.org
+++ b/emacs-config.org
@@ -1324,24 +1324,6 @@ Set make command and scroll output.
compilation-scroll-output t))
#+end_src
-Auto-close compilation buffer when there are no errors or warnings.
-#+begin_src elisp
- (with-eval-after-load 'compile
- (add-hook 'compilation-finish-functions
- (lambda (buffer string)
- "Bury a compilation buffer if succeeded without warnings "
- (require 'winner)
- (when (and
- (buffer-live-p buffer)
- (string-match "compilation" (buffer-name buffer))
- (string-match "finished" string)
- (eq 0 compilation-num-warnings-found)
- (eq 0 compilation-num-errors-found))
- (run-with-timer 1 nil (lambda ()
- (winner-undo)
- (message "Compilation successful")))))))
-#+end_src
-
** Shell
Make shell prompt and output read-only.
#+begin_src elisp