From 7ec8a75a903eb7bb609939b549b629b1197654a2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 30 Apr 2019 15:51:48 -0700 Subject: [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. --- emacs.d/custom/fcuny-org.el | 8 ++++++++ emacs.d/custom/fcuny-vars.el | 3 +++ 2 files changed, 11 insertions(+) (limited to 'emacs.d/custom') 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.") -- cgit 1.4.1