Add scsh as a known interpreter for scheme

This allows Emacs to enable “scheme-mode” automatically for files
starting with something like:

  #!/usr/local/bin/scsh -s
This commit is contained in:
Tom Willemse 2016-07-25 22:34:07 +02:00
parent f97c9d117c
commit c7935980dc

View file

@ -203,8 +203,14 @@ This is currently the data directory under the
;;;;; Scheme mode: ;;;;; Scheme mode:
;; Enable paredit-mode.
(add-hook 'scheme-mode-hook 'paredit-mode) (add-hook 'scheme-mode-hook 'paredit-mode)
;; Add scsh to the list of known interpreters for scheme mode.
(add-to-list 'interpreter-mode-alist '("scsh" . scheme-mode))
;;;;; Inferior Emacs Lisp mode: ;;;;; Inferior Emacs Lisp mode:
(add-hook 'inferior-emacs-lisp-mode-hook 'paredit-mode) (add-hook 'inferior-emacs-lisp-mode-hook 'paredit-mode)