Skip to content

Commit

Permalink
[git] On configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
manandbytes committed Aug 26, 2016
1 parent 0961f91 commit 883f2cb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .emacs.d/emacs.org
Expand Up @@ -456,7 +456,18 @@ Step through historic versions of git controlled file:
#+BEGIN_SRC emacs-lisp
(el-get-bundle git-timemachine)
#+END_SRC

*** Git configuration files
[[github:magit/git-modes]], provides few extra modes Emacs major modes for various Git configuration files:
- gitattributes-mode, will be available for =.gitattributes=, =.git/info/attributes=, and =git/attributes= files;
- gitconfig-mode, enables the mode for =.gitconfig=, =.git/config=, =git/config=, and =.gitmodules= files;
- gitignore-mode, enables the mode for =.gitignore=, =.git/info/exclude=, and =git/ignore= files.
#+BEGIN_SRC emacs-lisp
(el-get-bundle git-modes)
#+END_SRC
**** TODO Use =conf-mode= as a fall-back
#+BEGIN_SRC emacs-lisp :tangle no
(add-to-list 'auto-mode-alist '("/\\.gitconfig$" . conf-mode))
#+END_SRC
** Magit
#+BEGIN_SRC emacs-lisp
(el-get-bundle magit :type apt-get :pkgname "elpa-magit")
Expand Down

0 comments on commit 883f2cb

Please sign in to comment.