summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org29
1 files changed, 29 insertions, 0 deletions
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
+ ("<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

© 2015 - 2026 Jakob L. Kreuze