General refactor for readability

+ Removes redundant/unhelpful comments
+ Renames functions, hooks and variables to be self-documenting
+ Use add-to-list to ensure idempotency (and is more performant)
This commit is contained in:
Henrik Lissner 2018-07-09 15:33:31 +02:00
parent 1b98422291
commit 4941e327f4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
11 changed files with 89 additions and 95 deletions

View file

@ -29,12 +29,12 @@ load everything.")
magit-popup-display-buffer-action '((display-buffer-in-side-window)))
(set-popup-rule! "^\\(?:\\*magit\\|magit:\\)" :ignore t)
;; Consider magit buffers real (so they can switched to)
;; so magit buffers can be switched to
(add-hook 'magit-mode-hook #'doom|mark-buffer-as-real)
;; no mode-line in magit popups
;; modeline isn't helpful in magit
(add-hook! '(magit-mode-hook magit-popup-mode-hook)
#'hide-mode-line-mode)
;; Clean up after magit by properly killing buffers
;; properly kill leftover magit buffers on quit
(define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit))