aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-13 02:07:15 +0200
committerGravatar Tom Willemse2016-10-13 02:07:15 +0200
commit0e226123026471b8a4c925023fef94cd646a918d (patch)
tree3172f8e1523b43c111016b559f5a50aaa4893e79
parentc86529b5613dbdafe458e97e4061e578813cf3d8 (diff)
downloadnew-dotfiles-0e226123026471b8a4c925023fef94cd646a918d.tar.gz
new-dotfiles-0e226123026471b8a4c925023fef94cd646a918d.zip
Move magit config to separate file
-rw-r--r--emacs/.emacs.d/init.org19
-rw-r--r--emacs/.emacs.d/init/magit-init.org16
2 files changed, 21 insertions, 14 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index b069b50..5e19ee8 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -921,21 +921,12 @@ To start off, first I need to enable lexical binding.
(with-eval-after-load 'dired (load "dired-init"))
#+END_SRC
-** Magit
+ - [[file:init/magit-init.org][Magit]] :: The Emacs git interface. By now I think I may know magit
+ better than the git cli.
- 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
- (eval-when-compile (require 'magit))
-
- (with-eval-after-load 'magit
- (setq magit-diff-refine-hunk 'all))
- #+END_SRC
+ #+BEGIN_SRC emacs-lisp
+ (with-eval-after-load 'magit (load "magit-init"))
+ #+END_SRC
** Gnus
diff --git a/emacs/.emacs.d/init/magit-init.org b/emacs/.emacs.d/init/magit-init.org
new file mode 100644
index 0000000..a759c5d
--- /dev/null
+++ b/emacs/.emacs.d/init/magit-init.org
@@ -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