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
4
On Mon, Oct 21, 2013 at 9:10 PM, John Kitchin 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.
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))
(ins
On Sun, Oct 20, 2013 at 12:58 PM, John Kitchin 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?
I requested someth
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
Dohert
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.