;; 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))