From 1a84025699fdd5f5931b574f5210eab431516abc Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 15 Nov 2016 17:28:35 +0100 Subject: [PATCH] Add compilation mode config --- emacs/.emacs.d/init.org | 6 ++++++ emacs/.emacs.d/init/oni-compilation-init.org | 21 ++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 emacs/.emacs.d/init/oni-compilation-init.org diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index c375d7d..6a3ba45 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -721,6 +721,12 @@ To start off, first I need to enable lexical binding. (with-eval-after-load 'scheme (load "oni-scheme-init")) #+END_SRC + - [[file:init/oni-compilation-init.org][compilation-mode]] + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'compilation (load "oni-compilation-init")) + #+END_SRC + ** Inferior Emacs lisp mode (ielm) Enable paredit mode. diff --git a/emacs/.emacs.d/init/oni-compilation-init.org b/emacs/.emacs.d/init/oni-compilation-init.org new file mode 100644 index 0000000..2813654 --- /dev/null +++ b/emacs/.emacs.d/init/oni-compilation-init.org @@ -0,0 +1,21 @@ +#+TITLE: Compilation mode configuration + +Scroll output in compilation mode. + +#+BEGIN_SRC emacs-lisp + (setq compilation-scroll-output t) +#+END_SRC + +Show compilation buffers in a side window. + +#+BEGIN_SRC emacs-lisp + (add-to-list 'display-buffer-alist + `(,(rx bos "*compilation*" eos) + display-buffer-in-side-window)) +#+END_SRC + +Bury compilation buffers on successful compilation. + +#+BEGIN_SRC emacs-lisp + (bury-successful-compilation) +#+END_SRC