Re: [O] Create sub-directories and files from within org

2013-10-24 Thread John Kitchin
how would you do that? in a template or in a hook? would directory creation be a side effect of a sexp in the template? John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213

Re: [O] Create sub-directories and files from within org

2013-10-22 Thread Skip Collins
On Mon, Oct 21, 2013 at 9:10 PM, John Kitchin jkitc...@andrew.cmu.edu wrote: You can do something like this: Neat! I will give it a shot. I might also try to incorporate it into a capture template.

Re: [O] Create sub-directories and files from within org

2013-10-21 Thread Skip Collins
On Sun, Oct 20, 2013 at 12:58 PM, John Kitchin jkitc...@andrew.cmu.edu wrote: I don't understand what you are trying to do here. you could write a lisp function that you run in the ** project name heading that creates a directory by that name. But what would the txt files in that directory be?

Re: [O] Create sub-directories and files from within org

2013-10-21 Thread John Kitchin
You can do something like this: #+BEGIN_SRC emacs-lisp (defun make-project-dir-from-heading () (interactive) (save-restriction (org-narrow-to-subtree) (let ((heading-title (nth 4 (org-heading-components (make-directory heading-title t) (goto-char (point-max))

Re: [O] Create sub-directories and files from within org

2013-10-20 Thread John Kitchin
I don't understand what you are trying to do here. you could write a lisp function that you run in the ** project name heading that creates a directory by that name. But what would the txt files in that directory be? John --- John Kitchin Associate Professor

[O] Create sub-directories and files from within org

2013-10-18 Thread Chris Henderson
If I create a project with ** project name, is there any way to create a sub-directory at *** level in ~/projects/project name and create txt files in that directory - all from within org? Thanks.