diff options
| author | Jakob L. Kreuze | 2019-02-24 18:53:34 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-02-24 18:53:34 -0500 |
| commit | e8c7e7ab37648b0bb07a59f9d73ae6ab9b2bf47b (patch) | |
| tree | 845d275cbe5416eee87eb1a64f42992a0df870c4 /jakob.org | |
| parent | 592af2be1c7d21e490086fc414ac02c224a45704 (diff) | |
Add configuration for compile.el
Diffstat (limited to 'jakob.org')
| -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 |