Mercurial > emacs
comparison lisp/autoinsert.el @ 807:4f28bd14272c
*** empty log message ***
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Thu, 16 Jul 1992 21:47:34 +0000 |
parents | 8a533acedb77 |
children | 213978acbc1e |
comparison
equal
deleted
inserted
replaced
806:d42e1151eed8 | 807:4f28bd14272c |
---|---|
1 ;;; autoinsert.el --- automatic mode-dependent insertion of text into new files | 1 ;;; autoinsert.el --- automatic mode-dependent insertion of text into new files |
2 | |
3 ;; Author: Charlie Martin <crm@cs.duke.edu> | |
4 ;; Created: 01 Jul 1988 | |
5 ;; Last-Modified: 30 Jun 1992 | |
2 | 6 |
3 ;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc. | 7 ;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc. |
4 | 8 |
5 ;; This file is part of GNU Emacs. | 9 ;; This file is part of GNU Emacs. |
6 | 10 |
7 ;; GNU Emacs is free software; you can redistribute it and/or modify | 11 ;; GNU Emacs is free software; you can redistribute it and/or modify |
8 ;; it under the terms of the GNU General Public License as published by | 12 ;; it under the terms of the GNU General Public License as published by |
9 ;; the Free Software Foundation; either version 1, or (at your option) | 13 ;; the Free Software Foundation; either version 2, or (at your option) |
10 ;; any later version. | 14 ;; any later version. |
11 | 15 |
12 ;; GNU Emacs is distributed in the hope that it will be useful, | 16 ;; GNU Emacs is distributed in the hope that it will be useful, |
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | 20 |
17 ;; You should have received a copy of the GNU General Public License | 21 ;; You should have received a copy of the GNU General Public License |
18 ;; along with GNU Emacs; see the file COPYING. If not, write to | 22 ;; along with GNU Emacs; see the file COPYING. If not, write to |
19 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 23 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
20 | 24 |
21 ;;; autoinsert.el | 25 ;;; Commentary: |
22 | 26 |
23 ;;; Abstract: | 27 ;;; Abstract: |
24 ;;; | 28 ;;; |
25 ;;; The following defines an association list for files to be | 29 ;;; The following defines an association list for files to be |
26 ;;; automatically inserted when a new file is created, and a function | 30 ;;; automatically inserted when a new file is created, and a function |
46 ;;; Duke University Medical Center | 50 ;;; Duke University Medical Center |
47 ;;; Durham, NC 27710 | 51 ;;; Durham, NC 27710 |
48 ;;; (crm@cs.duke.edu,mcnc!duke!crm) | 52 ;;; (crm@cs.duke.edu,mcnc!duke!crm) |
49 ;;; | 53 ;;; |
50 ;;; Date: Fri Jul 1 16:15:31 EDT 1988 | 54 ;;; Date: Fri Jul 1 16:15:31 EDT 1988 |
55 | |
56 ;;; Code: | |
51 | 57 |
52 (defvar auto-insert-alist '(("\\.tex$" . "tex-insert.tex") | 58 (defvar auto-insert-alist '(("\\.tex$" . "tex-insert.tex") |
53 ("\\.c$" . "c-insert.c") | 59 ("\\.c$" . "c-insert.c") |
54 ("\\.h$" . "h-insert.c") | 60 ("\\.h$" . "h-insert.c") |
55 ("[Mm]akefile" . "makefile.inc") | 61 ("[Mm]akefile" . "makefile.inc") |