From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: org files and projects nested git repositories Date: Thu, 31 Dec 2015 13:20:02 -0500 Message-ID: <8737ui8oq5.fsf@kyleam.com> References: <87oad6ldqv.fsf@plantarum.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEhpg-00078R-PC for emacs-orgmode@gnu.org; Thu, 31 Dec 2015 13:20:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEhpc-000233-OW for emacs-orgmode@gnu.org; Thu, 31 Dec 2015 13:20:16 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:59213 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEhpc-00020d-I2 for emacs-orgmode@gnu.org; Thu, 31 Dec 2015 13:20:12 -0500 In-Reply-To: <87oad6ldqv.fsf@plantarum.ca> (Tyler Smith's message of "Thu, 31 Dec 2015 12:38:48 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tyler Smith Cc: orgmode list Hi Tyler, Tyler Smith writes: > Hello list, > > I'm struggling to incorporate project-specific org files into my global > org system. My file system looks something like this: > > ~ > =E2=94=9C=E2=94=80=E2=94=80 org > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 todo.org > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 reading.org > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 personal.org > =E2=94=94=E2=94=80=E2=94=80 research > =E2=94=9C=E2=94=80=E2=94=80 project1 > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 project1.org > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 project1_reference.pdf > =E2=94=94=E2=94=80=E2=94=80 project2 > =E2=94=9C=E2=94=80=E2=94=80 project2.org > =E2=94=9C=E2=94=80=E2=94=80 data2 > =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 data2A.csv > =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 data2B.csv > =E2=94=94=E2=94=80=E2=94=80 project2_reference.pdf [...] > I wonder if it would be possible to maintain a global git repository > containing my entire directory tree, but only the org files; and have > all of these org files incorporated into (and new ones automatically > detected by) the agenda. At the same time, I need to maintain individual > git repositories for each project directory. > > Does anyone here have experience with such a system? Or other advice on > how to keep many scattered org files in a single git repo and also > captured in the org agenda? In addition to what Ken suggested, another option is to use links to populate the agenda directory. Have a git repo for your Org notes and agenda file (your "org" directory above), and add this directory (or one of its subdirectories) to org-agenda-files so that all the Org files in that directory are considered agenda files. Keep project-related Org files in the given project directory (as you do above), and create a symbolic link for the Org file in the agenda directory. The project directory will then track the content of the Org file, and the agenda repo will just track the presence of the link. Your example from above would look like this: ~ =E2=94=9C=E2=94=80=E2=94=80 org =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 todo.org =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 reading.org =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 personal.org =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 link to ~/research/project1/pr= oject1.org =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 link to ~/research/project2/pr= oject2.org =E2=94=94=E2=94=80=E2=94=80 research =E2=94=9C=E2=94=80=E2=94=80 project1 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 project1.org =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 project1_reference.pdf =E2=94=94=E2=94=80=E2=94=80 project2 =E2=94=9C=E2=94=80=E2=94=80 project2.org =E2=94=9C=E2=94=80=E2=94=80 data2 =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 data2A.csv =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 data2B.csv =E2=94=94=E2=94=80=E2=94=80 project2_reference.pdf I use the command at the link below to add Org files to my agenda directory. https://github.com/kyleam/emacs.d/blob/3eda2253d80322640be4ec0381194d4f38= 7e6cc9/lisp/init-org.el#L437 Also, if the project Org file isn't something you want to always show up in your global TODO list, you can just restrict the agenda to that file (i.e., press "<") instead of adding it to the agenda directory. -- Kyle