I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
3.0 KiB

4 years ago
  1. (use-package org-superstar
  2. :after org
  3. :hook (org-mode . org-superstar-mode))
  4. (use-package ox-hugo
  5. :after ox)
  6. (use-package ox-reveal
  7. :after ox
  8. :custom (org-reveal-root "https://cdn.jsdelivr.net/npm/reveal.js"))
  9. (use-package org-roam
  10. :hook (after-init . org-roam-mode)
  11. :custom (org-roam-directory org-directory)
  12. (org-roam-encrypt-files t)
  13. (org-roam-capture-templates
  14. '(("p" "Post" plain (function org-roam-capture--get-point)
  15. "%?"
  16. :file-name "docs/posts/${slug}"
  17. :unnarrowed t
  18. :head
  19. "
  20. #+TITLE: ${title}
  21. #+AUTHOR: Christopher James Hayward
  22. #+DATE: %<%Y-%m-%d>
  23. #+EXPORT_FILE_NAME: ${slug}
  24. #+ROAM_KEY: https://chrishayward.xyz/posts/${slug}/
  25. #+HUGO_BASE_DIR: ../../website/
  26. #+HUGO_AUTO_SET_LASTMOD: t
  27. #+HUGO_SECTION: posts
  28. #+HUGO_DRAFT: true
  29. ")
  30. ("n" "Notes" plain (function org-roam-capture--get-point)
  31. "%?"
  32. :file-name "docs/notes/${slug}"
  33. :unnarrowed t
  34. :head
  35. "
  36. #+TITLE: ${title}
  37. #+AUTHOR: Christopher James Hayward
  38. #+EXPORT_FILE_NAME: ${slug}
  39. #+ROAM_KEY: https://chrishayward.xyz/notes/${slug}/
  40. #+HUGO_BASE_DIR: ../../website
  41. #+HUGO_AUTO_SET_LASTMOD: t
  42. #+HUGO_SECTION: notes
  43. #+HUGO_DRAFT: true
  44. ")
  45. ("s" "Slides" plain (function org-roam-capture--get-point)
  46. "%?"
  47. :file-name "docs/slides/${slug}"
  48. :unnarrowed t
  49. :head
  50. "
  51. #+TITLE: ${title}
  52. #+AUTHOR: Christopher James Hayward
  53. #+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js
  54. ")))
  55. (org-roam-dailies-capture-templates
  56. '(("d" "Default" entry (function org-roam-capture--get-point)
  57. "* %?"
  58. :file-name "docs/daily/%<%Y-%m-%d>"
  59. :head
  60. "
  61. #+TITLE: %<%Y-%m-%d>
  62. #+AUTHOR: Christopher James Hayward
  63. "))))
  64. (dotfiles/leader
  65. "r" '(:ignore t :which-key "Roam")
  66. "rf" '(org-roam-find-file :which-key "Find")
  67. "rb" '(org-roam-buffer-toggle-display :which-key "Buffer")
  68. "rd" '(:ignore t :which-key "Dailies")
  69. "rdd" '(org-roam-dailies-find-date :which-key "Date")
  70. "rdt" '(org-roam-dailies-find-today :which-key "Today")
  71. "rdm" '(org-roam-dailies-find-tomorrow :which-key "Tomorrow")
  72. "rdy" '(org-roam-dailies-find-yesterday :which-key "Yesterday"))
  73. (use-package org-roam-server
  74. :hook (org-roam-mode . org-roam-server-mode))
  75. (unless (string-match-p "\\.gpg" org-agenda-file-regexp)
  76. (setq org-agenda-file-regexp
  77. (replace-regexp-in-string "\\\\\\.org" "\\\\.org\\\\(\\\\.gpg\\\\)?"
  78. org-agenda-file-regexp)))
  79. (setq org-agenda-files '("~/.emacs.d/docs/"
  80. "~/.emacs.d/docs/daily/"))
  81. (dotfiles/leader
  82. "a" '(org-agenda :which-key "Agenda"))
  83. (use-package gif-screencast
  84. :commands (gif-screencast-start-or-stop gif-screencast-toggle-pause)
  85. :custom (gif-screencast-output-directory (concat dotfiles/home "docs/images/")))
  86. (dotfiles/leader
  87. "s" '(:ignore t :which-key "Screencast")
  88. "ss" '(gif-screencast-start-or-stop :which-key "Start / Stop")
  89. "sp" '(gif-screencast-toggle-pause :which-key "Pause"))