Move scheme config to separate file
This commit is contained in:
parent
028bbd2a7f
commit
cf4538d942
2 changed files with 19 additions and 14 deletions
|
@ -715,20 +715,10 @@ 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
|
||||
|
||||
Enable paredit mode.
|
||||
- [[file:init/oni-scheme-init.org][scheme-mode]] :: Scheme is an awesome lisp variant.
|
||||
|
||||
#+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))
|
||||
(with-eval-after-load 'scheme-mode (load "oni-scheme-init"))
|
||||
#+END_SRC
|
||||
|
||||
** Inferior Emacs lisp mode (ielm)
|
||||
|
|
15
emacs/.emacs.d/init/oni-scheme-init.org
Normal file
15
emacs/.emacs.d/init/oni-scheme-init.org
Normal 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
|
Loading…
Reference in a new issue