emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mike McLean <mike.mclean@pobox.com>
To: Tyler Smith <tyler@plantarum.ca>
Cc: orgmode list <emacs-orgmode@gnu.org>, Ken Mankoff <mankoff@gmail.com>
Subject: Re: org files and projects nested git repositories
Date: Thu, 31 Dec 2015 13:42:31 -0500	[thread overview]
Message-ID: <CANid5Q7wMt1_qN00iQWgh+WGwACx3DYEgSdWEzperN1ExTD0DA@mail.gmail.com> (raw)
In-Reply-To: <87fuyilb77.fsf@plantarum.ca>

[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]

On Thu, Dec 31, 2015 at 1:33 PM, Tyler Smith <tyler@plantarum.ca> wrote:

> Ken Mankoff <mankoff@gmail.com> 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
>
>

[-- Attachment #2: Type: text/html, Size: 2710 bytes --]

  reply	other threads:[~2015-12-31 18:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-31 17:38 org files and projects nested git repositories Tyler Smith
2015-12-31 18:01 ` Ken Mankoff
2015-12-31 18:33   ` Tyler Smith
2015-12-31 18:42     ` Mike McLean [this message]
2016-01-01 10:02   ` Alan Schmitt
2016-01-01 12:33     ` Ken Mankoff
2016-01-04 13:04       ` Alan Schmitt
2015-12-31 18:20 ` Kyle Meyer
2015-12-31 18:38   ` Tyler Smith
2015-12-31 18:53     ` Brenda Butler
2015-12-31 19:00       ` Tyler Smith
2015-12-31 18:55     ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANid5Q7wMt1_qN00iQWgh+WGwACx3DYEgSdWEzperN1ExTD0DA@mail.gmail.com \
    --to=mike.mclean@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    --cc=tyler@plantarum.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).