aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-29 16:37:04 +0200
committerGravatar Tom Willemse2016-10-29 16:37:04 +0200
commit825f569e2d16af30df074f4a40fa53d69ca6cd78 (patch)
treebc4c1710c859f4d8016c7cf91147e3638741b24b /emacs
parentc598dc2b761f6190e58795a41f00bb9e9c777e67 (diff)
downloadnew-dotfiles-825f569e2d16af30df074f4a40fa53d69ca6cd78.tar.gz
new-dotfiles-825f569e2d16af30df074f4a40fa53d69ca6cd78.zip
Move Emacs Lisp config, add rainbow delimiters, company
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org11
-rw-r--r--emacs/.emacs.d/init/oni-emacs-lisp-mode.org20
2 files changed, 25 insertions, 6 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 2048928..45eb8a8 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -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"))
#+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
- (add-hook 'emacs-lisp-mode-hook 'paredit-mode)
- #+END_SRC
+ #+BEGIN_SRC emacs-lisp
+ (with-eval-after-load 'elisp-mode (load "oni-emacs-lisp-mode-init"))
+ #+END_SRC
** Scheme mode
diff --git a/emacs/.emacs.d/init/oni-emacs-lisp-mode.org b/emacs/.emacs.d/init/oni-emacs-lisp-mode.org
new file mode 100644
index 0000000..48d9f41
--- /dev/null
+++ b/emacs/.emacs.d/init/oni-emacs-lisp-mode.org
@@ -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