59 lines
2.0 KiB
EmacsLisp
59 lines
2.0 KiB
EmacsLisp
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
|
|
|
;; Place your private configuration here! Remember, you do not need to run 'doom
|
|
;; sync' after modifying this file!
|
|
|
|
(setq user-full-name "nicknase27"
|
|
user-mail-address "nick@nicknase27.com")
|
|
|
|
;; use zsh shell by default
|
|
(setq explicit-shell-file-name "/usr/bin/zsh")
|
|
|
|
;; (setq doom-theme 'doom-acario-dark)
|
|
(setq doom-theme 'doom-monokai-pro)
|
|
|
|
(setq doom-font (font-spec :family "JetBrains Mono" :size 14 :weight 'regular)
|
|
doom-variable-pitch-font (font-spec :family "JetBrains Mono" :size 14))
|
|
|
|
(add-hook 'server-after-make-frame-hook
|
|
(lambda ()
|
|
(when (display-graphic-p)
|
|
(doom/reload-font))))
|
|
|
|
(setq display-line-numbers-type 'relative)
|
|
|
|
;; If you use `org' and don't want your org files in the default location below,
|
|
;; change `org-directory'. It must be set before org loads!
|
|
(setq org-directory "~/Documents/org/")
|
|
|
|
(projectile-discover-projects-in-directory "~/projects/" 2)
|
|
|
|
;; remove LSP delays
|
|
(after! flycheck (setq flycheck-idle-change-delay 0.1))
|
|
(after! lsp-mode
|
|
(setq lsp-idle-delay 0.1
|
|
lsp-completion-enable-additional-text-edit t
|
|
lsp-modeline-code-actions-enable t))
|
|
|
|
(after! apheleia
|
|
(setf (alist-get 'rustfmt apheleia-formatters)
|
|
'("rustfmt" "--edition" "2024" "--quiet" "--emit" "stdout")))
|
|
|
|
(defun my/set-terminal-keyboard-utf8 (&optional frame)
|
|
(with-selected-frame (or frame (selected-frame))
|
|
(unless (display-graphic-p)
|
|
(set-keyboard-coding-system 'utf-8))))
|
|
|
|
(add-hook 'after-make-frame-functions
|
|
#'my/set-terminal-keyboard-utf8)
|
|
|
|
|
|
;; To get information about any of these functions/macros, move the cursor over
|
|
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
|
|
;; This will open documentation for it, including demos of how they are used.
|
|
;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
|
|
;; etc).
|
|
;;
|
|
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
|
;; they are implemented.
|