tools/magit: minor refactor/reformatting
This commit is contained in:
parent
1dd4076f8d
commit
d20ffca78d
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
|||
;;; tools/magit/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +magit-hub-enable-by-default nil
|
||||
"Whether or not to enable magithub features for all projects by default.")
|
||||
"Whether or not to enable magithub features for all projects by default. Must
|
||||
be set before `magithub' (and `magit') is loaded.")
|
||||
|
||||
(defvar +magit-hub-features
|
||||
'(pull-request-merge commit-browse completion)
|
||||
|
@ -25,17 +26,15 @@ load everything.")
|
|||
#'magit-display-buffer-fullframe-status-v1)
|
||||
|
||||
(set! :popup "^\\(?:\\*magit\\|magit:\\)" :ignore)
|
||||
|
||||
;; Consider magit buffers real (so they can switched to)
|
||||
(defun +magit-buffer-p (buf)
|
||||
(with-current-buffer buf (derived-mode-p 'magit-mode)))
|
||||
(add-to-list 'doom-real-buffer-functions #'+magit-buffer-p nil #'eq)
|
||||
|
||||
;; no mode-line in magit popups
|
||||
(add-hook! '(magit-mode-hook magit-popup-mode-hook)
|
||||
#'hide-mode-line-mode)
|
||||
;; Clean up after magit by properly killing buffers
|
||||
(map! :map magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit))
|
||||
(define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit))
|
||||
|
||||
|
||||
(def-package! magit-blame :after git-timemachine)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue