;; 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
