summaryrefslogtreecommitdiff
path: root/.emacs.d/packages.el
blob: fdf53b40bdd272d7d58c3b5fe9de41bb36664dad (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
;; 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"))

;; 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)
     ("w" "doc" plain
      "\n\n* ${title} *\n\n[[%^{Url}][${title} Link]]\n\n** TODO Review Doc DEADLINE: %^t **\n\n"
      :if-new (file+head "%<%Y%m%d%H%M%S>-docs-${slug}.org" "#+title: ${title}\n")
      :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)
	 :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))