-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.el
82 lines (64 loc) · 2.63 KB
/
config.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(setq user-full-name "Dauren Muratov"
user-mail-address "[email protected]")
;;
;;; Editing
;; (setq doom-font (font-spec :family "SauceCodePro Nerd Font" :size 14 :weight 'regular))
(setq doom-font (font-spec :family "JetBrains Mono" :size 14 :weight 'regular)
doom-theme 'doom-nord
display-line-numbers-type nil
evil-split-window-below t
evil-vsplit-window-right t
suggest-key-bindings nil
initial-major-mode 'lisp-interaction-mode)
(setq-default tab-width 2
scroll-margin 7)
;; Make (-) be a part of word,
;; allows for easier movement/selection/deletion
(with-eval-after-load 'evil
(defalias #'forward-evil-word #'forward-evil-symbol)
;; make evil-search-word look for symbol rather than word boundaries
(setq-default evil-symbol-word-search t))
;;
;;; Keybinds
(map! :n ", ," #'save-buffer
:leader "w f" #'doom/window-maximize-buffer)
(define-key global-map (kbd "C-c M-3") (lambda () (interactive) (insert "£")))
(map! :map general-override-mode-map
:ei "C-d" #'delete-forward-char)
(defun dm-elisp-mode-eval-buffer-or-region ()
(interactive)
(message "Evaluated Elisp!")
(+eval/buffer-or-region))
(define-key lisp-interaction-mode-map (kbd "C-c C-c") #'dm-elisp-mode-eval-buffer-or-region)
(define-key emacs-lisp-mode-map (kbd "C-c C-c") #'dm-elisp-mode-eval-buffer-or-region)
;;
;;; Other Configs
(setq +zen-text-scale 0)
;; Look for projects in a specific folder
(setq projectile-project-search-path '("~/Documents/dev/" "~/org"))
;; Disable auto completion popup
(after! company
(setq company-idle-delay nil))
;; display company docs faster (default is 0.5)
(setq company-box-doc-delay 0.3)
;; setup TERM when for KITTY
(setq vterm-term-environment-variable "xterm-kitty")
(load! "+org")
(load! "+acm")
;; Here are some additional functions/macros that could 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
;;
;; 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.
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.