-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.el
66 lines (54 loc) · 2.1 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
(setq user-full-name "Urban Avsec"
user-mail-address "[email protected]")
(setq doom-theme 'doom-gruvbox-light)
(setq display-line-numbers-type 'relative)
(after! evil
(map! :n "j" 'evil-next-visual-line
:n "k" 'evil-previous-visual-line))
(setq org-directory "~/iCloud/3. MyBrain")
(after! org
(setq org-startup-with-inline-images t)
(setq org-todo-keywords
'((sequence "TODO(t)" "NEXT(n)" "WAIT(w@/!)" "LEARN(l)" "|" "DONE(d!)" "CANCEL(c@)"))))
(use-package! org-ref
:config
(setq
org-ref-completion-library 'org-ref-ivy-cite
org-ref-get-pdf-filename-function 'org-ref-get-pdf-filename-help-bibtex
org-ref-default-bibliography (list "~/iCloud/Library/Library.bib")))
(after! org-ref
(setq
bibtex-completion-notes-path "~/iCloud/3. MyBrain/SourceNotes/"
bibtex-completion-bibliography "~/iCLoud/Library/Library.bib"
bibtex-completion-pdf-field "file"))
(use-package! org-roam
:after org
:init
(map! :leader
(:prefix-map ("n" . "notes")
(:prefix ("r" . "roam")
:desc "Find Roam Node" "/" #'org-roam-node-find
:desc "Insert the Roam Link" "i" #'org-roam-node-insert
:desc "Sync Org Roam DB" "s" #'org-roam-db-sync
:desc "Toggle Org Roam buffer" "t" #'org-roam-buffer-toggle)))
;; Sets the Ack so that warning is not issued
(setq org-roam-v2-ack t)
:config
(setq
org-roam-directory "~/iCloud/3. MyBrain"
org-roam-dailies-directory "~/iCloud/3. MyBrain/Dailies")
(org-roam-setup))
(after! org-roam
(setq org-roam-capture-templates
'(("n" "Default Note" plain "%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+TITLE: ${title}\n")
:unnarrowed t)
("s" "Source Note" plain "%?"
:if-new (file+head "LiteratureNotes/${citekey}.org"
"#+TITLE: ${title}\n")
:unnarrowed t))))
(use-package! org-roam-bibtex
:after org-roam
:hook (org-roam-mode . org-roam-bibtex-mode)
:config)