Update Emacs config

Also updated org-roam. Though, Doom Emacs will eventually update it,
rendering the custom module useless in the future.
This commit is contained in:
Gabriel Arazas 2021-07-22 19:25:18 +08:00
parent c13705fffb
commit 8dc05f94ee
4 changed files with 7 additions and 13 deletions

View File

@ -19,7 +19,6 @@
projectile-project-search-path '("~/projects/software/" "~/writings/"))
(setq
time-stamp-format "%Y-%02m-%02d %02H:%02M:%02S %:z"
org-id-link-to-org-use-id t
+file-templates-dir (expand-file-name "templates" doom-private-dir)
@ -56,7 +55,6 @@
(after! org
(setq
time-stamp-start "date_modified:[ ]+\\\\?[\"<]+"
org-capture-templates `(
("i" "inbox" entry
(file ,(f-join org-directory "inbox.org"))
@ -92,6 +90,8 @@
(add-hook! 'before-save-hook 'time-stamp)
;; Load a custom configuration for muh wiki.
(add-hook! 'counsel-projectile-mode-hook (lambda ()
(message (file-name-directory (buffer-file-name)))))
(load-file (f-join +wiki-directory "config.el"))
;;; config.el ends here

View File

@ -108,13 +108,7 @@
+anki-cards-directory (f-join +wiki-directory +anki-cards-directory-name))))
(when (featurep! +dendron)
(defvar +structured-notes-directory-name "structured")
(defvar +structured-notes-directory (f-join +wiki-directory +structured-notes-directory-name))
(use-package! dendroam
:after org-roam
:preface (defvar +wiki-directory nil)
:config
(setq +structured-notes-directory (f-join +wiki-directory +structured-notes-directory-name))))
:after org-roam))
;;; config.el ends here

View File

@ -3,13 +3,13 @@
;; The main package for creating a wiki.
(package! org-roam
:recipe (:host github :repo "org-roam/org-roam" :branch "v2"))
:recipe (:host github :repo "org-roam/org-roam"))
(when (featurep! +biblio)
(package! org-ref
:recipe (:host github :repo "jkitchin/org-ref"))
(package! org-roam-bibtex
:recipe (:host github :repo "org-roam/org-roam-bibtex" :branch "org-roam-v2")))
:recipe (:host github :repo "org-roam/org-roam-bibtex")))
(when (featurep! +anki)
(package! anki-editor

4
emacs/templates/org-mode/__ Normal file → Executable file
View File

@ -16,8 +16,8 @@
"[^[:word:]0-9]+"
)) " " )
`}
#+date: "`(format-time-string "%Y-%m-%d %T %:z")`"
#+date_modified: "`(format-time-string "%Y-%m-%d %T %:z")`"
#+date: `(format-time-string "%Y-%m-%d %T %:z")`
#+date_modified: `(format-time-string "%Y-%m-%d %T %:z")`
#+language: en