summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-04-04 13:12:42 -0700
committerFranck Cuny <franck@fcuny.net>2021-04-04 13:12:42 -0700
commit8b8f41d26c2fc655744fa7118a2cf8f159af2687 (patch)
tree132efbce25b423d24730af327785be2ad69dd07a /emacs
parentemacs: configure dap-mode and compile-mode (diff)
downloademacs.d-8b8f41d26c2fc655744fa7118a2cf8f159af2687.tar.gz
emacs: configure compile mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/custom/fcuny-prog.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-prog.el b/emacs/custom/fcuny-prog.el
index 1ca50ca..990f3aa 100644
--- a/emacs/custom/fcuny-prog.el
+++ b/emacs/custom/fcuny-prog.el
@@ -129,4 +129,15 @@
       (set (make-local-variable 'compile-command)
            "go build -v")))
 
+(use-package compile
+  :ensure nil
+  :custom
+  (compilation-scroll-output t)
+   ;; Skip over warnings and info messages in compilation
+  (compilation-skip-threshold 2)
+  ;; Don't freeze when process reads from stdin
+  (compilation-disable-input t)
+  ;; Show three lines of context around the current message
+  (compilation-context-lines 3))
+
 (provide 'fcuny-prog)