2022-12-13 23:12:11 +00:00
|
|
|
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
2023-09-18 04:26:46 +00:00
|
|
|
(setq user-full-name "Roman Godmaire"
|
|
|
|
user-mail-address "godmaire@twilit.com")
|
2022-12-13 23:12:11 +00:00
|
|
|
|
2023-12-09 14:32:12 +00:00
|
|
|
(setq doom-theme 'doom-gruvbox)
|
|
|
|
(setq display-line-numbers-type 'relative)
|
|
|
|
|
2022-12-13 23:12:11 +00:00
|
|
|
;; Doom exposes five (optional) variables for controlling fonts in Doom:
|
|
|
|
;;
|
|
|
|
;; - `doom-font' -- the primary font to use
|
|
|
|
;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
|
|
|
|
;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
|
|
|
|
;; presentations or streaming.
|
|
|
|
;; - `doom-unicode-font' -- for unicode glyphs
|
|
|
|
;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
|
|
|
|
;;
|
|
|
|
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
|
|
|
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
|
|
|
|
;; refresh your font settings. If Emacs still can't find your font, it likely
|
|
|
|
;; wasn't installed correctly. Font issues are rarely Doom issues!
|
2023-03-18 23:30:57 +00:00
|
|
|
(setq doom-font (font-spec :family "Hack Nerd Font Mono" :size 14 :weight 'regular))
|
2022-12-13 23:12:11 +00:00
|
|
|
|
|
|
|
;; Here are some additional functions/macros that will help you configure Doom.
|
|
|
|
;;
|
|
|
|
;; - `load!' for loading external *.el files relative to this one
|
|
|
|
;; - `use-package!' for configuring packages
|
|
|
|
;; - `after!' for running code after a package has loaded
|
|
|
|
;; - `add-load-path!' for adding directories to the `load-path', relative to
|
|
|
|
;; this file. Emacs searches the `load-path' when you load packages with
|
|
|
|
;; `require' or `use-package'.
|
|
|
|
;; - `map!' for binding new keys
|
2023-12-09 14:32:12 +00:00
|
|
|
|
|
|
|
(load! "config/lsp.el")
|
|
|
|
(load! "config/org.el")
|
2023-09-18 04:26:46 +00:00
|
|
|
|
|
|
|
;; Elfeed
|
|
|
|
(add-hook! 'elfeed-search-mode-hook #'elfeed-update)
|
|
|
|
|
2023-12-09 14:32:12 +00:00
|
|
|
;; Tectonic for LaTeX
|
2022-12-20 13:34:17 +00:00
|
|
|
(after! (latex tex)
|
|
|
|
(add-to-list 'TeX-command-list
|
2023-12-03 16:55:35 +00:00
|
|
|
'("Tectonic" "tectonic %s.tex" TeX-run-command nil t)))
|
2022-12-20 13:34:17 +00:00
|
|
|
|
2023-09-18 04:26:46 +00:00
|
|
|
;; Dired config
|
|
|
|
(add-hook 'dired-after-readin-hook 'dired-git-info-auto-enable)
|
|
|
|
|
|
|
|
;; Zen config
|
|
|
|
(add-hook 'writeroom-mode-enable-hook
|
|
|
|
(lambda () (display-line-numbers-mode -1)))
|
|
|
|
(add-hook 'writeroom-mode-disable-hook
|
|
|
|
(lambda () (display-line-numbers-mode)))
|
|
|
|
|
2023-03-24 04:14:33 +00:00
|
|
|
;; Wakatime
|
|
|
|
(global-wakatime-mode)
|
2023-10-31 13:54:11 +00:00
|
|
|
|
|
|
|
;; Formatters
|
|
|
|
(set-formatter! 'ruff '("ruff" "format" "-q" "-") :modes '(python-mode))
|