summaryrefslogtreecommitdiffhomepage
path: root/lib/skels/jao-skel-geiser.el
blob: aa8823838cef742f8aa5c0876b8010f9df854170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;; jao-geiser-geiser.el -- geiser skeletons  -*- lexical-binding: t; -*-

;; Copyright (C) 2009, 2022 Jose Antonio Ortega Ruiz

;; Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
;; Start date: Fri Sep 11, 2009 00:31

(require 'jao-skel)

(defconst jao-skel-geiser--bsd
  ";; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
;; have received a copy of the license along with this program. If
;; not, see <http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5>.
")

(defsubst jao-skel-geiser--end-line ()
  (format ";;; %s ends here\n\n" (file-name-nondirectory (buffer-file-name))))

(define-skeleton jao-skel-geiser--common
  "Geiser elisp header"
  "Brief description: "
  ";;; " (file-name-nondirectory (buffer-file-name)) " -- " str ""
  \n \n
  (jao-skel-copyright-line ";; ") \n
  jao-skel-geiser--bsd
  \n (jao-skel-date-line ";; ") \n)

(define-skeleton jao-skel-geiser-elisp
  "Geiser elisp header"
  nil
  '(jao-skel-geiser--common)
  "" \n _ \n \n "" \n "(provide '" (jao-skel-basename) ")" \n
  (jao-skel-geiser--end-line))

(jao-skel-install "geiser/elisp/.+\\.el\\'" 'jao-skel-geiser-elisp)

(define-skeleton jao-skel-geiser-scheme
  "Geiser scheme header"
  nil
  '(jao-skel-geiser--common) _
  \n (jao-skel-geiser--end-line))

(jao-skel-install "geiser/scheme/.+\\.\\(scm\\|ss\\|sls\\)\\'"
                  'jao-skel-geiser-scheme)



(provide 'jao-skel-geiser)
;;; jao-skel-geiser.el ends here