All Projects → magit → Git Modes

magit / Git Modes

Licence: gpl-3.0
Emacs major modes for Git configuration files

Git Config Modes

Emacs major modes for various Git configuration files.

The list of contributors can be found here.

gitattributes-mode

Auto-/loading the library gitattributes-mode enabled the mode for .gitattributes, .git/info/attributes, and git/attributes files.

gitconfig-mode

Auto-/loading the library gitconfig-mode enables the mode for .gitconfig, .git/config, git/config, and .gitmodules files.

gitconfig-mode derives from conf-unix-mode.

gitignore-mode

Auto-/loading the library gitignore-mode enables the mode for .gitignore, .git/info/exclude, and git/ignore files.

gitignore-mode derives from conf-unix-mode.

This mode may be of use in other files that don't have anything to do with Git, for example:

(add-to-list 'auto-mode-alist
             (cons "/.dockerignore\\'" 'gitignore-mode))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].