Changeset 26225 in project


Ignore:
Timestamp:
03/20/12 19:55:59 (9 years ago)
Author:
Mario Domenech Goulart
Message:

emacs (wiki): added "Auto-inserting portable shebang boilerplate on creating a scheme file" section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/emacs

    r24220 r26225  
    113113</enscript>
    114114
    115 Indenting module body code at column 0:
     115
     116==== Indenting module body code at column 0:
    116117
    117118<enscript higlight=elisp>
     
    119120(put 'module 'scheme-indent-function 'scheme-module-indent)
    120121</enscript>
     122
     123
     124==== Auto-inserting portable shebang boilerplate on creating a scheme file
     125
     126See also the [[/writing%20portable%20scripts|writing portable scripts]] page.
     127
     128<enscript higlight=elisp>
     129(require 'autoinsert)
     130(add-hook 'find-file-hooks 'auto-insert)
     131
     132(setq auto-insert-alist
     133      '(("\\.scm" .
     134         (insert "#!/bin/sh\n#| -*- scheme -*-\nexec csi -s $0 \"$@\"\n|#\n"))))
     135</enscript>
Note: See TracChangeset for help on using the changeset viewer.