Skip to content

justinekizhak/header3

Repository files navigation

Built with Spacemacs Instagram Twitter Facebook


Development stage License: GPL v3 Zube.io GitHub release Documentation Status


alt text


Introduction

Header3 is a package for Emacs which will help you to automatically add headers to your source code files when you create a new one in Emacs.

Header3 is built upon header2.el and adds more features to it.

Types of headers

Mini Header

if you need the smallest header.

Mini header


File Header

if you need a little bigger headers.

File header


Package Header

if you need the biggest one.

Package header


Readme Header

Template for new file

The following example is auto generated when you create a new Readme.md file (file name is case insensitive)

Readme header

Readme header


Template for existing file

The following example is generated when you run make-readme-header and the file already has some contents

Readme header


All examples are generated using Header3.

Back to top

Features

  • All Features of header2.el plus
    • Standard header format.
    • Auto timestamp for file creation and file updating.
    • Automatic entry of the user name of last update and keeping track of update number.
    • Easy Customisation Interface available. Send bug reports within the interface.
    • Keep Commentary and Change Log inside the file.
  • Automatically add git project link into the header
  • Automatically add License to the files.
  • Automatically add Readme template with random footer badges from For the Badge

Back to top

Getting Started

  • Download tar file from the Releases.

  • Then use package-install-file inside emacs and point it to the tar package.

Back to top

Full Documentation

Requirements

  • Git-link This package is used to extract the git link of the current buffer.

  • Projectile This package is the one which will check your project directory and get its root path. Projectile provides us with project name and project path which is used to check if the project root contains any License file. If it does then it checks the first 5 lines for any mention of "License" and "Version" (case-insensitive).

Instructions to install these packages are available at their links.

How to use?

  • All new files created inside Emacs will automatically trigger a function that will add the header.
  • If you need to add header to an existing file execute using M-x and
    • make-mini-header
    • make-file-header
    • make-package-header
    • make-readme-header

For full documentation read the docs

Visit website.

Read CHANGELOG, CONTRIBUTING guide.

License

Licensed under the terms of GPL v3

Back to top


forthebadge forthebadge forthebadge