Change org agenda root folder

This commit is contained in:
Benson Chu 2020-08-23 11:45:55 -05:00
parent 01080364e8
commit eff555a2e1
4 changed files with 5 additions and 5 deletions

View file

@ -772,7 +772,7 @@
(setq gitwatch-process
(start-process-shell-command "gitwatch"
nil
"~/bin/gitwatch -r origin -b laptop -m 'Gitwatch commit: %d' ~/MEGA/org/2019-05-agenda"))))
"~/bin/gitwatch -r origin -b laptop -m 'Gitwatch commit: %d' ~/MEGA/org/agenda"))))
(defun kill-gitwatch ()
(interactive)
(when (and gitwatch-process
@ -798,7 +798,7 @@
(defun org-update-main ()
(interactive)
(let ((default-directory "~/MEGA/org/2019-05-agenda"))
(let ((default-directory "~/MEGA/org/agenda"))
(kill-gitwatch)
;; Make sure local changes are committed
(when (magit-changed-files "HEAD")

View file

@ -24,7 +24,7 @@
;;; Code:
(defconst my/org-folder "~/MEGA/org")
(defconst my/agenda-folder (expand-file-name "2019-05-agenda" my/org-folder))
(defconst my/agenda-folder (expand-file-name "agenda" my/org-folder))
(defun my/org-file (str)
(expand-file-name str my/org-folder))

View file

@ -23,7 +23,7 @@
(rear-context-string)
(position . 1))
("Refile Location"
(filename . "~/MEGA/org/2019-05-agenda/refile.org")
(filename . "~/MEGA/org/agenda/refile.org")
(front-context-string)
(rear-context-string . "6-07 Fri 16:15]\n")
(position . 5681))

View file

@ -448,7 +448,7 @@ https://github.com/org-trello/org-trello/issues/258
* Auto commit when saving org files
#+begin_src emacs-lisp
(defvar org-agenda-auto-commit nil)
(defconst org-agenda-git-repo-path (expand-file-name "~/MEGA/org/2019-05-agenda"))
(defconst org-agenda-git-repo-path (expand-file-name "~/MEGA/org/agenda"))
(defun my/toggle-auto-commit ()
(interactive)