From c7935980dc2e4bdaab6d12f62bd2702443799638 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 25 Jul 2016 22:34:07 +0200 Subject: [PATCH] Add scsh as a known interpreter for scheme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows Emacs to enable “scheme-mode” automatically for files starting with something like: #!/usr/local/bin/scsh -s --- emacs/.emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 5c50eb6..a06bad9 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -203,8 +203,14 @@ This is currently the data directory under the ;;;;; Scheme mode: +;; Enable 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: (add-hook 'inferior-emacs-lisp-mode-hook 'paredit-mode)