diff options
author | Timo Wilken | 2022-12-11 12:55:37 +0100 |
---|---|---|
committer | Timo Wilken | 2022-12-11 12:55:37 +0100 |
commit | 31357da6b9ed2a44ce9bab79b1497ada0e799339 (patch) | |
tree | 6be92e0f9a7b2e6019bc1b598a80c91e81747f1a /emacs-init.el | |
parent | f9728c117d5c6bebb8bbf917fad07b0fb8343416 (diff) |
Add scheme shebangs to magic-mode-alist
Diffstat (limited to 'emacs-init.el')
-rw-r--r-- | emacs-init.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs-init.el b/emacs-init.el index fea3d4e1..fe4dab87 100644 --- a/emacs-init.el +++ b/emacs-init.el @@ -54,6 +54,12 @@ (,(rx ".gnuplot" eos) . gnuplot-mode) (,(rx ".aurora" eos) . python-mode))) +(add-to-list 'magic-mode-alist + `(,(rx "#!" (* (not space)) + (? "env" (+ space) (? "-S" (+ space))) + (or "guile" "racket")) + . scheme-mode)) + (add-hook 'mail-mode-hook #'auto-fill-mode) ;; `use-package' requirements. |