diff options
author | Franck Cuny <fcuny@twitter.com> | 2019-04-30 15:51:48 -0700 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2019-04-30 15:51:48 -0700 |
commit | 7ec8a75a903eb7bb609939b549b629b1197654a2 (patch) | |
tree | 9b9200e613da553a8e7da916fbe305d7da9932f8 /emacs.d/custom | |
parent | [emacs] Ignore macos files when browsing. (diff) | |
download | emacs.d-7ec8a75a903eb7bb609939b549b629b1197654a2.tar.gz |
[emacs] Add a template for weekly review.
In addition to the template, we introduce a new directory (etc) where this template will be. There's a new custom variable for the new path.
Diffstat (limited to 'emacs.d/custom')
-rw-r--r-- | emacs.d/custom/fcuny-org.el | 8 | ||||
-rw-r--r-- | emacs.d/custom/fcuny-vars.el | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-org.el b/emacs.d/custom/fcuny-org.el index 278529c..a9dcee8 100644 --- a/emacs.d/custom/fcuny-org.el +++ b/emacs.d/custom/fcuny-org.el @@ -1,3 +1,5 @@ +(require 'fcuny-vars) + (use-package org :ensure t @@ -89,6 +91,12 @@ "* %U %?\n" :empty-lines 1 :tree-type week) + ;; personal weekly review + ("w" "Weekly Review" entry + (file+olp+datetree ,(concat org-directory "/personal/reviews.org")) + (file ,(concat fcuny/path-emacs-etc "/weekly_review.org")) + :tree-type week) + ;; templates for work related things only. ("T" "Work Todo" entry (file+headline ,(concat org-directory "/twitter/tasks.org") "New") diff --git a/emacs.d/custom/fcuny-vars.el b/emacs.d/custom/fcuny-vars.el index 67b04fa..f3efe6a 100644 --- a/emacs.d/custom/fcuny-vars.el +++ b/emacs.d/custom/fcuny-vars.el @@ -1,6 +1,9 @@ (defvar fcuny/path-emacs-var (expand-file-name "var" user-emacs-directory) "Path to some files for Emacs.") +(defvar fcuny/path-emacs-etc (expand-file-name "etc" user-emacs-directory) + "Path to some files for Emacs.") + (defvar fcuny/custom-settings (expand-file-name "emacs-custom.el" fcuny/path-emacs-var) "Path to emacs custom variables.") |