From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike McLean Subject: Re: org files and projects nested git repositories Date: Thu, 31 Dec 2015 13:42:31 -0500 Message-ID: References: <87oad6ldqv.fsf@plantarum.ca> <87fuyilb77.fsf@plantarum.ca> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c25978a4dc5b0528360500 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEiBf-0005F2-4N for emacs-orgmode@gnu.org; Thu, 31 Dec 2015 13:43:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEiBb-0007vz-Rr for emacs-orgmode@gnu.org; Thu, 31 Dec 2015 13:42:59 -0500 Received: from pb-sasl0.int.icgroup.com ([208.72.237.25]:51142 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEiBb-0007vg-My for emacs-orgmode@gnu.org; Thu, 31 Dec 2015 13:42:55 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 330313718D for ; Thu, 31 Dec 2015 13:42:53 -0500 (EST) Received: from pb-sasl0.int.icgroup.com (unknown [127.0.0.1]) by pb-sasl0.pobox.com (Postfix) with ESMTP id 299003718B for ; Thu, 31 Dec 2015 13:42:53 -0500 (EST) Received: from mail-lb0-f170.google.com (unknown [209.85.217.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-sasl0.pobox.com (Postfix) with ESMTPSA id A530837188 for ; Thu, 31 Dec 2015 13:42:52 -0500 (EST) Received: by mail-lb0-f170.google.com with SMTP id sv6so122749230lbb.0 for ; Thu, 31 Dec 2015 10:42:52 -0800 (PST) In-Reply-To: <87fuyilb77.fsf@plantarum.ca> 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 , Ken Mankoff --001a11c25978a4dc5b0528360500 Content-Type: text/plain; charset=UTF-8 On Thu, Dec 31, 2015 at 1:33 PM, Tyler Smith wrote: > Ken Mankoff writes: > > > > In my version of this, I have each project as its own git repository, > > where git contains the Org file, other code, the manuscript, etc. I > > add any Org files to my global agenda with =M-x > > org-agenda-file-to-front= and remove with = M-x org-remove-file=. > > > >> most tutorials assume that all your planning files are found in one > >> directory (e.g., ~/org). > > > > That is only because it is easier to show that setup in the tutorial. You > > can have Org files all over the place, and each can be added to the > Agenda > > or not, as you wish. > > Thanks Ken. Perhaps I've been trying to hard to force everything into > one directory. I did find a post on Reddit that describes a convenient > way to create org files for projects anywhere in the directory tree in a > shared global location: > > > https://www.reddit.com/r/emacs/comments/2qwh8q/org_mode_one_massive_file_or_tons_of_small_ones/cnacdpl > > This has the benefit of keeping all my planning (.org) files in one > repo, but the disadvantage of separating the planning files from the > project they relate to. Something your approach deals with nicely. I'll > try that out. > Another option: I have a function that recursively searches a parent directory (using the "find-lisp" library) for files that are named *.org. I then add that function to org-agenda-mode-hook so that every time I open and agenda view, it recalculates the org-agenda-files variable. On a local filesystem (laptop, SSD) i don't notice a thing, slow-down wise. YMMV if your Org files are on a network share. > > Best, > > Tyler > > -- > http://plantarum.ca > > --001a11c25978a4dc5b0528360500 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Thu, Dec 31, 2015 at 1:33 PM, Tyler Smith <tyler@plantarum.ca>= wrote:
Ken Manko= ff <mankoff@gmail.com> write= s:
>
> In my version of this, I have each project as its own git repository,<= br> > where git contains the Org file, other code, the manuscript, etc. I > add any Org files to my global agenda with =3DM-x
> org-agenda-file-to-front=3D and remove with =3D M-x org-remove-file=3D= .
>
>>=C2=A0 most tutorials assume that all your = planning files are found in one
>>=C2=A0 directory (e.g., ~/org).
>
> That is only because it is easier to show that setup in the tutorial. = You
> can have Org files all over the place, and each can be added to the Ag= enda
> or not, as you wish.

Thanks Ken. Perhaps I've been trying to hard to force everything= into
one directory. I did find a post on Reddit that describes a convenient
way to create org files for projects anywhere in the directory tree in a shared global location:

https://www.reddit.com/r/emacs/comments/2qwh8q/org_mode_one_massive_file_= or_tons_of_small_ones/cnacdpl

This has the benefit of keeping all my planning (.org) files in one
repo, but the disadvantage of separating the planning files from the
project they relate to. Something your approach deals with nicely. I'll=
try that out.

Another option: I have a = function that recursively searches a parent directory (using the "find= -lisp" library) for files that are named *.org. I then add that functi= on to org-agenda-mode-hook so that every time I open and agenda view, it re= calculates the org-agenda-files variable. On a local filesystem (laptop, SS= D) i don't notice a thing, slow-down wise. YMMV if your Org files are o= n a network share.
=C2=A0

Best,

Tyler

--
http:/= /plantarum.ca


--001a11c25978a4dc5b0528360500--