nlamirault / lice-el

License And Header Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lice.el - License And Header Template

Overview

lice.el provides following features:

  • License template management.
  • File header insertion.

Usage

Usage is very easy, put lice.el in your emacs system, and open a new file, and run:

M-x lice

Then, lice.el tell to use which license (default is gpl-3.0). You can select license on minibuffer completion.

When you select license, and enter the RET, license and copyright is putted into a text.

Use dir-locals

You can use .dir-locals.el for your project. Put .dir-locals.el in your project root directory and write follows:

((nil
  (lice:default-license . "mit")))

That means use `mit' for default license template.

Customer license headers

You could add custom license headers to lice.el. Creates a directory like that :

$HOME/.emacs.d/lice

and put yours license headers into this directory.

About

License And Header Template


Languages

Language:Emacs Lisp 100.0%