config: generify doom emacs org-roam templates
This commit is contained in:
parent
4681fc47ef
commit
176ddd822a
|
@ -355,25 +355,18 @@ Version 2019-11-04 2021-02-16"
|
|||
+org-roam-open-buffer-on-find-file nil)
|
||||
|
||||
(setq my/org-roam-capture-props ":properties:\n:id: ${slug}\n:created: %<%Y-%m-%dT%H%M%S>\n:modified: <>\n:end:\n")
|
||||
(setq my/org-roam-capture-title "#+title: ${title}\n")
|
||||
(setq my/org-roam-capture-template (concat my/org-roam-capture-props my/org-roam-capture-title))
|
||||
(setq my/org-roam-capture-title "\n#+title: ${title}")
|
||||
(setq org-roam-capture-templates
|
||||
'(("d" "default" plain "%?" :target
|
||||
(file+head "%<%Y%m%d>-${slug}.org" ":properties:\n:id: ${slug}\n:created: %<%Y-%m-%dT%H%M%S>\n:modified: <>\n:end:\n#+title: ${title}\n")
|
||||
:unnarrowed t))
|
||||
;'(
|
||||
; ("d" "default" plain "%?" :target
|
||||
; (file+head "%<%Y%m%d>-${slug}.org"
|
||||
; (concat "#+filetags: :\n")
|
||||
; :unnarrowed t))
|
||||
; ("p" "person" plain "%?" :target
|
||||
; (file+head "person/%<%Y%m%d>-${slug}.org"
|
||||
; (concat my/org-roam-capture-props "#+filetags: :person:\n" my/org-roam-capture-title)
|
||||
; :unnarrowed t))
|
||||
; ("t" "tech" plain "%?" :target
|
||||
; (file+head "tech/%<%Y%m%d>-${slug}.org"
|
||||
; (concat my/org-roam-capture-props "#+filetags: :tech:software:list:\n" my/org-roam-capture-title)
|
||||
; :unnarrowed t))
|
||||
`(("d" "default" plain "%?" :target
|
||||
(file+head "%<%Y%m%d>-${slug}.org" ,(concat my/org-roam-capture-props "#+filetags: :" my/org-roam-capture-title))
|
||||
:unnarrowed t)
|
||||
("p" "person" plain "%?" :target
|
||||
(file+head "person/%<%Y%m%d>-${slug}.org" ,(concat my/org-roam-capture-props "#+filetags: :person:" my/org-roam-capture-title))
|
||||
:unnarrowed t)
|
||||
("t" "tech" plain "%?" :target
|
||||
(file+head "tech/%<%Y%m%d>-${slug}.org" ,(concat my/org-roam-capture-props "#+filetags: tech:software:list:" my/org-roam-capture-title))
|
||||
:unnarrowed t)
|
||||
)
|
||||
)
|
||||
|
||||
(defvar my/auto-org-roam-db-sync--timer nil)
|
||||
|
|
|
@ -5,6 +5,7 @@ application/rss+xml=nvim.desktop;
|
|||
application/x-java-archive=java-2.desktop;java.desktop;jconsole-java11-openjdk.desktop;
|
||||
application/x-ms-shortcut=firefox.desktop;
|
||||
application/x-mswinurl=firefox.desktop;
|
||||
application/xhtml+xml=firefox.desktop;
|
||||
application/zip=org.kde.ark.desktop;
|
||||
audio/flac=mpc.desktop;
|
||||
audio/mpeg=mpc.desktop;
|
||||
|
@ -21,6 +22,7 @@ application/pdf=org.kde.okular.desktop;
|
|||
application/x-java-archive=java-2.desktop;
|
||||
application/x-ms-shortcut=firefox.desktop;
|
||||
application/x-mswinurl=firefox.desktop;
|
||||
application/xhtml+xml=firefox.desktop;
|
||||
application/zip=org.kde.ark.desktop;
|
||||
audio/flac=mpc.desktop;
|
||||
audio/mpeg=mpc.desktop;
|
||||
|
@ -31,12 +33,12 @@ inode/directory=org.kde.dolphin.desktop;
|
|||
text/html=firefox.desktop;
|
||||
text/plain=nvim.desktop;
|
||||
x-scheme-handler/discord-757737740241731714=discord-757737740241731714.desktop
|
||||
x-scheme-handler/etcher=balena-etcher-electron.desktop
|
||||
x-scheme-handler/ferdi=ferdi.desktop
|
||||
x-scheme-handler/http=firefox.desktop;
|
||||
x-scheme-handler/https=firefox.desktop;
|
||||
x-scheme-handler/jitsi-meet=Jitsi Meet.desktop
|
||||
x-scheme-handler/org-protocol=org-protocol.desktop
|
||||
x-scheme-handler/sgnl=signal-desktop.desktop
|
||||
x-scheme-handler/signalcaptcha=signal.desktop
|
||||
x-scheme-handler/tg=telegram.desktop
|
||||
x-scheme-handler/etcher=balena-etcher-electron.desktop
|
||||
x-scheme-handler/jitsi-meet=Jitsi Meet.desktop
|
||||
x-scheme-handler/org-protocol=org-protocol.desktop
|
||||
|
|
Loading…
Reference in New Issue