blob: 0ccd9f8a0e5b8d0524eb1d44864402fd87e677c0 (
plain)
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
|
;; file of desired packages
;; for easier evaluation and reading
(straight-use-package 'use-package)
(use-package org :straight t)
(use-package elpher :straight t)
(use-package visual-fill-column :straight t)
(use-package markdown-mode :straight t)
(use-package lsp-mode :straight t)
(use-package company :straight t)
(use-package flycheck :straight t)
(use-package yasnippet :straight t)
(use-package helm :straight t)
;; custom recipes
(straight-use-package '(moe-theme :host github
:repo "kuanyui/moe-theme.el"
:branch "master"))
(straight-use-package '(yaml-mode :host github
:repo "yoshiki/yaml-mode"
:branch "master"))
;; org-roam setup (may justify it's own config at this point)
(use-package org-roam
:straight t
:init
(setq org-roam-v2-ack t)
:custom
(org-roam-directory "~/Documents/roam/")
(org-roam-capture-templates
'(("d" "default" plain "\n\n* ${title} *\n\n%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n")
:unnarrowed t)
("m" "MOC" plain "%?"
:if-new (file+head "moc-${slug}.org" "#+title: ${title}\n#+filetags: :MOC:")
:unarrowed t)
("n" "note" plain "\n\n%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n#+filetags: :notes:")
:unarrowed t)
))
:bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n i" . org-roam-node-insert)
("C-c p t" . org-roam-tag-add)
("C-c p r" . org-roam-ref-add)
("C-c p a" . org-roam-alias-add)
:map org-mode-map
("C-M-i" . completion-at-point)
:map org-roam-dailies-map)
:bind-keymap
("C-c n d" . org-roam-dailies-map)
:config
(require 'org-roam-dailies) ;; ensure the keymap is available
(org-roam-setup))
;; Setup org-roam ui
(use-package org-roam-ui
:straight
(:host github :repo "org-roam/org-roam-ui" :branch "main" :files ("*.el" "out"))
:after org-roam
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
;; a hookable mode anymore, you're advised to pick something yourself
;; if you don't care about startup time, use
;; :hook (after-init . org-roam-ui-mode)
:config
(setq org-roam-ui-sync-theme t
org-roam-ui-follow t
org-roam-ui-update-on-save t
org-roam-ui-open-on-start t))
|