Move magit config to separate file

This commit is contained in:
Tom Willemse 2016-10-13 02:07:15 +02:00
parent c86529b561
commit 0e22612302
2 changed files with 21 additions and 14 deletions

View file

@ -921,20 +921,11 @@ To start off, first I need to enable lexical binding.
(with-eval-after-load 'dired (load "dired-init"))
#+END_SRC
** Magit
Magit is a very nice interface to Git for Emacs. It allows you to
do just about anything with Git without leaving the comfort of your
Emacs session.
Show refined diffs in magit. This makes it much easier to see
/what/ has changed on a line.
- [[file:init/magit-init.org][Magit]] :: The Emacs git interface. By now I think I may know magit
better than the git cli.
#+BEGIN_SRC emacs-lisp
(eval-when-compile (require 'magit))
(with-eval-after-load 'magit
(setq magit-diff-refine-hunk 'all))
(with-eval-after-load 'magit (load "magit-init"))
#+END_SRC
** Gnus

View file

@ -0,0 +1,16 @@
#+TITLE: Magit
#+BEGIN_SRC emacs-lisp
(require 'magit)
#+END_SRC
Magit is a very nice interface to Git for Emacs. It allows you to do
just about anything with Git without leaving the comfort of your Emacs
session.
Show refined diffs in magit. This makes it much easier to see /what/
has changed on a line.
#+BEGIN_SRC emacs-lisp
(setq magit-diff-refine-hunk 'all)
#+END_SRC