doom.d/config.el

41 lines
1.6 KiB
EmacsLisp
Raw Normal View History

2019-12-03 23:21:32 +01:00
;;; .doom.d/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here
2019-12-04 04:42:19 +01:00
;;
;; Set Font and theme
(setq doom-font (font-spec :family "Iosevka Medium" :size 16)
2019-12-26 01:09:55 +01:00
doom-theme 'doom-nord)
2019-12-04 04:42:19 +01:00
;; Start maximized
(add-to-list 'default-frame-alist '(fullscreen . maximized))
2019-12-04 04:43:02 +01:00
;; Set projects directories
(setq projectile-project-search-path '("~/Sync/Projects"))
; Auto cleanup recentf
(setq recentf-auto-cleanup '300)
2019-12-04 04:43:02 +01:00
; Save backup files to ~/.cache and autosave files to ~/.cache/emacs
(setq backup-directory-alist `(("." . "~/.cache"))
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 and completion in Markdown
(add-hook 'markdown-mode-hook '(lambda () (display-line-numbers-mode -1)))
(after! markdown
(set-company-backend! 'markdown-mode nil))
;; Reload file from disk without confirmation
(defun revert-buffer-no-confirm ()
(interactive)
(revert-buffer :ignore-auto :noconfirm))
;; Select target in Makefile compilation as default
(map! :leader :n "c c" #'makefile-executor-execute-project-target)
2019-12-26 01:09:55 +01:00
;; Match pdf-tools colors to the theme
(after! pdf-tools
(setq pdf-view-midnight-colors '("#ECEFF4" . "#2E3440"))
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))