Emacs Lispパッケージを書く場合のテンプレート

Emacs Lisp使ったパッケージを書く場合はとりあえず以下のようにしましょう。

;;; ファイル名.el --- パッケージ概要

;; Copyright (C) 2013 by 名前

;; Author: 名前 <メールアドレス>
;; URL: リポジトリの URL等
;; Version: 0.01
;; Package-Requires: ((依存パッケージ1) (依存パッケージ2))

;; ライセンス

;;; Code:

(provide 'パッケージ名)

;;; ファイル名.el ends here

詳細はこちらにあります。
とりあえずこうするのが無難ということにしておいてください。一行目のファイル名と
概要の間にあるハイフンは 3本です。2本ではありません。3本です。


私は yasnippetの snippetとして以下を登録しています。

# name : Package Template
# key  : package
# --
;;; `(file-name-nondirectory (buffer-file-name))` ---

;; Copyright (C) `(format-time-string "%Y" (current-time))` by Syohei YOSHIDA

;; Author: Syohei YOSHIDA <syohex@gmail.com>
;; URL:
;; Version: 0.01

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;;; Code:

$0

(provide '`(file-name-sans-extension (file-name-nondirectory (buffer-file-name)))`)

;;; `(file-name-nondirectory (buffer-file-name))` ends here

あとは好きに書いてください。