Skip to content

Instantly share code, notes, and snippets.

@pkulev
Created May 30, 2019 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkulev/d70758965ec43b3891ef4cecdd13fe3f to your computer and use it in GitHub Desktop.
Save pkulev/d70758965ec43b3891ef4cecdd13fe3f to your computer and use it in GitHub Desktop.
Yasnippet for creating elisp package. Place it to ~/.emacs.d/snippets/emacs-lisp-mode/pkg. `user-full-name` and `user-mail-address` should be defined.
# -*- mode: snippet -*-
# name: Generate elisp package
# key: pkg
# --
;;; ${1:package-name}.el --- ${2:Description}.
;; Copyright (C) `(sixth (decode-time (current-time)))` `(user-full-name)`
;; Author: `(user-full-name)` <`user-mail-address`>
;; Maintainer: `(user-full-name)` <`user-mail-address`>
;; Version: 0.1.0
;; Keywords: $3
;; URL: https://www.github.com/${4:user}/${5:reponame}.git
;; Package-Requires: ($6)
;; This file is NOT part of GNU/Emacs.
;;; License:
;; 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, 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 GNU Emacs; see the file COPYING. If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Commentary:
;; $2
;;; Code:
${7:code here}
(provide '$1)
;;; $1.el ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment