Add compilation mode config
This commit is contained in:
parent
cbc3c08574
commit
1a84025699
2 changed files with 27 additions and 0 deletions
|
@ -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.
|
||||||
|
|
21
emacs/.emacs.d/init/oni-compilation-init.org
Normal file
21
emacs/.emacs.d/init/oni-compilation-init.org
Normal 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
|
Loading…
Reference in a new issue