auto-insert-alist by default matches files created in
.../bin/ directories and enables
There are examples on the wiki showing how to use a skeleton to insert some text, but I want to both insert some text and enable
sh-mode. Some other examples show using a
vector to run multiple actions, but not with a skeleton.
I'm unsure of the syntax. This doesn't work:
(auto-insert-mode +1) (setq-default auto-insert-query nil) (define-auto-insert '("/bin/.*[^/]\\'" . "Shell-Script") ['("Default shell script: " "#!/bin/bash" \n \n > _) sh-mode])
Can you show the correct way to use vectors and skeletons?