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))