Move scheme config to separate file

This commit is contained in:
Tom Willemse 2016-11-05 21:52:46 +01:00
parent 028bbd2a7f
commit cf4538d942
2 changed files with 19 additions and 14 deletions

View file

@ -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")) (with-eval-after-load 'elisp-mode (load "oni-emacs-lisp-mode-init"))
#+END_SRC #+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
(with-eval-after-load 'scheme-mode (load "oni-scheme-init"))
#+BEGIN_SRC emacs-lisp #+END_SRC
(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
** Inferior Emacs lisp mode (ielm) ** Inferior Emacs lisp mode (ielm)

View file

@ -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