aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-11-05 21:52:46 +0100
committerGravatar Tom Willemse2016-11-05 21:52:46 +0100
commitcf4538d9423b85597ee65d91539627cdd0292cea (patch)
treedbbc1fc290d3f3eb1783da0e566299fc48d642b4 /emacs
parent028bbd2a7f13627adcbc8ab2d9861634f58ed1b7 (diff)
downloadnew-dotfiles-cf4538d9423b85597ee65d91539627cdd0292cea.tar.gz
new-dotfiles-cf4538d9423b85597ee65d91539627cdd0292cea.zip
Move scheme config to separate file
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org18
-rw-r--r--emacs/.emacs.d/init/oni-scheme-init.org15
2 files changed, 19 insertions, 14 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index b5a17a1..40a513a 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -715,21 +715,11 @@ To start off, first I need to enable lexical binding.
(with-eval-after-load 'elisp-mode (load "oni-emacs-lisp-mode-init"))
#+END_SRC
-** Scheme mode
+ - [[file:init/oni-scheme-init.org][scheme-mode]] :: Scheme is an awesome lisp variant.
- Enable paredit mode.
-
- #+BEGIN_SRC emacs-lisp
- (add-hook 'scheme-mode-hook 'paredit-mode)
- #+END_SRC
-
- Add scsh to the list of known interpreters for scheme mode. This
- way shell-scripts that don't have a file extension but specify scsh
- as the interpreter are opened in scheme mode.
-
- #+BEGIN_SRC emacs-lisp
- (add-to-list 'interpreter-mode-alist '("scsh" . scheme-mode))
- #+END_SRC
+ #+BEGIN_SRC emacs-lisp
+ (with-eval-after-load 'scheme-mode (load "oni-scheme-init"))
+ #+END_SRC
** Inferior Emacs lisp mode (ielm)
diff --git a/emacs/.emacs.d/init/oni-scheme-init.org b/emacs/.emacs.d/init/oni-scheme-init.org
new file mode 100644
index 0000000..f9e66e2
--- /dev/null
+++ b/emacs/.emacs.d/init/oni-scheme-init.org
@@ -0,0 +1,15 @@
+#+TITLE: Scheme config
+
+Enable paredit mode.
+
+#+BEGIN_SRC emacs-lisp
+ (add-hook 'scheme-mode-hook 'paredit-mode)
+#+END_SRC
+
+Add scsh to the list of known interpreters for scheme mode. This
+way shell-scripts that don't have a file extension but specify scsh
+as the interpreter are opened in scheme mode.
+
+#+BEGIN_SRC emacs-lisp
+ (add-to-list 'interpreter-mode-alist '("scsh" . scheme-mode))
+#+END_SRC