Add Magit configuration and life quality tweaks

This commit is contained in:
coolneng 2019-12-07 20:17:29 +01:00
parent 6a796f91ea
commit b6f507325a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 13 additions and 0 deletions

View File

@ -24,5 +24,18 @@
(setq backup-directory-alist `(("." . "~/.cache"))) (setq backup-directory-alist `(("." . "~/.cache")))
(setq auto-save-list-file-prefix (setq auto-save-list-file-prefix
(concat "~/.cache/emacs")) (concat "~/.cache/emacs"))
;; Set Magit repositories
(setq magit-repository-directories '(("~/Projects" . 2)
("~/.dotfiles" . 0)
("~/.doom.d" . 0)))
;; Display Magit status in fullscreen
(after! magit
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
;; Load org configuration ;; Load org configuration
(after! org (load! "+org")) (after! org (load! "+org"))
;; Disable line numbers in Markdown
(add-hook 'markdown-mode-hook (lambda () (display-line-numbers-mode -1)))
;; Reload file from disk without confirmation
(defun revert-buffer-no-confirm ()
(interactive)
(revert-buffer :ignore-auto :noconfirm))