Add compilation mode config

This commit is contained in:
Tom Willemse 2016-11-15 17:28:35 +01:00
parent cbc3c08574
commit 1a84025699
2 changed files with 27 additions and 0 deletions

View file

@ -721,6 +721,12 @@ To start off, first I need to enable lexical binding.
(with-eval-after-load 'scheme (load "oni-scheme-init")) (with-eval-after-load 'scheme (load "oni-scheme-init"))
#+END_SRC #+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) ** Inferior Emacs lisp mode (ielm)
Enable paredit mode. Enable paredit mode.

View file

@ -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