summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2024-03-25 14:29:08 -0700
committerbenj <benj@rse8.com>2024-03-25 14:29:08 -0700
commit5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9 (patch)
tree00cd9148146b312bf1d80c154b0ef44e827813da
parenta6aaaa8d3afc3b231c83978720e39f342a3df5b7 (diff)
downloademacs-5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9.tar
emacs-5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9.tar.gz
emacs-5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9.tar.bz2
emacs-5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9.tar.lz
emacs-5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9.tar.xz
emacs-5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9.tar.zst
emacs-5c6ed0f56c43c848b4f7e1eb0fc360b3d76c07f9.zip
org-journal and superstar mode (rice)
-rw-r--r--init.el26
1 files changed, 19 insertions, 7 deletions
diff --git a/init.el b/init.el
index d539606..36e3989 100644
--- a/init.el
+++ b/init.el
@@ -57,6 +57,7 @@
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(setq templates-dir (expand-file-name "templates" user-emacs-directory))
(setq org-dir (expand-file-name "~/.org"))
+ (setq org-dir-journal (expand-file-name "journal" org-dir))
(add-to-list 'load-path templates-dir)
@@ -263,14 +264,29 @@
:init
(setq org-ai-openai-api-token (password-store-get "openai/api-key")))
+(use-package org-superstar
+ :ensure t
+ :init)
+
+(use-package org-journal
+ :ensure t
+ :init
+ (setq org-journal-dir org-dir-journal)
+ (setq org-journal-file-type 'weekly)
+ (setq org-journal-file-format "%Y%m%d.org")
+ (setq org-journal-enable-agenda-integration t))
+
(use-package org-mode
- :after org-ai
+ :after (:all org-ai org-journal)
:mode "\\.org$"
- :bind (("C-c o c" . 'org-capture)
- ("C-c o o" . my/org-open))
+ :bind (("C-c o j o" . 'org-journal-open-current-journal-file)
+ ("C-c o j n" . 'org-journal-new-entry)
+ ("C-c o j t" . 'org-journal-new-scheduled-entry))
+
:hook ((org-mode . hl-todo-mode)
(org-mode . olivetti-mode)
(org-mode . org-ai-mode)
+ (org-mode . org-superstar-mode)
(org-mode . org-indent-mode))
:init
(org-babel-do-load-languages
@@ -417,7 +433,3 @@
;; :bind (("<C-tab>" . 'yas-expand))
:config
(yas-global-mode t))
-
-(defun my/org-open ()
- (interactive)
- (dired org-dir))