diff options
| -rw-r--r-- | jakob.org | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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 + ("<f12>" . 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 |