diff options
Diffstat (limited to 'emacs-config.org')
| -rw-r--r-- | emacs-config.org | 18 |
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 |
