Add Magit configuration and life quality tweaks
This commit is contained in:
parent
6a796f91ea
commit
b6f507325a
13
config.el
13
config.el
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue