Neu: org-Templates
This commit is contained in:
@@ -6,5 +6,12 @@
|
||||
(global-set-key (kbd "C-c k") #'my/org-capture-new-kpi)
|
||||
(global-set-key (kbd "C-c n") #'my/org-capture-new-note)
|
||||
|
||||
|
||||
;; org-roam-keybindings
|
||||
(global-set-key (kbd "C-c r f") #'org-roam-node-find)
|
||||
(global-set-key (kbd "C-c r i") #'org-roam-node-insert)
|
||||
(global-set-key (kbd "C-c r b") #'org-roam-buffer-toggle)
|
||||
|
||||
|
||||
(provide 'init-keybindings)
|
||||
;;; init-keybindings.el ends here
|
||||
|
||||
23
lisp/init-org-r.el
Normal file
23
lisp/init-org-r.el
Normal file
@@ -0,0 +1,23 @@
|
||||
(require 'org-roam)
|
||||
|
||||
(setq org-roam-directory (file-truename "~/org"))
|
||||
|
||||
(org-roam-db-autosync-mode)
|
||||
|
||||
(setq org-roam-capture-templates
|
||||
'(("d" "default" plain
|
||||
"%?"
|
||||
:if-new (file+head
|
||||
"docs/${slug}.org"
|
||||
"#+title: ${title}\n#+category: Docs\n")
|
||||
:unnarrowed t)
|
||||
|
||||
("n" "note" plain
|
||||
"%?"
|
||||
:if-new (file+head
|
||||
"notes/${slug}.org"
|
||||
"#+title: ${title}\n#+category: Notes\n")
|
||||
:unnarrowed t)))
|
||||
|
||||
|
||||
(provide 'init-org-r)
|
||||
@@ -10,13 +10,14 @@
|
||||
(unless package-archive-contents
|
||||
(package-refresh-contents))
|
||||
|
||||
(dolist (package '(doom-themes
|
||||
(dolist (pkg '(doom-themes
|
||||
markdown-mode
|
||||
vertico
|
||||
consult
|
||||
orderless
|
||||
marginalia))
|
||||
(unless (package-installed-p package)
|
||||
(package-install package)))
|
||||
marginalia
|
||||
org-roam))
|
||||
(unless (package-installed-p pkg)
|
||||
(package-install pkg)))
|
||||
|
||||
(provide 'init-packages)
|
||||
|
||||
Reference in New Issue
Block a user