Skip to content

Commit 65b92b4

Browse files
reteovLampros Liontos
and
Lampros Liontos
authored
Added "package-header" template for Emacs Lisp. (#48)
Co-authored-by: Lampros Liontos <[email protected]>
1 parent 4a1d717 commit 65b92b4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

templates/emacs-lisp.eld

+36
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,39 @@ emacs-lisp-mode
3131
";;; " (file-name-nondirectory (or (buffer-file-name) (buffer-name))) " ends here" n)
3232
(log "(message \"LOG %s " (s sexp) ": %S"
3333
"\" (format-time-string \"%X\") " sexp ")")
34+
(package-header ";;; " (p (file-name-base (or (buffer-file-name) (buffer-name))) file) ".el --- " (p "summary" summary) " -*- lexical-binding: t -*-" n n
35+
36+
";; Author: " (p (user-full-name)) n
37+
";; Version: " (p "version") n
38+
";; Package-Requires: " (p "dependencies") n
39+
";; Homepage: " (p "homepage") n
40+
";; Keywords: " (p "keywords") n n
41+
42+
";; This file is not part of GNU Emacs" n n
43+
44+
(p (concat
45+
";; This program is free software: you can redistribute it and/or modify\n"
46+
";; it under the terms of the GNU General Public License as published by\n"
47+
";; the Free Software Foundation, either version 3 of the License, or\n"
48+
";; (at your option) any later version.\n\n"
49+
50+
";; This program is distributed in the hope that it will be useful,\n"
51+
";; but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
52+
";; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
53+
";; GNU General Public License for more details.\n\n"
54+
55+
";; You should have received a copy of the GNU General Public License\n"
56+
";; along with this program. If not, see <https://www.gnu.org/licenses/>."))
57+
58+
n n
59+
60+
";;; Commentary:" n n
61+
62+
";; " (p "commentary") n n
63+
64+
";;; Code:" n n
65+
66+
(p "(message \"Hello, World\")") n n
67+
68+
"(provide '" (s file) ")" n
69+
";;; " (s file) ".el ends here")

0 commit comments

Comments
 (0)