mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Change org agenda root folder
This commit is contained in:
parent
01080364e8
commit
eff555a2e1
4 changed files with 5 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue