aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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