jao-skel-caml.el 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ;;; jao-skel-caml.el: skels for caml -*- lexical-binding: t; -*-
  2. ;; Copyright (C) 2004, 2005, 2009, 2022 Jose Antonio Ortega Ruiz
  3. ;; Author: Jose A Ortega Ruiz <jao@gnu.org>
  4. ;; Keywords: tools
  5. ;; This file is free software; you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation; either version 3, or (at your option)
  8. ;; any later version.
  9. ;; This file is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with GNU Emacs; see the file COPYING. If not, write to
  15. ;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16. ;; Boston, MA 02111-1307, USA.
  17. ;;; Commentary:
  18. ;; Caml skeletons
  19. ;;; Code:
  20. (require 'jao-skel)
  21. (define-skeleton jao-skel-caml-file
  22. "OCaml file header"
  23. "Brief description: "
  24. "(* " (file-name-nondirectory (buffer-file-name)) ": " str " *)"
  25. > \n \n
  26. (jao-skel-copyright-line "(* " " *)")
  27. > ?\n
  28. (jao-skel-insert-license)
  29. "(* $" "Id$ *)" \n \n _)
  30. (jao-skel-install "\\.ml[i]?" 'jao-skel-caml-file)
  31. (provide 'jao-skel-caml)
  32. ;;; jao-skel-caml ends here