From b6f507325a468120d63cea9946ec6e3a860f9ed2 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 7 Dec 2019 20:17:29 +0100 Subject: [PATCH] Add Magit configuration and life quality tweaks --- config.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config.el b/config.el index 27a6ff8..a2b2a86 100644 --- a/config.el +++ b/config.el @@ -24,5 +24,18 @@ (setq backup-directory-alist `(("." . "~/.cache"))) (setq auto-save-list-file-prefix (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 (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))