Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5c933d4085
Fetching contributors…

Cannot retrieve contributors at this time

90 lines (55 sloc) 3.106 kB

Git modes

GNU Emacs modes for Git-related files.

Features

git-commit-mode
A GNU Emacs major mode for editing Git commit messages according to the guidelines by Tim Pope. Integrates into Magit.
gitconfig-mode
A conf-mode-derived major mode for editing .gitconfig files.
gitignore-mode
A conf-mode-derived major mode for editing .gitignore files.

Installation

Install the ELPA packages from MELPA (bleeding edge snapshots) or Marmalade (stable releases):

git-commit-mode
M-x package-install git-commit-mode
gitconfig-mode
M-x package-install gitconfig-mode
gitignore-mode
M-x package-install gitignore-mode

Or download the latest release and install the desired modes with M-x package-install-file, e.g. M-x package-install-file git-commit-mode.

The modes are written and tested against GNU Emacs 24 and may or may not work in earlier versions of GNU Emacs.

Usage

git-commit-mode

Just configure emacs or emacsclient as editor for Git. git-commit-mode will automatically be enabled for Git message buffers.

git-commit-mode integrates into with Magit by redefining magit-log-edit-mode to support all git-commit-mode features.

gitconfig-mode

gitconfig-mode is automatically enabled for .gitconfig and .git/config files. The mode is derived from conf-unix-mode, so all commands provided by conf-mode (e.g. conf-align-assignments) will work as expected.

gitignore-mode

gitignore-mode is automatically enabled for .gitignore and .git/info/exclude files.

Customization

git-commit-mode
M-x customize-group git-commit
gitconfig-mode
No customization provided.
gitignore-mode
No customization provided.

Further help

  • C-h f git-commit-mode
  • C-h f gitconfig-mode
  • C-h f gitignore-mode

Credits

git-commit-mode is forked of the original work by Florian Ragwitz, improved by John Wiegley. Thanks for their work.

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 2 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

See COPYING for details.

Jump to Line
Something went wrong with that request. Please try again.