From e8c7e7ab37648b0bb07a59f9d73ae6ab9b2bf47b Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 24 Feb 2019 18:53:34 -0500 Subject: Add configuration for compile.el --- jakob.org | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/jakob.org b/jakob.org index 3179eee..3ecd58c 100644 --- a/jakob.org +++ b/jakob.org @@ -1680,6 +1680,35 @@ Use standard movement keys instead of those used for minibuffer next/previous. ("C-p" . #'company-select-previous))) #+END_SRC +** compile + +#+BEGIN_SRC elisp +(use-package compile + :straight nil + + :bind + ("" . compile) +#+END_SRC + +The compilation command can be set by invoking =compile= with a prefix argument, +so I don't see a need in popping a prompt every time. [[https://www.emacswiki.org/emacs/CompileCommand][(1)]]. + +#+BEGIN_SRC elisp + :init + (setq compilation-read-command nil) +#+END_SRC + +Hide the compilation buffer upon successful compilation, because I typically +don't care about the output unless there were errors. + +#+BEGIN_SRC elisp + :config + (add-hook 'compilation-finish-functions + (lambda (buf strg) + (let ((win (get-buffer-window buf 'visible))) + (when win (delete-window win)))))) +#+END_SRC + ** Flycheck #+BEGIN_SRC elisp -- cgit v1.3