diff options
author | Thanos Apollo <[email protected]> | 2023-05-18 01:27:53 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-05-18 01:27:53 +0300 |
commit | eba61ec1cfb3f7d858757624c5df855ca76cb9b5 (patch) | |
tree | 05e8b1667cbdb28da3ba41e77d3a04dbedb15fb8 | |
parent | 969634a6bca8744b4ef1c90c4683802b7418b462 (diff) |
emacs: Update org-roam-dailies templates and bindings
-rwxr-xr-x | emacs.org | 55 |
1 files changed, 41 insertions, 14 deletions
@@ -344,11 +344,8 @@ Hook with ~dired-mode~ (setq org-roam-directory "~/Notes") ;; Activate autosync (org-roam-db-autosync-enable) - ;; Keybindings - (global-set-key (kbd "C-c n l") 'org-roam-buffer-toggle) - (global-set-key (kbd "C-c n f") 'org-roam-node-find) - (global-set-key (kbd "C-c n i") 'org-roam-node-insert) - (define-key org-mode-map (kbd "C-c c") 'completion-at-point) + ;; Journaling + (setq org-roam-dailies-directory "journal/") #+end_src *** Templates #+begin_src emacs-lisp @@ -357,10 +354,6 @@ Hook with ~dired-mode~ "%?" :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t) - ("b" "book notes" plain - (file "~/Notes/Templates/BookNoteTemplate.org") - :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") - :unnarrowed t) ("l" "programming language" plain "* Characteristics\n\n- Family: %?\n- Inspired by: \n\n* Reference:\n\n" :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") @@ -368,6 +361,20 @@ Hook with ~dired-mode~ ("p" "MUS" plain "* Goals\n\n%?\n\n* Tasks\n\n** TODO Add initial tasks\n\n* Dates\n\n" :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: MUS") :unnarrowed t))) + ;; Dailies + (setq org-roam-dailies-capture-templates + '(("d" "default" entry + "* %?" + :target (file+head "%<%Y-%m-%d>.org" + "#+title: %<%Y-%m-%d>\n")) + ("j" "Daily Journaling" entry + (file "~/org/Templates/journaling.org") + :target (file+head "%<%Y-%m-%d>.org" + "#+title: %<%Y-%m-%d>\n")) + ("h" "Daily Journaling" entry + (file "~/org/Templates/habbits.org") + :target (file+head "%<%Y-%m-%d>.org" + "#+title: %<%Y-%m-%d>\n")))) #+end_src ** Themes *** Dracula @@ -549,7 +556,7 @@ Hook with ~dired-mode~ ** Org-download #+begin_src emacs-lisp (when (or (eq is-zeus t) - (eq is-hermes)) + (eq is-hermes t)) (setq org-download-screenshot-method "grim -g \"$(slurp)\" %s")) #+end_src ** Org-drill @@ -735,8 +742,9 @@ Hook with ~dired-mode~ ("https://www.youtube.com/feeds/videos.xml?channel_id=UCl-J-ovSJhA3or73Q2uVpow" medicosperf video) ("https://www.youtube.com/feeds/videos.xml?channel_id=UCSuHzQ3GrHSzoBbwrIq3LLA" - naomi video)))) - + naomi video) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCqYPhGiB9tkShZorfgcL2lA" + WhatIveLearned video)))) #+end_src ** Watch Videos Create function to watch videos using ~mpv~ @@ -821,7 +829,7 @@ Create function to watch videos using ~mpv~ (setq mu4e-contexts `(, (set-mu4e-context - "Fastmail" "Thanos Thanos" + "Fastmail" "Thanos Apollo" "[email protected]" "Thanos\nhttps://thanosapollo.com" "smtp.fastmail.com"))) @@ -1279,7 +1287,7 @@ Set aliases for emacs functions and ~PATH~ (define-key thanos/applications-map (kbd "m") 'mu4e) (define-key thanos/applications-map (kbd "t") 'counsel-load-theme) (define-key thanos/applications-map (kbd "f") 'elfeed) - (define-key thanos/applications-map (kbd "i") 'circe) + (define-key thanos/applications-map (kbd "i") 'circpe) (global-set-key (kbd "C-c a") 'thanos/applications-map) (define-prefix-command 'Create) @@ -1294,6 +1302,25 @@ Set aliases for emacs functions and ~PATH~ (define-key thanos/vterm-map (kbd "p") 'multi-vterm-prev) (define-key thanos/vterm-map (kbd "d") 'multi-vterm-dedicated-open) (define-key thanos/vterm-map (kbd "o") 'multi-vterm) + + + ;; org-roam + (define-prefix-command 'org-roam) + (define-key thanos/applications-map (kbd "n") 'org-roam) + + (define-key org-roam (kbd "t") 'org-roam-buffer-toggle) + (define-key org-roam (kbd "f") 'org-roam-node-find) + (define-key org-roam (kbd "i") 'org-roam-node-insert) + + (define-prefix-command 'Journal) + (define-key org-roam (kbd "j") 'Journal) + (define-key Journal (kbd "d") 'Journaling/dailies) + (define-key Journal (kbd "C-c") 'org-roam-dailies-capture-today) + (define-key Journal (kbd "C-t") 'org-roam-dailies-capture-tomorrow) + (define-key Journal (kbd "C-y") 'org-roam-dailies-capture-yesterday) + (define-key Journal (kbd "c") 'org-roam-dailies-goto-today) + (define-key Journal (kbd "t") 'org-roam-dailies-goto-tomorrow) + (define-key Journal (kbd "y") 'org-roam-dailies-goto-yesterday) #+end_src |