summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el7
-rw-r--r--.emacs.d/packages.el59
2 files changed, 58 insertions, 8 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 42788eb..f4a10bf 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -59,6 +59,13 @@
(interactive)
(moe-dark))
+;; Package specific settings
(global-set-key "\C-cl" 'use-light-theme)
(global-set-key "\C-cd" 'use-dark-theme)
+(global-set-key (kbd "M-x") #'helm-M-x)
+(global-set-key (kbd "C-x C-f") #'helm-find-files)
+(helm-mode 1)
(setq lsp-keymap-prefix "C-s-l")
+(setq org-roam-completion-everywhere t)
+
+(setq org-agenda-files '("~/Documents/org/"))
diff --git a/.emacs.d/packages.el b/.emacs.d/packages.el
index 04b7eea..fdf53b4 100644
--- a/.emacs.d/packages.el
+++ b/.emacs.d/packages.el
@@ -1,14 +1,57 @@
;; file of desired packages
;; for easier evaluation and reading
-(straight-use-package 'org)
-(straight-use-package 'elpher)
-(straight-use-package 'visual-fill-column)
-(straight-use-package 'markdown-mode)
-(straight-use-package 'lsp-mode)
-(straight-use-package 'company)
-(straight-use-package 'flycheck)
-(straight-use-package 'yasnippet)
+(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))