Move Emacs Lisp config, add rainbow delimiters, company
This commit is contained in:
parent
c598dc2b76
commit
825f569e2d
2 changed files with 25 additions and 6 deletions
|
@ -708,13 +708,12 @@ To start off, first I need to enable lexical binding.
|
||||||
(with-eval-after-load 'css-mode (load "oni-css-mode-init"))
|
(with-eval-after-load 'css-mode (load "oni-css-mode-init"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Emacs lisp mode
|
- [[file:init/oni-emacs-lisp-mode.org][emacs-lisp-mode]] :: Emacs lisp is what powers all this Emacs
|
||||||
|
awesomeness.
|
||||||
|
|
||||||
Enable paredit mode.
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(with-eval-after-load 'elisp-mode (load "oni-emacs-lisp-mode-init"))
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+END_SRC
|
||||||
(add-hook 'emacs-lisp-mode-hook 'paredit-mode)
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Scheme mode
|
** Scheme mode
|
||||||
|
|
||||||
|
|
20
emacs/.emacs.d/init/oni-emacs-lisp-mode.org
Normal file
20
emacs/.emacs.d/init/oni-emacs-lisp-mode.org
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#+TITLE: Emacs lisp mode configuration
|
||||||
|
|
||||||
|
Enable paredit mode to help always keep parentheses balanced.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'emacs-lisp-mode-hook 'paredit-mode)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Enable rainbow delimiters mode to help visualize the different
|
||||||
|
parenthesized levels.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Enable company mode to help complete long symbols and such.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'emacs-lisp-mode-hook 'company-mode)
|
||||||
|
#+END_SRC
|
Loading…
Reference in a new issue