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
|
|
|
;;
|
2020-01-06 10:20:20 +01:00
|
|
|
;; Load appearance configuration
|
|
|
|
(load! "+ui")
|
2019-12-04 04:43:02 +01:00
|
|
|
;; Set projects directories
|
|
|
|
(setq projectile-project-search-path '("~/Sync/Projects"))
|
|
|
|
; Auto cleanup recentf
|
2019-12-16 20:08:37 +01:00
|
|
|
(setq recentf-auto-cleanup '300)
|
2019-12-04 04:43:02 +01:00
|
|
|
; Save backup files to ~/.cache and autosave files to ~/.cache/emacs
|
2019-12-16 20:08:37 +01:00
|
|
|
(setq backup-directory-alist `(("." . "~/.cache"))
|
|
|
|
auto-save-list-file-prefix
|
|
|
|
(concat "~/.cache/emacs"))
|
2019-12-07 20:17:29 +01:00
|
|
|
;; Set Magit repositories
|
|
|
|
(setq magit-repository-directories '(("~/Projects" . 2)
|
|
|
|
("~/.dotfiles" . 0)
|
|
|
|
("~/.doom.d" . 0)))
|
2019-12-07 20:16:04 +01:00
|
|
|
;; Load org configuration
|
|
|
|
(after! org (load! "+org"))
|
2019-12-31 05:56:59 +01:00
|
|
|
;; 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))
|
2019-12-07 20:17:29 +01:00
|
|
|
;; Reload file from disk without confirmation
|
|
|
|
(defun revert-buffer-no-confirm ()
|
|
|
|
(interactive)
|
|
|
|
(revert-buffer :ignore-auto :noconfirm))
|
2019-12-16 20:08:37 +01:00
|
|
|
;; Select target in Makefile compilation as default
|
|
|
|
(map! :leader :n "c c" #'makefile-executor-execute-project-target)
|
2020-01-06 10:20:20 +01:00
|
|
|
;; Choose docsets for Python
|
|
|
|
(after! python
|
|
|
|
(set-docsets! 'python-mode "Python 3" "NumPy" "SciPy" "Pandas" "SQLAlchemy"))
|
|
|
|
;; Align columns in CSV mode
|
|
|
|
(add-hook 'csv-mode-hook 'csv-align-mode)
|