aboutsummaryrefslogtreecommitdiff
path: root/emacs/settings/init-magit.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2017-01-13 17:30:28 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2017-01-13 17:30:28 +0100
commit8b4b59dbf19f2affc3eaaf69d3cc38efeede3981 (patch)
treef6c0c3f215f18aebab7294c8c2bf0002aeec2f5f /emacs/settings/init-magit.el
parent2aa031d0a09882408e29de0f7ed67f1843d0b9f6 (diff)
downloaddotfiles-8b4b59dbf19f2affc3eaaf69d3cc38efeede3981.tar.gz
dotfiles-8b4b59dbf19f2affc3eaaf69d3cc38efeede3981.zip
emacs: literate programming
Everything has been moved into an org file. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/settings/init-magit.el')
-rw-r--r--emacs/settings/init-magit.el56
1 files changed, 0 insertions, 56 deletions
diff --git a/emacs/settings/init-magit.el b/emacs/settings/init-magit.el
deleted file mode 100644
index f07ba52..0000000
--- a/emacs/settings/init-magit.el
+++ /dev/null
@@ -1,56 +0,0 @@
-;;; init-magit.el --- Magit configuration
-
-;; Copyright (C) 2016-2017 Miquel Sabaté Solà <mikisabate@gmail.com>
-;;
-;; 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 3 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.
-
-;;; Commentary:
-;;
-;; Magit configuration
-
-;;; Code:
-
-(require 'use-package)
-
-(use-package magit
- :ensure t
- :config
-
- ; Proper initial states.
- (with-eval-after-load 'evil
- (add-hook 'git-commit-mode-hook 'evil-insert-state)
- (evil-set-initial-state 'magit-log-edit-mode 'insert))
-
- ; When showing the status, hide the usually-redundant "branch" section and
- ; show the rest.
- (add-hook 'magit-section-set-visibility-hook
- '(lambda (section)
- (if (string= (magit-section-type section) "branch")
- 'hide
- 'show)))
-
- (with-eval-after-load 'evil-leader
- (evil-leader/set-key "s" 'magit-status)
-
- (use-package evil-magit
- :ensure t
- :config
-
- ; The magit + evil-magit combo messes up some chords, let's fix this.
- (evil-define-key 'normal magit-mode-map
- "\C-h" 'evil-window-left
- "\C-l" 'evil-window-right
- "\C-j" 'evil-window-down
- "\C-k" 'evil-window-up
- "\M-p" 'helm-projectile-switch-project))))
-
-(provide 'init-magit)
-;;; init-magit.el ends here