[Orgmode] Agenda: Hide Sched. Items

2010-09-13 Thread Nathan Neff
Is there a way to hide Scheduled Items in a custom Agenda View?

I have the following custom agenda set up:

("&" "Timeline" ((agenda "" ))
  ((org-agenda-ndays 1)
   (org-agenda-show-log t)
   (org-agenda-clockreport-mode t)
   (org-agenda-log-mode-items '(clock))
  )
)

This custom agenda view comes close, here's an example:

Day-agenda (W37):
Monday 13 September 2010 W37
  10:00.. 
  project1:  11:20-12:33 Clocked:   (1:13) Project Mgmt
  :Mgmt:
  12:00.. 
  project 1: Sched.29x:  TODO Something   <--I want to remove these two
  project 2: Sched.13x:  Something else<-lines

I want to remove "project x: Sched" lines from this view, and
want to show the Clockreport automatically without having to press "R".

I've looked through the org-agenda-* functions/variables, and
found "org-agenda-include-deadlines" -- is there some form of
"org-agenda-include-scheduled" that I can turn off?

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Fwd: Agenda: Hide Sched. Items

2010-09-13 Thread Nathan Neff
-- Forwarded message --
From: Nathan Neff 
Date: Mon, Sep 13, 2010 at 2:06 PM
Subject: Re: Agenda: Hide Sched. Items
To: Matt Lundin 


On Mon, Sep 13, 2010 at 1:07 PM, Matt Lundin  wrote:
> Nathan Neff  writes:
>
>> Is there a way to hide Scheduled Items in a custom Agenda View?
>>
>
> Yes. You can use the variable org-agenda-entry-types.
>
>> I have the following custom agenda set up:
>>
>> ("&" "Timeline" ((agenda "" ))
>>                   ((org-agenda-ndays 1)
>>                    (org-agenda-show-log t)
>>                    (org-agenda-clockreport-mode t)
>>                  (org-agenda-log-mode-items '(clock))
>>                 )
>>                 )
>>
>
> Here's an example:
>
> (setq org-agenda-custom-commands
>      '(("&" "Timeline" ((agenda "" ))
>         ((org-agenda-ndays 1)
>          (org-agenda-show-log t)
>          (org-agenda-clockreport-mode t)
>          (org-agenda-log-mode-items '(clock))
>          (org-agenda-entry-types '(:timestamp :sexp :deadline)) ;; [1]
>          

Thanks! I don't want deadlines, and I think that :timestamp
entries are items like "Marked DONE", or "Marked STARTED".
I also don't really know what :sexp items look like, although I suspect
they're "diary" style headlines that show up when you keep a diary, like this:
* 2010-09 September.

So, I just marked the list as empty (see below), and it works the way
I want.  Thanks again!

> (setq org-agenda-custom-commands
>      '(("&" "Timeline" ((agenda "" ))
>         ((org-agenda-ndays 1)
>          (org-agenda-show-log t)
>          (org-agenda-clockreport-mode t)
>          (org-agenda-log-mode-items '(clock))
         (org-agenda-entry-types '()) ;; [1] <-pass blank list.
>          

Thanks again,
--Nate

> HTH,
> Matt
>
> Footnotes:
>
> [1] Added line. Note the absence of :scheduled.
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Modify time entry from agenda?

2010-09-14 Thread Nathan Neff
I think it would be really cool to be able to modify clock-in/clock-out times
from the agenda.

I realize I can press TAB and jump to a clocked entry and modify the times, but
if I could press a key and move the start/stop time back and forth by
10 min, that would be
awesome.

At the end of the day there's always 30-40 minute gaps between
items where I was too busy to correct the clock using org-resolve.

I think that a boatload of keypresses could be saved if there was a way to move
the start/end time of an item forward/backward by 10 minutes from the agenda.

Am I missing some existing functionality?  I've read Bernt's workflow,
and realize I can
define a 'default' activity which would reduce these gaps.  But, I
would still like to
allocate more time to specific tasks if that's where I really spent the time.

For example, from the agenda:

organization: 13:40-14:00
specific_task:14:00-14:50 (50 min)
organization: 14:50-15:05

I would put the cursor on the 1st organization task and move the end
time back by 10 min.
Then I would put the cursor on the specific task and move its start
time back by 10 min.

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Effort columnview: Show total in different column

2010-09-22 Thread Nathan Neff
I'd like to generate a columnview that shows totals in a separate
column, like the clockreport.

Something like this:

| Total | Effort. | Task   |
|---+--+|
| 4 |  | Main Task  |
|   |2 | Sub Task 1 |
|   |2 | Sub Task  2 |

Any ideas where to start?  Currently, if I just define a columnview,
then the output looks like this:
| Est. | Task|
|--+-|
| 1:00 | * Main Task |
| 0:30 | Sub Task 1   |
| 0:30 | Sub Task 2   |

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Insert link to recently captured Note?

2010-10-12 Thread Nathan Neff
I'd like to ask the mailing list how they handle the following situation:

I'm clocked into FOO below, then spend about 20 minutes on something
that's somewhat
related to FOO, but is not really a direct sub-task of FOO, so I
probably want to refile it later.

So, I open org-capture and create some notes about * BAR, and file it away.

Now, I'm back in * FOO and want to quickly put a note about * BAR in
my FOO task.

So, ideally my structure would look like this:
-- some file 
* FOO
Got caught up with [[link to * BAR]]
-- notes.org 
* BAR
blew 30 minutes on this problem.
I might file this headline somewhere, but I want to be able to link from * FOO
to this new note


I've found variables like org-capture-bookmark-last-stored-position,
but I think that it
contains just the filename (like notes.org).  What I probably need is
a way to create an ID
for the newly captured heading, and then store a link to it on the
clipboard or something.

Does anyone else have a need for this, or do this in their everyday work?
I know there's ways to create a link from * BAR (the new note) to *
FOO (the origin/context)
but I want an easy way to insert a link to * FOO to * BAR.  Also, the
link needs to work no matter
where I file * BAR later on, so I presume that a unique ID needs to be
created for * BAR
when I capture it.

Thanks for any advice,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Insert link to recently captured Note?

2010-10-12 Thread Nathan Neff
On Wed, Oct 13, 2010 at 1:29 AM, Nathan Neff  wrote:
> I'd like to ask the mailing list how they handle the following situation:
>
> I'm clocked into FOO below, then spend about 20 minutes on something
> that's somewhat
> related to FOO, but is not really a direct sub-task of FOO, so I
> probably want to refile it later.
>
> So, I open org-capture and create some notes about * BAR, and file it away.
>
> Now, I'm back in * FOO and want to quickly put a note about * BAR in
> my FOO task.
>
> So, ideally my structure would look like this:
> -- some file 
> * FOO
> Got caught up with [[link to * BAR]]
> -- notes.org 
> * BAR
> blew 30 minutes on this problem.
> I might file this headline somewhere, but I want to be able to link from * FOO
> to this new note
>
>
> I've found variables like org-capture-bookmark-last-stored-position,
> but I think that it
> contains just the filename (like notes.org).  What I probably need is
> a way to create an ID
> for the newly captured heading, and then store a link to it on the
> clipboard or something.

Okay, I found out how to do create a unique ID, by defining a template
like this:

org-capture-templates '(("t" "Task" entry (file "~/todo.txt")
 "* foo\n :PROPERTIES:\n  ID:
%(shell-command-to-string \"uuidgen\")  :END:")
)

Now, I just need a way to quickly insert a link to this newly created ID.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Specifying a template when calling org-capture

2010-11-08 Thread Nathan Neff
Hello,

Most of the time, I call the same template when calling org-capture.

I'd like to define a key to call the template without going to the menu.

I found the documentation where it says

"Lisp programs can set KEYS to a string associated with a template in
`org-capture-templates'.  In this case, interactive selection will be
bypassed."

I've tried several attempts at calling org-capture and specifying
KEYS, but haven't
gotten it to work.  The method signature is

(org-capture &optional GOTO KEYS)

Here's my attempts, my template's hotkey is "t"

(call-interactively (org-capture nil "t")) ;; doesn't work

(org-capture nil 't) ;; doesn't work

Can anyone tell me how to specify the KEYS argument correctly to the
org-capture function?

Thanks,
--Nate

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] An Org-mode clone for Vim

2010-11-08 Thread Nathan Neff
Herbert, this is fantastic news.

My background is mainly with Vim, but I am very open to learning other software.

I can understand people who don't want to relearn keybindings, etc,
but I work on many
platforms and have that problem all the time anyway :-).

I'm a member of a "vim-geeks" group in St. Louis, and I demoed Org-mode to them
last week.  The idea of implementing org-mode in Vim was brought up,
and I'm sure
there are some very talented Vim-scripters in our group who would be
interested in your
plugin/org-mode system.

I'll forward this thread to the vim-geeks group -- please keep up your
effort!  I think it would
be fun to be able to really use org-mode from inside Vim.  In
addition, we might be able to help
you implement some features, or provide feedback.

--Nate

On Fri, Nov 5, 2010 at 2:39 PM, Herbert Sitz  wrote:
> I've been working on a Vim plugin that is file-compatible with Org-mode and 
> that
> clones a good subset of features.  It's gotten to the point where I'd like to
> put it up on Github and see if anyone wants to use it and/or help develop it
> with me.  So far I've implemented a good subset of Org's functionality and,
> though it has a few rough edges, right now it could be perfectly usable for
> certain people out there who prefer Vim as a text editor, but who have been
> drawn to Emacs' Org-mode because of its features.  My project isn't at the 
> point
> where it has all the features or the polish of Org-mode, but many Org-mode 
> users
> use only a small subset of Org.  For people who prefer Vim and have subsets
> coinciding with my project it could be an option.
>
> I've made a video showing what it looks like and demonstrating some of the 
> basic
> outlining stuff.  I just uploaded it to Vimeo, and it tells me it will be
> available for viewing in a couple hours (i.e., around 3:15pm PST today, Friday
> Nov. 5,2010).  When available it will be viewable at this link:
> http://vimeo.com/16543959
>
> For someone who asks, 'Why would you bother to do this for Vim when it's 
> already
> done in Emacs?", I would have these responses:
>
> 1.  A lot of people don't like Emacs.  It is of course an insanely powerful
> piece of software, but a lot of people can never get accustomed to the 
> chord-key
> command system, or if they do get semi-accustomed they don't like it or it
> causes them physical pain.
> 2.  Some people are of the opinion that, while Emacs is admittedly a great
> operating system/development environment, it lacks a decent text editor.  ;)
> 3.  Emacs and Vim (or Vim and Emacs) are king and queen atop the pile of text
> editors.  What one has the other should have to, to the extent possible.
> 4.  I consider myself a Vim person, but I moved to Org-mode and Emacs myself
> (made almost palatable to me by Viper and Vimpulse) because I wanted to be 
> able
> to publish outlines to PDF and HTML.  Vim has a couple decent outliners but
> nobody has bothered to create good export systems for quality output.  I had
> written some (non-publishing-related) extensions for one of the Vim outliners
> and I knew it wouldn't be that hard to write something in Vim that was
> file-compatible with Org-mode, which would then be able to publish to PDF and
> HTML simply by calling out to an Emacs server.  This was my original goal and
> it's done and works great.
> 5.  As I did some work I became more curious about all the task management and
> organization features in Org-mode, and how they might be implemented in Vim.  
> So
> I started coding up stuff for the various Org searches, agenda views, sparse
> trees, column views, date management, etc.  This is actually fun to do and Vim
> is well-suited for doing it.  So I've kept going.  I'm hoping someone else 
> might
> have an interest in doing this with me.
> 6. As I said in 5., developing this stuff is fun.
>
> That's about it.  If there's any interest I'll do more videos showing how 
> other
> Org-mode features have been implemented in the Vim plugin, and where they 
> stand
> right now in the Vim plugin compared to Org-mode.
>
> Regards,
>
> Herb Sitz
> Seattle, WA
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Pretty-up Log Entries

2010-11-10 Thread Nathan Neff
If I recall correctly, the log entries shown in the agenda
are pretty much hard-coded and difficult to change.

I recall fairly easy ways of sending data from emacs to external files,
and then formatting that data with script(s) or some external program, then
reading them back into emacs.

Would org-babel be a good thing to use to grab the log book from
the agenda, then massage the data in an external script, and then
bring the data back into Emacs?

Specifically, I'm looking to simplify the log entry report.  Here's an example
of what I'd like to see:

9:05 Did something  10 minutes
9:15 Something else20 minutes
 -- 40 minutes unaccounted for --
10:30 Something else2 minutes
10:30 Another task10 minutes <-- overlapping
items, needs fixing

Total: 1:00

Any suggestions for accomplishing this?  I'd like to be able to snap-look
at the stuff I've done today and be able to tidy up the time and find holes to
account for.

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bastien is going to become the maintainer of Org mode in January

2010-11-15 Thread Nathan Neff
Thanks for your contribution Carsten!

Bastien, congratulations on your new role and good luck.

--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Couple more videos of Org-mode clone in Vim

2010-11-20 Thread Nathan Neff
Really cool -- I like the "inline" editing of files from the agenda,
and how you can
click on a tag and do an agenda search.

Keep up the good work -- I might e-mail you to ask how you got the
inline editing
of a file to work.

--Nate

On Tue, Nov 9, 2010 at 4:07 AM, Herbert Sitz  wrote:
> For anybody interested I've posted a couple more videos of features in the
> would-be Org-mode clone.  First is showing basics of sparse-tree-search:
> http://vimeo.com/16646716
>
> And second is on tags:
> http://vimeo.com/16650450
>
> I'll try to put something together showing the agenda date views and custom
> searches, which is what I've spent vast majority of time on. . . .
>
> Regards,
>
> Herb Sitz
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Awesome! Date-tree from agenda!

2010-11-24 Thread Nathan Neff
I've been looking for a way to do quick "journal" entries
for /past/ dates, and was disappointed that the Journal
capture template always used the current date.

I found out you can go to a date in the agenda, and press "k c", which
will cause any capture-template to use the date in the agenda, not today's date.
This will use the agenda's date when putting journal entries into a
file like this:

* 2010-11-17 Wednesday
** Did something in the past (I entered this from the agenda, going
back to 2010-11-17)

Cool!
http://orgmode.org/manual/Using-capture.html#Using-capture

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Capture into subheading of current headline

2010-11-28 Thread Nathan Neff
I think I'm missing something obvious here -- I can't
define a capture template that puts the results as a sub-heading
of the heading that the cursor is currently in.

For example:

* Some Heading

some text in this heading


I tried defining a template that used the "org-end-of-subtree" function:

 (setq org-capture-templates
 `(("x" "Subheading" entry (function org-end-of-subtree) "*
%?\n\n" :clock-in t :clock-resume t)
  )
  )

But, the captured data is inserted as a sibling heading
in front of the heading where the cursor is, like this:

* 
* Some Heading

** < I want the result of the capture template here>

I've also tried "outline-next-heading", and "outline-end-of-subtree"
but they add
non-subtree headlines, and insert into #+begin_src / #+end_src blocks,
which is undesirable

I've also tried the solution proposed in this thread, but haven't
quite got it correct:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28946.html

Any help appreciated,

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Capture into subheading of current headline

2010-12-01 Thread Nathan Neff
On Wed, Dec 1, 2010 at 8:30 AM, Eric S Fraga  wrote:
> Carsten Dominik  writes:
>
>> Hi Nathan,
>>
>> On Nov 28, 2010, at 8:10 PM, Nathan Neff wrote:
>>
>>> I think I'm missing something obvious here -- I can't
>>> define a capture template that puts the results as a sub-heading
>>> of the heading that the cursor is currently in.
>>
>> You can insert a capture entry at the location where you are
>> at using a zero prefix to the capture command:
>>
>> C-0 C-c r
>>
>> Does that do what you want?  It hast the advantage that
>> it works for any entry-like templates in your setup.
>>
>> I guess we could make a special target for filing as child
>> of current heading if mor ethan one person found this useful
>>
>> - Carsten
>
> I can see this being useful but isn't this really a case of trying to
> massage org-capture into doing something which would best handled
> through a more general template mechanism (e.g yasnippet)?  I may be
> biased because I already use yasnippet to insert particular types of
> entries into org files, especially latex directives and some babel
> code blocks...
>
> --
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
> : using Org-mode version 7.3 (release_7.3.159.g23265)
>

I had the same thoughts, but I already have a capture template which
uses (clock)
to insert itself as a child of the currently clocked item.

I want to use that same template, except just be able to insert it as
a child of the current item.

I could define a yasnippet, but didn't want to define the same template twice.

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] ID property for top-of-file?

2010-12-02 Thread Nathan Neff
I like the org-id-goto function and use it all the time.

I use org-id to jump to my "refile.org" file, but I always need
to create a headline to store the ID property.

I tried putting #+ID: foo property at the top of the file, but the
org-id-goto function couldn't find foo unless I put it under a headline.

Would this be a difficult feature to request?  I have several files that
work this way, where I have to keep a dummy headline.

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Cool Clockreport in 7.3

2010-12-05 Thread Nathan Neff
Much easier to read, and I love the nesting/indenting of
sub-headings.

http://nateneff.com/org-mode-clockreport-rules.html

--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Questions about org-capture templates and usage

2010-12-06 Thread Nathan Neff
Great thread --

1) Good docs re:capture
2) Explanation of C-u and how org-capture uses it
3) Emacs keybinding guidelines
4) Notices of requests for more documentation on Worg

Also, I understood most of the things in this thread -- something must
be wrong with me.

--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Can this function be written better?

2010-12-06 Thread Nathan Neff
I'd like to be able to easily toggle the showing/hiding of CLOSED clock
items in the agenda.

I have a function that does exactly that.  My Lisp is terrible (I bet that's
never been said before :-) and I want to try to improve it.

Any suggestions how to improve/refactor the following function?

(defun njn/agenda-toggle-show-closed()
  "Toggle whether closed clock thingies are shown in the agenda"
  (interactive)
  (if (eq njn/org-agenda-show-closed 't)
  (progn (setq org-agenda-log-mode-items (quote (clock)))
 (setq njn/org-agenda-show-closed nil)
 (message "NOT Showing closed clock entries in agenda"))
(progn (setq org-agenda-log-mode-items (quote (closed clock)))
   (setq njn/org-agenda-show-closed 't)
   (message "Showing closed clock entries in agenda"))
))

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Can this function be written better?

2010-12-06 Thread Nathan Neff
> Hi Nate,
>
> I would probably write it like this: (but I'm no emacs-lisp expert
> either)
>
> (defun njn/agenda-toggle-show-closed()
>  "Toggle whether closed clock thingies are shown in the agenda"
>  (interactive)
>  (setq njn/org-agenda-show-closed (not njn/org-agenda-show-closed))
>  (setq org-agenda-log-mode-items (if njn/org-agenda-show-closed
>                                      (quote (closed clock))
>                                    (quote (clock
>  (message "%sShowing closed clock entries in agenda" (if 
> njn/org-agenda-show-closed "" "NOT ")))
>
> You have a bug in your version - the test and report is backwards.
> When njn/org-agenda-show-closed is t you don't show closed items and
> when it's nil you do.
>
> - You don't need to check for equality with 't (and you don't need to
>  quote t)
>  - everything non-nil is true
>  - you can just check that directly in the (if ... )
>
> My version basically does this:
>  1. toggle the boolean njn/org-agenda-shot-closed
>  2. set org-agenda-log-mode-items based on the boolean
>  3. report the value

Thanks Bernt -- hehe -- I never really noticed the bug.

I'd like to see if there's a way to avoid having a variable at all --
something like this (In functional language / Lisp speak, that is)

If org-agenda-log-mode-items contains (closed) then
org-agenda-log-mode-items = org-agenda-log-mode-items - (closed)
else
org-agenda-log-mode-items = org-agenda-log-mode-items + (closed)
end if

I'll try something on my own if I have 15-20 minutes to work on it tonight --

Thanks for the bugfix and this cool line:
(message "%sShowing closed clock entries in agenda" (if
njn/org-agenda-show-closed "" "NOT ")

--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [org-babel] Dynamic Tangle?

2010-12-06 Thread Nathan Neff
I'm preparing a presentation and I'm getting using tangle to show code /and/
produce working code examples -- this is really cool.

It is possible to define a "template" and pass code blocks to it?
For example: (Using pseudo-org-babel-code for brevity)

#+template
header code
<>
footer code

#+example1 :render #+template with 111
11

#+example2 :render #+template with 22
2

The tangled output would be:

header code
111
footer code

header code
22
footer code

I'm already able to use org-babel like below, but I have to
put a <> and a <> in each code block.

Here's my existing setup:
#+header
header code

#+footer
footer code

#+example1
<><-- I have to specify these <> and <> in
each code block
111
<>

#+example2
<>
22
<>

Thanks again for org-babel -- I'll post my presentation when I get it done.

--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Basic Question: Effort Sum

2010-12-09 Thread Nathan Neff
Hello,

I have a dynamic table that gives me a list of the items in a file
and their effort estimates.  I'd like to either
1) Have org-mode sum the effort for me, much like the CLOCKSUM feature
or
2) Write a simple calc function and manually put it into the table to sum
the first column which contains the effort estimates.

Here's a sample file:
#+COLUMNS: %08Effort(Est.){+} %40ITEM(Task) %7CLOCKSUM(Clocked)
* Effort Summary Table
#+BEGIN: columnview :hlines 1 :id global
#+END:
* Task 1
:PROPERTIES:
:Effort: 4:00
:END:
* Task 2
:PROPERTIES:
:Effort: 3:00
:END:

I can't seem to find the correct syntax for the range of an entire column.
I've tried using something like this:
#+TBLFM: @2$3=vsum(@4$...@3$1)

But I haven't been able to sum the entire column.  Can anyone help?

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Wishlist: let org-refile find buffers that have been renamed

2010-12-22 Thread Nathan Neff
On Wed, Dec 22, 2010 at 8:53 PM, Suvayu Ali  wrote:
> On Wednesday 22 December 2010 06:08 PM, Hsiu-Khuern Tang wrote:
>>
>> Hi Samuel,
>>
>> Thanks for the suggestion.  I just tried it, and it does a nice job
>> choosing easy-to-identify buffer names.  But those buffer names again
>> do not come up for selection by C-c C-w (org-refile).

I'm going to try this tomorrow, but in case it doesn't work with C-c C-w,
I would like to vote +1 for this feature.

I have a wiki (in org-mode) and my personal notes (in org-mode) and
they're stored in different directories.  I also have common filenames
like this:

wiki/grails.org
wiki/groovy.org
wiki/vim.org

and

personal/grails.org
personal/groovy.org
personal/vim.org

I resolve this problem currently by refiling my personal items first,
then refiling
my wiki last.  I have two custom methods that set my refile target to
my wiki or my personal directory.  I run njn/set-refile-personal when
I want to refile to my personal directory, and I run
njn/set-refile-notesmine when I want to refile to my wiki.

 (defun njn/set-refile-personal()
(interactive)
(setq org-refile-targets
  (quote ((njn/personal-org-files :maxlevel . 5
  )

  (defun njn/set-refile-notesmine()
(interactive)
(setq org-refile-targets
  (quote
(njn/notesmine-org-files :maxlevel . 5)))
  )

Anyway, I would love it if I didn't have to do it this way, and I'll
check out uniquify tomorrow.

Maybe a solution would be to use a file-property to give a buffer an
alias when refiling?  Like this:

 wiki/grails.org
#+refile-alias: WGrails

 personal/grails.org would just use "grails.org"

--Nate




>
> I think org-refile ignores duplicate entries and refiles to the first match.
> I have observed this same behaviour even for sub-trees with same names.
>
> e.g.
>
> * top headline
> ** sub-heading
>   Text for sub-heading 1
> ** sub-heading
>   Text for sub-heading 2
>
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Info file org does not exist

2011-01-18 Thread Nathan Neff
Hello,

I apologize if this is a very simple question, but I'm using the
latest org-mode and
just switched to a Debian based distro.

I'm able to run make && sudo make install in the org-mode source directory, but
when I go to Emacs, I don't see the Org-mode documentation when I use C-h i.

When I run M-x org-info, I get the message "Info file org does not exist".

I looked through the Makefile for org, and found several interesting targets:

install-info

and

install-info-debian

I installed the texinfo package, then tried running:

sudo make install-info

I get this message:
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments

I tried running:

sudo make install-info-debian

And I get the same message as above.

Any ideas?  I'm running Crunchbang Linux, which is Debian-based.

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Info file org does not exist

2011-01-18 Thread Nathan Neff
That's odd, so I ran make && sudo make install, then restarted emacs,
and now it can find the org-info.

Oh well -- I guess one of the steps below worked!  Issue resolved.

--Nate

On Tue, Jan 18, 2011 at 9:25 AM, Nathan Neff  wrote:
> Hello,
>
> I apologize if this is a very simple question, but I'm using the
> latest org-mode and
> just switched to a Debian based distro.
>
> I'm able to run make && sudo make install in the org-mode source directory, 
> but
> when I go to Emacs, I don't see the Org-mode documentation when I use C-h i.
>
> When I run M-x org-info, I get the message "Info file org does not exist".
>
> I looked through the Makefile for org, and found several interesting targets:
>
> install-info
>
> and
>
> install-info-debian
>
> I installed the texinfo package, then tried running:
>
> sudo make install-info
>
> I get this message:
> This is not dpkg install-info anymore, but GNU install-info
> See the man page for ginstall-info for command line arguments
>
> I tried running:
>
> sudo make install-info-debian
>
> And I get the same message as above.
>
> Any ideas?  I'm running Crunchbang Linux, which is Debian-based.
>
> Thanks,
> --Nate
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] 6.33trans diary entries in all agenda days

2009-11-16 Thread Nathan Neff
Hello,

I would like to use the org-agenda-diary-file that's new in 6.33trans

I am able to press "i" in agenda mode, and enter a simple diary entry.

However, I can't see the new simple diary entry in my agenda, even
after refreshing, and after pressing "D" to show diary entries.

Is this the expected behavior?

Thanks,
-Nate
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Lists for org-refile-targets

2009-12-04 Thread Nathan Neff
Hello,

I'm not a lisp programmer -- I would like to tell org-mode to
use two lists of files (org-agenda-files and notesmine-files) when I refile
my remember notes.

Currently, I'm getting an error when I try to refile my notes
and I think it's something very basic.

Here's the relevant code:

;; Use environment variable $ORGDIR to get dir for org-directory
(setq org-directory (getenv "ORGDIR"))
(setq notesmine-dir "~/Documents/notesmine-org")

(setq org-agenda-files (file-expand-wildcards (concat org-directory
"/*.org")))
(setq notesmine-files (file-expand-wildcards (concat notesmine-dir
"/*.org")))

; Targets include this file and any file contributing to the agenda - up to
5 levels deep
(setq org-refile-targets
  (quote
(
  (org-agenda-files :maxlevel . 5)
  (notesmine-files :maxlevel . 5)
  (nil :maxlevel . 5)
)
  )
)

I've tried concatenating org-agenda-files and notesmine-files, but I keep
getting errors
when trying to refile.  The error that I get is:
"Wrong type argument, numberp (0.5)"

I can provide a stack trace, but I don't think this is a bug -- I just think
that
I'm not concatenating the list of files that I want to use in
org-refile-targets
correctly.

Any suggestions?

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Lists for org-refile-targets

2009-12-04 Thread Nathan Neff
I still get the "Wrong type argument: numberp, (0.5)" error.

Here's the stacktrace for the error that I get when I set org-refile-targets
with the following code:


  ;; Use environment variable $ORGDIR to get dir for org-directory
  (setq org-directory (getenv "ORGDIR"))
  (setq notesmine-dir "~/Documents/notesmine-org")

  (setq org-agenda-files (file-expand-wildcards (concat org-directory
"/*.org")))
  (setq notesmine-files (file-expand-wildcards (concat notesmine-dir
"/*.org")))

  ; Targets include this file and any file contributing to the agenda - up
to 5 levels deep
  (setq org-refile-targets
   (quote
 (
   (org-agenda-files :maxlevel . 5)
   (notesmine-files :maxlevel . 5)
   (nil :maxlevel . 5)
 )
   )
  )

Debugger entered--Lisp error: (wrong-type-argument numberp (0.5))
  number-to-string((0.5))
  (concat "^\\*\\{1," (number-to-string (if org-odd-levels-only ... ...))
"\\}[ ]")
  (setq descre (concat "^\\*\\{1," (number-to-string ...) "\\}[ ]"))
  (cond ((eq ... :tag) (setq descre ...)) ((eq ... :todo) (setq descre ...))
((eq ... :regexp) (setq descre ...)) ((eq ... :level) (setq descre ...))
((eq ... :maxlevel) (setq fast-path-p t) (setq descre ...)) (t (error "Bad
refiling target description %s" desc)))
  (while (setq entry (pop entries)) (setq files (car entry) desc (cdr
entry)) (setq fast-path-p nil) (cond (... ...) (... ...) (... ...) (...
...)) (if (stringp files) (setq files ...)) (cond (... ...) (... ...) (...
...) (... ...) (... ... ...) (t ...)) (while (setq f ...)
(with-current-buffer ... ... ... ... ...)))
  (save-current-buffer (set-buffer (or default-buffer ...)) (while (setq
entry ...) (setq files ... desc ...) (setq fast-path-p nil) (cond ... ...
... ...) (if ... ...) (cond ... ... ... ... ... ...) (while ... ...)))
  (with-current-buffer (or default-buffer (current-buffer)) (while (setq
entry ...) (setq files ... desc ...) (setq fast-path-p nil) (cond ... ...
... ...) (if ... ...) (cond ... ... ... ... ... ...) (while ... ...)))
  (let ((case-fold-search nil) (entries ...) targets txt re files f desc
descre fast-path-p level pos0) (message "Getting targets...")
(with-current-buffer (or default-buffer ...) (while ... ... ... ... ... ...
...)) (message "Getting targets...done") (nreverse targets))
  org-get-refile-targets(#)
  (setq org-refile-target-table (org-get-refile-targets default-buffer))
  (let ((org-refile-targets org-refile-targets) (org-refile-use-outline-path
org-refile-use-outline-path)) (setq org-refile-target-table
(org-get-refile-targets default-buffer)))
  org-refile-get-location("Refile to: " # nil)
  (or rfloc (org-refile-get-location (if goto "Goto: " "Refile to: ") buffer
org-refile-allow-creating-parent-nodes))
  (let* ((marker ...) (buffer ...) (pos ...) (rfloc ...))
(with-current-buffer buffer (save-excursion ...)))
  (if (equal goto (quote ...)) (org-refile-goto-last-stored) (let* (... ...
... ...) (with-current-buffer buffer ...)))
  org-agenda-refile(nil)
  call-interactively(org-agenda-refile nil nil)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Lists for org-refile-targets

2009-12-04 Thread Nathan Neff
On Fri, Dec 4, 2009 at 1:03 PM, Nick Dokos  wrote:

> Nathan Neff  wrote:
>
> > On Fri, Dec 4, 2009 at 10:45 AM, Nick Dokos 
> wrote:
> >
> > Nathan Neff  wrote:
> >
> > > Currently, I'm getting an error when I try to refile my notes
> > > and I think it's something very basic.
> > >
> > > Here's the relevant code:
> > >
> > > ;; Use environment variable $ORGDIR to get dir for org-directory
> > > (setq org-directory (getenv "ORGDIR"))
> > > (setq notesmine-dir "~/Documents/notesmine-org")
> > >
> > > (setq org-agenda-files (file-expand-wildcards (concat org-directory
> "/*.org")))
> > > (setq notesmine-files (file-expand-wildcards (concat notesmine-dir
> "/*.org")))
> > >
> > > ; Targets include this file and any file contributing to the agenda
> - up to 5 levels deep
> > > (setq org-refile-targets
> > >   (quote
> > > (
> > >   (org-agenda-files :maxlevel . 5)
> > >   (notesmine-files :maxlevel . 5)
> > >   (nil :maxlevel . 5)
> > > )
> > >   )
> > > )
> > >
> > > I've tried concatenating org-agenda-files and notesmine-files, but
> I keep getting errors
> > > when trying to refile.  The error that I get is:
> > > "Wrong type argument, numberp (0.5)"
> > >
> > > I can provide a stack trace, but I don't think this is a bug -- I
> just think that
> > > I'm not concatenating the list of files that I want to use in
> org-refile-targets
> > > correctly.
> > >
> >
> > [A stacktrace is always useful. It doesn't matter whether it's a bug
> in org or in
> > your code: it can help narrow down the problem]
> >
> > I suspect that the last line is the problem:
> >
> > >   (nil :maxlevel . 5)
> >
> > What happens if you delete it?
> >
> > HTH,
> > Nick
> >
> > I still get the "Wrong type argument: numberp, (0.5)" error.
> >
> > Here's the stacktrace:
> >
> > Debugger entered--Lisp error: (wrong-type-argument numberp (0.5))
> >   number-to-string((0.5))
> >   (concat "^\\*\\{1," (number-to-string (if org-odd-levels-only ... ...))
> "\\}[ ]")
> >   (setq descre (concat "^\\*\\{1," (number-to-string ...) "\\}[ ]"))
> >   (cond ((eq ... :tag) (setq descre ...)) ((eq ... :todo) (setq descre
> ...)) ((eq ... :regexp) (setq descre ...)) ((eq ... :level) (setq descre
> ...))
> > ((eq ... :maxlevel) (setq fast-path-p t) (setq descre ...)) (t (error
> "Bad refiling target description %s" desc)))
> >   (while (setq entry (pop entries)) (setq files (car entry) desc (cdr
> entry)) (setq fast-path-p nil) (cond (... ...) (... ...) (... ...) (...
> ...)) (if
> > (stringp files) (setq files ...)) (cond (... ...) (... ...) (... ...)
> (... ...) (... ... ...) (t ...)) (while (setq f ...) (with-current-buffer
> ... ...
> > ... ... ...)))
> >   (save-current-buffer (set-buffer (or default-buffer ...)) (while (setq
> entry ...) (setq files ... desc ...) (setq fast-path-p nil) (cond ... ...
> ...
> > ...) (if ... ...) (cond ... ... ... ... ... ...) (while ... ...)))
> >   (with-current-buffer (or default-buffer (current-buffer)) (while (setq
> entry ...) (setq files ... desc ...) (setq fast-path-p nil) (cond ... ...
> ...
> > ...) (if ... ...) (cond ... ... ... ... ... ...) (while ... ...)))
> >   (let ((case-fold-search nil) (entries ...) targets txt re files f desc
> descre fast-path-p level pos0) (message "Getting targets...")
> > (with-current-buffer (or default-buffer ...) (while ... ... ... ... ...
> ... ...)) (message "Getting targets...done") (nreverse targets))
> >   org-get-refile-targets(#)
> >   (setq org-refile-target-table (org-get-refile-targets default-buffer))
> >   (let ((org-refile-targets org-refile-targets)
> (org-refile-use-outline-path org-refile-use-outline-path)) (setq
> org-refile-target-table
> > (org-get-refile-targets default-buffer)))
> >   org-refile-get-location("Refile to: " # nil)
> >   (or rfloc (org-refile-get-location (if goto "Goto: " "Refile to: ")
> buffer org-refile-allow-creating-parent-nodes))
> >   (let* ((marker ...) (buffer ...) (pos ...) (rfloc ...))
> (with-current-buffer buffer (save-excursion ..

[Orgmode] Agenda repeats diary entries

2009-12-14 Thread Nathan Neff
Hello,

I'm using org-agenda-diary-file.

When I run agenda-mode with the attached configuration,
I see the same diary entry under each day.

Here's what my agenda shows.  Notice that the entry
from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda.
Also, "2009" and "2009-12-December" headers
repeated under each day.

Monday 14 December 2009 W51
  Diary:  2009
  Diary:  2009-12 December
  Diary:  * 2009-12-08 Tuesday
  Diary:  ** Something else.
  Diary:  <2009-12-08 Tue>
Tuesday15 December 2009
  Diary:  2009
  Diary:  2009-12 December
  Diary:  * 2009-12-08 Tuesday
  Diary:  ** Something else.
  Diary:  <2009-12-08 Tue>

Here's the contents of my diary file "journal.org"
* 2009
** 2009-12 December
*** 2009-12-08 Tuesday
 Something else.
  <2009-12-08 Tue>

I've tried to include the bare-minimum in my .emacs file,
and I can provide it if necessary.  I'm submitting this
using M-x org-submit-bug-report, so hopefully, all necessary
info is included.

Thanks for any suggestions,

--Nate




mode
Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on crested, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '("~/tmp/temp-org-dir/temp.org")
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-agenda-diary-file "~/Documents/journal.org"
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory "~/tmp/temp-org-dir"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 )
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda repeats diary entries

2009-12-16 Thread Nathan Neff
On Mon, Dec 14, 2009 at 1:52 PM, Nathan Neff  wrote:

> Hello,
>
> I'm using org-agenda-diary-file.
>
> When I run agenda-mode with the attached configuration,
> I see the same diary entry under each day.
>
> Here's what my agenda shows.  Notice that the entry
> from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda.
> Also, "2009" and "2009-12-December" headers
> repeated under each day.
>
> Monday 14 December 2009 W51
>   Diary:  2009
>   Diary:  2009-12 December
>   Diary:  * 2009-12-08 Tuesday
>   Diary:  ** Something else.
>   Diary:  <2009-12-08 Tue>
> Tuesday15 December 2009
>   Diary:  2009
>   Diary:  2009-12 December
>   Diary:  * 2009-12-08 Tuesday
>   Diary:  ** Something else.
>   Diary:  <2009-12-08 Tue>
>
> Here's the contents of my diary file "journal.org"
> * 2009
> ** 2009-12 December
> *** 2009-12-08 Tuesday
>  Something else.
>   <2009-12-08 Tue>
>
> I've tried to include the bare-minimum in my .emacs file,
> and I can provide it if necessary.  I'm submitting this
> using M-x org-submit-bug-report, so hopefully, all necessary
> info is included.
>
> Thanks for any suggestions,
>
> --Nate
>
>
>
>
> mode
> Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
>  of 2009-09-27 on crested, modified by Debian
> Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)
>
> current state:
> ==
> (setq
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-agenda-files '("~/tmp/temp-org-dir/temp.org")
>  org-agenda-include-diary t
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-export-preprocess-hook '(org-export-blocks-preprocess)
>  org-agenda-diary-file "~/Documents/journal.org"
>  org-tab-first-hook '(org-hide-block-toggle-maybe)
>  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-directory "~/tmp/temp-org-dir"
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>   org-cycle-show-empty-lines
>   org-optimize-window-after-visibility-change)
>  org-mode-hook '(#[nil "\300\301\302\303\304$\207"
>[org-add-hook change-major-mode-hook org-show-block-all
> append local]
>5]
>  )
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-occur-hook '(org-first-headline-recenter)
>  org-export-preprocess-before-selecting-backend-code-hook
> '(org-beamer-select-beamer-code)
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
>org-beamer-auto-fragile-frames
>org-beamer-place-default-actions-for-lists)
>  )
>


I've tried getting rid of the above problem by using a bare-bones .emacs
file
with only these lines in it:

(setq org-agenda-include-diary t)
(setq diary-file "~/Documents/personal/journal.org")
(setq org-agenda-diary-file diary-file)

I still see repeated diary entries like this in the agenda
Monday 14 December 2009 W51
  Diary:  2009-12 December
  Diary:  2009-12-15 Tuesday
  Diary:  * Foo bar
  Diary:  <2009-12-15 Tue>
Tuesday15 December 2009
  Diary:  2009-12 December
  Diary:  2009-12-15 Tuesday
  Diary:  * Foo bar
  Diary:  <2009-12-15 Tue>

Am I doing something wrong when declaring the org-agenda-diary-file?

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda repeats diary entries

2009-12-26 Thread Nathan Neff
On Mon, Dec 14, 2009 at 1:52 PM, Nathan Neff  wrote:

> Hello,
>
> I'm using org-agenda-diary-file.
>
> When I run agenda-mode with the attached configuration,
> I see the same diary entry under each day.
>
> Here's what my agenda shows.  Notice that the entry
> from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda.
> Also, "2009" and "2009-12-December" headers
> repeated under each day.
>
> Monday 14 December 2009 W51
>   Diary:  2009
>   Diary:  2009-12 December
>   Diary:  * 2009-12-08 Tuesday
>   Diary:  ** Something else.
>   Diary:  <2009-12-08 Tue>
> Tuesday15 December 2009
>   Diary:  2009
>   Diary:  2009-12 December
>   Diary:  * 2009-12-08 Tuesday
>   Diary:  ** Something else.
>   Diary:  <2009-12-08 Tue>
>
> Here's the contents of my diary file "journal.org"
> * 2009
> ** 2009-12 December
> *** 2009-12-08 Tuesday
>  Something else.
>   <2009-12-08 Tue>
>
> I've tried to include the bare-minimum in my .emacs file,
> and I can provide it if necessary.  I'm submitting this
> using M-x org-submit-bug-report, so hopefully, all necessary
> info is included.
>
> Thanks for any suggestions,
>
> --Nate
>
>
>
>
> mode
> Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
>  of 2009-09-27 on crested, modified by Debian
> Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)
>
> current state:
> ==
> (setq
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-agenda-files '("~/tmp/temp-org-dir/temp.org")
>  org-agenda-include-diary t
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-export-preprocess-hook '(org-export-blocks-preprocess)
>  org-agenda-diary-file "~/Documents/journal.org"
>  org-tab-first-hook '(org-hide-block-toggle-maybe)
>  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-directory "~/tmp/temp-org-dir"
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>   org-cycle-show-empty-lines
>   org-optimize-window-after-visibility-change)
>  org-mode-hook '(#[nil "\300\301\302\303\304$\207"
>[org-add-hook change-major-mode-hook org-show-block-all
> append local]
>5]
>  )
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-occur-hook '(org-first-headline-recenter)
>  org-export-preprocess-before-selecting-backend-code-hook
> '(org-beamer-select-beamer-code)
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
>org-beamer-auto-fragile-frames
>org-beamer-place-default-actions-for-lists)
>  )
>

Can anyone confirm this behavior?  It appears to be a bug.

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Agenda repeats diary entries

2009-12-27 Thread Nathan Neff
Hello,

I'm using org-agenda-diary-file.

When I run agenda-mode with the attached configuration,
I see the same diary entry under each day.

Here's what my agenda shows.  Notice that the entry
from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda.
Also, "2009" and "2009-12-December" headers
repeated under each day.

Monday 14 December 2009 W51
  Diary:  2009
  Diary:  2009-12 December
  Diary:  * 2009-12-08 Tuesday
  Diary:  ** Something else.
  Diary:  <2009-12-08 Tue>
Tuesday15 December 2009
  Diary:  2009
  Diary:  2009-12 December
  Diary:  * 2009-12-08 Tuesday
  Diary:  ** Something else.
  Diary:  <2009-12-08 Tue>

Here's the contents of my diary file "journal.org"
* 2009
** 2009-12 December
*** 2009-12-08 Tuesday
 Something else.
  <2009-12-08 Tue>

I've tried to include the bare-minimum in my .emacs file,
and I can provide it if necessary.  I'm submitting this
using M-x org-submit-bug-report, so hopefully, all necessary
info is included.

Thanks for any suggestions,

--Nate




mode
Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on crested, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '("~/tmp/temp-org-dir/temp.org")
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-agenda-diary-file "~/Documents/journal.org"
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory "~/tmp/temp-org-dir"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 )
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug?: Diary in Agenda

2009-12-29 Thread Nathan Neff
Hello,

I e-mailed the list several times with this issue:
http://article.gmane.org/gmane.emacs.orgmode/20677

I haven't heard from anyone, which seems odd.  I'm wondering
if anyone's seeing these e-mails? :-)

Can I submit a bug for the above issue?  If this is an unimportant
bug, I totally understand -- I just want to put the issue to rest one way
or the other.

*Any* feedback is appreciated.

Thanks,

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda repeats diary entries

2009-12-29 Thread Nathan Neff
On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin  wrote:

> Hi Nathan,
>
> Nathan Neff  writes:
>
> > I'm using org-agenda-diary-file.
> >
> > When I run agenda-mode with the attached configuration,
> > I see the same diary entry under each day.
> >
> > Here's what my agenda shows.  Notice that the entry
> > from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda.
> > Also, "2009" and "2009-12-December" headers
> > repeated under each day.
> >
> > Monday 14 December 2009 W51
> >   Diary:  2009
> >   Diary:  2009-12 December
> >   Diary:  * 2009-12-08 Tuesday
> >   Diary:  ** Something else.
> >   Diary:  <2009-12-08 Tue>
> > Tuesday15 December 2009
> >   Diary:  2009
> >   Diary:  2009-12 December
> >   Diary:  * 2009-12-08 Tuesday
> >   Diary:  ** Something else.
> >   Diary:  <2009-12-08 Tue>
> >
> > Here's the contents of my diary file "journal.org"
> > * 2009
> > ** 2009-12 December
> > *** 2009-12-08 Tuesday
> >  Something else.
> >   <2009-12-08 Tue>
> >
> > I've tried to include the bare-minimum in my .emacs file,
> > and I can provide it if necessary.  I'm submitting this
> > using M-x org-submit-bug-report, so hopefully, all necessary
> > info is included.
> >
>
> I can't reproduce this. Here's what my agenda looks like using the same
> source along with the settings you included in your email:
>
> Week-agenda (W50-W51):
> Tuesday 8 December 2009
>  journal:Something else.
> Wednesday   9 December 2009
> Thursday   10 December 2009
> Friday 11 December 2009
> Saturday   12 December 2009
> Sunday 13 December 2009
> Monday 14 December 2009 W51
>
> Best,
> Matt
>


Thanks for the help, guys -- If I set the org-agenda-file to a filename that
doesn't have the .org extension, then I get the following error:

Wront type argument: stringp, nil

I turned on debugging, and the error is occurring in
org-fix-position-after-promote()

Here's the stack trace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  org-fix-position-after-promote()
  org-do-demote()
  org-datetree-insert-line(2009 12)
  org-datetree-find-month-create(2009 12)
  org-datetree-find-date-create((12 29 2009))
  org-agenda-add-entry-to-org-agenda-diary-file(day "foo" (12 29 2009))
  org-agenda-diary-entry-in-org-file()
  org-agenda-diary-entry()
  call-interactively(org-agenda-diary-entry nil nil)


Thanks,
-Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Agenda repeats diary entries

2009-12-30 Thread Nathan Neff
On Wed, Dec 30, 2009 at 5:32 AM, Bernt Hansen  wrote:

> Nathan Neff  writes:
>
> > On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin  wrote:
> >
> > Hi Nathan,
> >
> > Nathan Neff  writes:
> >
> > > I'm using org-agenda-diary-file.
> > >
> > > When I run agenda-mode with the attached configuration,
> > > I see the same diary entry under each day.
> > >
> > > Here's what my agenda shows.  Notice that the entry
> > > from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda.
> > > Also, "2009" and "2009-12-December" headers
> > > repeated under each day.
> > >
> > > Monday 14 December 2009 W51
> > >   Diary:  2009
> > >   Diary:  2009-12 December
> > >   Diary:  * 2009-12-08 Tuesday
> > >   Diary:  ** Something else.
> > >   Diary:  <2009-12-08 Tue>
> > > Tuesday15 December 2009
> > >   Diary:  2009
> > >   Diary:  2009-12 December
> > >   Diary:  * 2009-12-08 Tuesday
> > >   Diary:  ** Something else.
> > >   Diary:  <2009-12-08 Tue>
> > >
> > > Here's the contents of my diary file "journal.org"
> > > * 2009
> > > ** 2009-12 December
> > > *** 2009-12-08 Tuesday
> > >  Something else.
> > >   <2009-12-08 Tue>
> > >
> > > I've tried to include the bare-minimum in my .emacs file,
> > > and I can provide it if necessary.  I'm submitting this
> > > using M-x org-submit-bug-report, so hopefully, all necessary
> > > info is included.
> > >
> >
> > I can't reproduce this. Here's what my agenda looks like using the
> same
> > source along with the settings you included in your email:
> >
> > Week-agenda (W50-W51):
> > Tuesday 8 December 2009
> >  journal:Something else.
> > Wednesday   9 December 2009
> > Thursday   10 December 2009
> > Friday 11 December 2009
> > Saturday   12 December 2009
> > Sunday 13 December 2009
> > Monday 14 December 2009 W51
> >
> > Best,
> > Matt
> >
> > Thanks for the help, guys -- If I set the org-agenda-file to a filename
> that doesn't have the .org extension, then I get the following error:
> >
> > Wront type argument: stringp, nil
> >
> > I turned on debugging, and the error is occurring in
> org-fix-position-after-promote()
> >
> > Here's the stack trace:
> >
> > Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> >   looking-at(nil)
> >   org-fix-position-after-promote()
> >   org-do-demote()
> >   org-datetree-insert-line(2009 12)
> >   org-datetree-find-month-create(2009 12)
> >   org-datetree-find-date-create((12 29 2009))
> >   org-agenda-add-entry-to-org-agenda-diary-file(day "foo" (12 29 2009))
> >   org-agenda-diary-entry-in-org-file()
> >   org-agenda-diary-entry()
> >   call-interactively(org-agenda-diary-entry nil nil)
>
> Your org-agenda-files need to be files in org-mode (normally ending in
> .org).  Your org-agenda-diary-file should also be an org file (your
> journal.org).  BUT the diary-file is a totally different animal.  Mine
> is set to ~/diary which is a zero-length empty file.  I don't use the
> standard Emacs diary at all.  I have org-agenda-include-diary set to nil
> and just use my diary.org file (your journal.org) and my regular org
> files for all of my appointment information.
>
> HTH,
> Bernt
>

Thank you very much.  I finally got it to work, using only this setting:

(setq org-agenda-diary-file "~/Documents/personal/journal.org")

Whenever I press "i" in agenda, org-mode puts date/timestamped entries in
the correct file, using org mode formatting, which is what I want.

Since I don't use the diary-file ~/Documents/journal file, it seems odd to
have to define it, but oh well :-)

Thank you very much -- I will use the org-agenda-diary-file much more now.

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [OT] See available keybindings?

2010-02-05 Thread Nathan Neff
I've defined a list of org-mode shortcuts that start with f6.

Example:
f6 i = clock in
f6 o =clock out

Is there a way to see all the available keybindings that begin
with f6?  Sometimes I'm not sure what key I need to type.

When I press f6, then  appears in the minibuffer, waiting for
another key -- is there a key I can press to see the available choices?

If not, how do I pass  to the 'describe-bindings' command when
invoking it using M-x from the minibuffer?
That command takes optional arguments, but I don't know how to
pass arguments to commands from the minibuffer.

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Resolving Idle Time - Wow

2010-02-05 Thread Nathan Neff
http://orgmode.org/org.html#Resolving-idle-time

I just discovered this, and it was one of those 'wow, org-mode already
does this' moments.

I really like being able to get distracted from some task, then apply the
lapsed
minutes to *more than one* other task.  All I have to do is keep running M-x
org-resolve-clocks

Thanks!
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-goto + Aquamacs

2010-02-05 Thread Nathan Neff
Hi,

I like using org-goto to jump to headings in an org file.

When I press C-c C-j, Aquamacs displays the contents of
the defconst org-goto-help in a different frame.  Then,
I have to switch back to my main frame.  This is a minor
annoyance.  Is there a way to get Aquamacs not to show this,
or to show it in the same frame?

I tried (setq org-goto-help nil) but the window still pops up and focuses,
but has the word 'nil' instead of the help :-/

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-goto + Aquamacs

2010-02-13 Thread Nathan Neff
On Fri, Feb 12, 2010 at 11:57 AM, Carsten Dominik  wrote:

> Hi Nathan,
>
> I hope this is fixed now, please verify.
>
> Thanks to David Reitter for his feedback on this issue.
>
> - Carsten
>
>
I downloaded the latest org from the repo, and and make && sudo make
install.

Then, I opened Aquamacs, and ran (setq org-goto-help nil).

Then, I opened an org-mode file, and pressed C-c C-j and it still
pops open a new window with the word 'nil'.

So, I don't think the problem's been fixed on my box.

Since then, I downloaded Carbon Emacs, and it doesn't have this
problem.  I'm fine with using Carbon Emacs.

>
> On Feb 5, 2010, at 10:24 PM, Nathan Neff wrote:
>
>  Hi,
>>
>> I like using org-goto to jump to headings in an org file.
>>
>> When I press C-c C-j, Aquamacs displays the contents of
>> the defconst org-goto-help in a different frame.  Then,
>> I have to switch back to my main frame.  This is a minor
>> annoyance.  Is there a way to get Aquamacs not to show this,
>> or to show it in the same frame?
>>
>> I tried (setq org-goto-help nil) but the window still pops up and focuses,
>> but has the word 'nil' instead of the help :-/
>>
>> Thanks,
>> --Nate
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> - Carsten
>
>
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Shortcut for adding text item?

2010-02-18 Thread Nathan Neff
I'm aware of the M-Ret shortcut for inserting a new heading.

Is there a shortcut for adding a text item to the current headline?

For example, I have a headline, with the cursor at  position:

* Something

And I want to add a text line under the heading, with proper indentation.

Currently, I press Ctrl-E, then Return, but I'd like to have a shortcut like
M-j or something like that.

Any ideas?  Sorry if I'm missing an easy solution.  I think I've asked this
before, but
can't find my prev. e-mail.

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Shortcut for adding text item?

2010-02-19 Thread Nathan Neff
2010/2/19 Stephan Schmitt 

> Hi Łukasz,
>
> > Stephan Schmitt  writes:
> >
> >> Also sprach Nathan Neff:
> >>> For example, I have a headline, with the cursor at  position:
> >>>
> >>> * Something
> >>>
> >>> And I want to add a text line under the heading, with proper
> indentation.
> >>>
> >>> Currently, I press Ctrl-E, then Return, but I'd like to have a
> >>> shortcut like M-j or something like that.
> >> put this in your dotemacs file:
> >>
> >> (eval-after-load "org"
> >>   '(org-defkey org-mode-map (kbd "M-j")
> >> (lambda () (interactive) (end-of-line)
> (org-return-indent
> >>
>
> Also sprach Łukasz Stelmach:
> >
> > How about unfolding subtree?
> >
>
> good point...
>
> (org-defkey org-mode-map (kbd "M-j")
>'(lambda () (interactive)
>(org-show-subtree) (end-of-line) (org-return-indent)))
>
>
Thanks a million.  I'm getting the hang of the macro-style stuff
 (e.g. using (end-of-line) followed by  (org-return-indent))

--Nate


> Greetings,
> Stephan
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Restriction Lock - Visible notifier?

2010-02-24 Thread Nathan Neff
I like the org-agenda-set-restriction-lock feature,
but I recently wasted quite a bit of time troubleshooting my agenda
views, only to find out that I'd set the restriction lock to
a single file.

Is there an option to toggle that would show me that I have
the agenda restricted to a single file?  The only visible notifier that
I found was on the "Agenda->Agenda Files" menu, where it said "Restricted to

a single File".

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Restriction Lock - Visible notifier?

2010-02-25 Thread Nathan Neff
On Thu, Feb 25, 2010 at 9:05 AM, Carsten Dominik
wrote:

> Hi Nathan,
>
> the mode line now shows "[]" after "Org Agenda" when the agenda is
> restricted
> by a restriction lock.  Hope this helps.
>
>
Very nice.  I got the upgrade, and it works.

Thanks,
--Nate

> - Carsten
>
>
> On Feb 24, 2010, at 8:08 PM, Nathan Neff wrote:
>
>  I like the org-agenda-set-restriction-lock feature,
>> but I recently wasted quite a bit of time troubleshooting my agenda
>> views, only to find out that I'd set the restriction lock to
>> a single file.
>>
>> Is there an option to toggle that would show me that I have
>> the agenda restricted to a single file?  The only visible notifier that
>> I found was on the "Agenda->Agenda Files" menu, where it said "Restricted
>> to
>> a single File".
>>
>> Thanks,
>> --Nate
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> - Carsten
>
>
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Creating ditaa diagrams

2010-02-27 Thread Nathan Neff
While researching org-babel (wow, wish I'd looked @ it earlier)
I found the cool ditaa functionality.

I experimented for a couple of hours with Emacs' picture mode and
artist mode, and wanted to get advice/feedback from everyone
on how they draw their ascii diagrams.

Any advice?

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Clocktable: Include non-clock items

2010-03-03 Thread Nathan Neff
Is there a way to get a clock table to show items
that do not have a clock entry?

Here's the use-case:

I'm working on Task 1, and encounter an unusual problem.
I want my clock report to show some detail about why Task 1
took more time than usual.

I don't want to create a sub-heading and clock into it, and
adjust the clock, etc.  I just want to store a note about this, and
have the note appear in the clock report.

Example:

--
* Task 1

 :LOGBOOK:
  CLOCK: [2010-03-01 Mon 10:35]--[2010-03-01 Mon 11:40] =>  1:05
  :END:

** Encountered unusual problem
[2010-03-01 Mon 10:45]
-

I'd like the clock report to look like this:

Clock summary at [2010-03-03 Wed 14:15]

| L | Headline | Time   |
|---+--+|
|   | *Total time* | *1:05* |
|---+--+|
| 1 | Task 1   | 1:05   |
|| Encountered unusual problem | |

Is this possible by using the clocktable function, or should I try writing a
dynamic block myself?

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Always insert heading after current

2010-03-05 Thread Nathan Neff
This is my first endeavor at contributing to open source, so bear with me
:-)

I created a variable called 'org-insert-heading-always-after-current'

If it's not nil, and you press M-Return, a new heading is created under
the current heading, ***even if you're on the first character of a
heading***

I added it to the org-custom list, also.

Here's the git commit (on GitHub) that has my changes (against the latest
org-mode as of today).

http://github.com/NathanNeff/org-mode/commit/ee2b727139db6530e8f5b7e076cf27368c3d3182

I followed the directions from here:
http://orgmode.org/worg/org-contribute.php

I would like to apply the same behavior when inserting new list items.

If you're on the first character of a list item, a new list item is still
inserted above the list item.
If anyone has a fix for this, let me know.

  For example, if you have:

* Foo
  - List Item 1
  - I want the new list item to go here, not above - List Item 1


Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] New Org-mode talk by Carsten Dominik

2010-03-07 Thread Nathan Neff
On Sun, Mar 7, 2010 at 11:37 PM, Nathan Neff  wrote:

>
>
> On Sat, Mar 6, 2010 at 9:08 AM, Carsten Dominik  > wrote:
>
>>
>> On Mar 5, 2010, at 9:07 PM, Stefan Vollmar wrote:
>>
>>  Hallo,
>>>
>>> we proudly present:
>>>
>>> "Emacs Org-mode: Organizing a Scientist's Life and Work"
>>>
>>> a talk by Carsten Dominik presented on February 8th 2010
>>> at our institute. The recording of the talk is available here:
>>>
>>> http://www.nf.mpg.de/orgmode/guest-talk-dominik.html
>>>
>>
>>
>> This is great, thanks a lot, Stefan, for all the work you have put into
>> making this available.
>>
>> Next stop: I want to be on FLOSS weekly (But Randal Schwartz did not even
>> react
>> on my email - so I guess not :-)
>>
>>
> I would also like to hear Carsten on FLOSS weekly.  I remember an episode
> from several months ago, where Leo and Randall were talking about how to
> get onto
> FLOSS weekly, and that they value listener suggestions.
>
> So, if you want to hear org-mode on FLOSS, you can e-mail Randall directly
> from the main web page:  http://twit.tv/FLOSS and suggest they have
> Carsten as a guest.
>
> --Nate
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] - Support for Groovy

2010-03-19 Thread Nathan Neff
Hello,

I'm trying to write an org-babel-groovy.el file, and have read through the
org-babel-template.el and org-babel-template.org files.

Eventually, I decided to just copy the org-babel-perl.el file to
org-babel-groovy and
replace 'perl' with 'groovy' where appropriate :-/

I'm able to get Groovy to run from an org-babel file with this code:

#+begin_src groovy :results output
   println "bar";
#+end_src

However, the program doesn't run -- all I get is the "usage" output from
Groovy:
  (Ex: usage:  groovy  blah blah blah)

I suspect that this is because I don't have a major-mode for Groovy
installed.

I'd really just like for a Groovy script to be run from org-babel, and for
the output
to be inserted into an org-babel file.

Can anyone help?  I have the source code here:

http://github.com/NathanNeff/org-mode/blob/nate/contrib/babel/lisp/langs/org-babel-groovy.el

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] Babel as a test harness?

2010-03-19 Thread Nathan Neff
I think it would be cool to use Org-babel as a simple test harness.

I'd like to have an org file, with various sections that demonstrate how to
do
something in Groovy.  I'd like to be able to run all the code in the org
file and make sure
they all run successfully (return code 0).

In Groovy, the "assert" function will exit with a non-zero code if it
fails.  How
would I use org-babel to generate a "summary" table with the name of
each patch of code and whether or not it succeeded?

Something like this would be cool:

* Regular Expressions
** Here's how to match "foo"

#+source simple_regex
#+begin_src groovy
assert "foo" =~ /foo/
#+end_src

** Here's how to match "bar" or "baz"
#+source regex_or
#+begin_src groovy
assert "bar" =~ "ba(z|r)"
#+end_src

* Results:
| simple_regex | success |
| regex_or| success |
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] Babel as a test harness?

2010-03-20 Thread Nathan Neff
On Fri, Mar 19, 2010 at 7:45 PM, Dan Davison  wrote:

> Nathan Neff  writes:
>
> > I think it would be cool to use Org-babel as a simple test harness.
> >
> > I'd like to have an org file, with various sections that demonstrate how
> to do
> > something in Groovy.  I'd like to be able to run all the code in the org
> file
> > and make sure
> > they all run successfully (return code 0).
> >
> > In Groovy, the "assert" function will exit with a non-zero code if it
> fails.
> > How
> > would I use org-babel to generate a "summary" table with the name of
> > each patch of code and whether or not it succeeded?
>
> Like below? This is all Eric's doing. For quite a while now org-babel
> has used a table like this to validate itself. It took me a while to
> understand it, but basically Eric designed a special function (actually,
> a macro) called sbe (source block evaluate) to be used in table formulas
> to call org-babel source blocks. Use C-u C-c C-c to update the table.
>
> * Tests
> | functionality  | block| arg | expected | results  |
> pass   |
>
> |+--+-+--+--+|
> | simple regexp  | simple_regex | |  |  |
> pass   |
> | regexp with or | regex_or | |  | A pretend problem... |
> expected "" but was "A pretend problem..." |
> #+TBLFM: $5='(if (= (length $3) 1) (sbe $2 (n $3)) (sbe $2)) :: $6='(if
> (string= $4 $5) "pass" (format "expected %S but was %S" $4 $5))
>
> * Code blocks for tests
> ** Here's how to match "foo"
> #+source: simple_regex
> #+begin_src groovy
> assert "foo" =~ /foo/
> #+end_src
>
> ** Here's how to match "bar" or "baz"
> #+source: regex_or
> #+begin_src groovy
> assert "bar" =~ "ba(z|r)"
> println "A pretend problem"
> #+end_src
>
>
This is awesome.  I tried it and it works.

The table's "results" column says exactly what went wrong.
For example, if I have the following:

** Here's how to match "bar" or "baz"
#+source: regex_or
#+begin_src groovy
assert "bar" =~ "this ain't gonna match"
#+end_src

Then, my results table looks like this:
| results |
| Caught: java.lang.AssertionError: Expression: (bar =~ this ain't gonna |

really cool!

--Nate


> You can put any arguments to your source blocks in the arg column. See
>
> http://orgmode.org/worg/org-contrib/babel/intro.php#spreadsheet
>
> (It often makes most sense to clone Worg and view the org files
> themseleves)
>
> And for a more complex example, including how to pass arguments to
> source blocks to sbe, see our full test suite in the file
> development.org in the devel repo
>
> http://github.com/eschulte/babel-dev/
>
> Dan
>
> p.s. groovy seems to be funny about hyphens in the input file name. I
> think you want to apply this:
>
> diff --git a/contrib/babel/lisp/langs/org-babel-groovy.el
> b/contrib/babel/lisp/langs/org-babel-groovy.el
> index 02b3272..d6a28a7 100644
> --- a/contrib/babel/lisp/langs/org-babel-groovy.el
> +++ b/contrib/babel/lisp/langs/org-babel-groovy.el
> @@ -88,7 +88,7 @@ print o join(\"\\n\", @r), \"\\n\"")
>  (defun org-babel-groovy-evaluate (session body &optional result-type)
>   "Evaluate Groovy code in BODY"
>  ;; external process evaluation
> - (let ((infile (make-temp-file "org_babel_groovy_input_")))
> +  (let ((infile (replace-regexp-in-string "-" "_" (make-temp-file
> "org_babel_groovy_input_"
>(save-excursion
>  (with-temp-buffer
>(with-temp-file infile (insert body))
>
>
>
> >
> > Something like this would be cool:
> >
> > * Regular Expressions
> > ** Here's how to match "foo"
> >
> > #+source simple_regex
> > #+begin_src groovy
> > assert "foo" =~ /foo/
> > #+end_src
> >
> > ** Here's how to match "bar" or "baz"
> > #+source regex_or
> > #+begin_src groovy
> > assert "bar" =~ "ba(z|r)"
> > #+end_src
> >
> > * Results:
> > | simple_regex | success |
> > | regex_or| success |
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [babel] Babel as a test harness?

2010-03-20 Thread Nathan Neff
On Fri, Mar 19, 2010 at 7:45 PM, Dan Davison  wrote:

> Nathan Neff  writes:
>
> > I think it would be cool to use Org-babel as a simple test harness.
> >
> > I'd like to have an org file, with various sections that demonstrate how
> to do
> > something in Groovy.  I'd like to be able to run all the code in the org
> file
> > and make sure
> > they all run successfully (return code 0).
> >
> > In Groovy, the "assert" function will exit with a non-zero code if it
> fails.
> > How
> > would I use org-babel to generate a "summary" table with the name of
> > each patch of code and whether or not it succeeded?
>
> Like below? This is all Eric's doing. For quite a while now org-babel
> has used a table like this to validate itself. It took me a while to
> understand it, but basically Eric designed a special function (actually,
> a macro) called sbe (source block evaluate) to be used in table formulas
> to call org-babel source blocks. Use C-u C-c C-c to update the table.
>
> * Tests
> | functionality  | block| arg | expected | results  |
> pass   |
>
> |+--+-+--+--+|
> | simple regexp  | simple_regex | |  |  |
> pass   |
> | regexp with or | regex_or | |  | A pretend problem... |
> expected "" but was "A pretend problem..." |
> #+TBLFM: $5='(if (= (length $3) 1) (sbe $2 (n $3)) (sbe $2)) :: $6='(if
> (string= $4 $5) "pass" (format "expected %S but was %S" $4 $5))
>
> * Code blocks for tests
> ** Here's how to match "foo"
> #+source: simple_regex
> #+begin_src groovy
> assert "foo" =~ /foo/
> #+end_src
>
> ** Here's how to match "bar" or "baz"
> #+source: regex_or
> #+begin_src groovy
> assert "bar" =~ "ba(z|r)"
> println "A pretend problem"
> #+end_src
>
> You can put any arguments to your source blocks in the arg column. See
>
> http://orgmode.org/worg/org-contrib/babel/intro.php#spreadsheet
>
> (It often makes most sense to clone Worg and view the org files
> themseleves)
>
> And for a more complex example, including how to pass arguments to
> source blocks to sbe, see our full test suite in the file
> development.org in the devel repo
>
> http://github.com/eschulte/babel-dev/
>
> Dan
>
>

This is really cool Dan!  I simplified the test table -- it runs the test in
column 1, then
prints the output to the second column, and puts "pass" or "fail" in the 3rd
column
if the 2nd column is blank.

* Tests, Simpler

Output from each source block should be nothing.
| block|
output| result |
|--+---+|
| simple_regex
|   | pass   |
| regex_or
|   | pass   |
| regex_fail   | Caught: java.lang.AssertionError: Expression: (bar =~
foo)... | fail   |
#+TBLFM: $2='(sbe $1) :: $3='(if (string= $2 "") "pass" "fail")


* Code blocks for tests
** Here's how to match "foo"
#+source: simple_regex
#+begin_src groovy results: output
assert "foo" =~ /foo/
#+end_src

** Here's how to match "bar" or "baz"
#+source: regex_or
#+begin_src groovy
assert "bar" =~ "ba(z|r)"
#+end_src

** A failing test
#+source: regex_fail
#+begin_src groovy
assert "bar" =~ "foo"
#+end_src
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Aquamacs Preview 5

2010-03-31 Thread Nathan Neff
FYI, the latest Aquamacs Preview 5 solved the "Refile error - kill is not a
(set of) trees"
problem (at least for me).

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg14756.html

I downloaded the newest version, and ran it with
Org-mode version 6.34trans (release_6.34c.243.g2bca7.dirty)

http://aquamacs.org/download.shtml

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Aquamacs Preview 5

2010-03-31 Thread Nathan Neff
On Wed, Mar 31, 2010 at 9:00 AM, Nathan Neff  wrote:

> FYI, the latest Aquamacs Preview 5 solved the "Refile error - kill is not a
> (set of) trees"
> problem (at least for me).
>
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg14756.html
>
> I downloaded the newest version, and ran it with
> Org-mode version 6.34trans (release_6.34c.243.g2bca7.dirty)
>
> http://aquamacs.org/download.shtml
>
> --Nate
>

Preview 5 also fixed a problem I was having when using Ctrl-K to kill a
line.  The line that I killed was not being copied to the kill-ring.

In other words, I would put the cursor at the start of this line:

foo

and press Ctrl-K.  Then I would press Ctrl-Y, and "foo" would not be
yanked.  This problem seems to have gone away with Aquamacs preview5.


--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Emacs setups?

2010-03-31 Thread Nathan Neff
I'm not an Emacs user, but use it for org-mode, mostly on a Mac.

I tried finding some discussions on this list about what everyone
on this list uses for Emacs.

I have three Emacs builds that I bounce back & forth between:
1) Aquamacs
2) http://atomized.org/wp-content/cocoa-emacs-nightly/ (found on
http://www.emacswiki.org/emacs/EmacsForMacOS#toc10)
3) http://emacsformacosx.com/ (also found on
http://www.emacswiki.org/emacs/EmacsForMacOS#toc10)

Can anyone point me to a thread where org-mode users discuss the version of
Emacs that they use and OS, etc?

Carsten, what version of Emacs do you use?

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Feature request: Show notes in clock report

2010-04-01 Thread Nathan Neff
Here's the use-case:

I'm working on Task 1, and encounter an unusual problem.
I want my clock report to show some detail about why Task 1
took more time than usual.

I don't want to create a sub-heading and clock into it then
adjust the clock, etc.  I just want to store a note or create a
heading with an inactive timestamp, and have the note appear
in the clock report.


Example:

--
* Task 1

 :LOGBOOK:
  CLOCK: [2010-03-01 Mon 10:35]--[2010-03-01 Mon 11:40] =>  1:05
  :END:

** Encountered unusual problem
[2010-03-01 Mon 10:45]
-

I'd like the clock report to look like this:

Clock summary at [2010-03-03 Wed 14:15]

| L | Headline | Time   |
|---+--+|
|   | *Total time* | *1:05* |
|---+--+|
| 1 | Task 1   | 1:05   |
|| Encountered unusual problem | |


I've tried the C-2 C-c C-c approach, where I create a remember
note, then refile it under the currently clocking task.  The problem with
that approach is that the note won't show up in the clock report unless
it has time > 1 min.

Thanks for the consideration,

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Add org-habit to org-modules

2010-04-05 Thread Nathan Neff
Is there a way to add org-habit to the
org-modules list without using org-custom and without
specifying all the modules at once, like this:

(setq org-modules (quote (org-bbdb org-bibtex blah blah blah)))



I'm looking for something like this:
;; Except this doesn't work :-)
(append org-modules (list ('org-habit)))

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Add org-habit to org-modules

2010-04-05 Thread Nathan Neff
On Mon, Apr 5, 2010 at 10:30 AM, Matt Lundin  wrote:

> Nathan Neff  writes:
>
> > Is there a way to add org-habit to the
> > org-modules list without using org-custom and without
> > specifying all the modules at once, like this:
> >
> > (setq org-modules (quote (org-bbdb org-bibtex blah blah blah)))
> >
> > I'm looking for something like this:
> > ;; Except this doesn't work :-)
> > (append org-modules (list ('org-habit)))
>
> (add-to-list 'org-modules 'org-habit)
>
> Best,
> Matt
>

Thanks Matt and Nick -- I appreciate this very much -- I'm a Lisp noob.

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Emacs setups?

2010-04-07 Thread Nathan Neff
On Wed, Apr 7, 2010 at 9:04 AM, Andrea Crotti wrote:

> Nathan Neff  writes:
>
> > I'm not an Emacs user, but use it for org-mode, mostly on a Mac.
> >
> > I tried finding some discussions on this list about what everyone
> > on this list uses for Emacs.
> >
> > I have three Emacs builds that I bounce back & forth between:
> > 1) Aquamacs
> > 2) http://atomized.org/wp-content/cocoa-emacs-nightly/ (found on
> > http://www.emacswiki.org/emacs/EmacsForMacOS#toc10)
> > 3) http://emacsformacosx.com/ (also found on
> > http://www.emacswiki.org/emacs/EmacsForMacOS#toc10)
> >
> > Can anyone point me to a thread where org-mode users discuss the version
> > of Emacs that they use and OS, etc?
>
> I personally use the 2) on OSX 10.6 and I'm quite satisfied.
> Sometimes it happens that it crashes (very seldomly) but for the rest is
> quite good.
>
> I don't understand the difference with 3), maybe less packages already
> inside.
>
> Anyway not being an emacs using org-mode is a "pity", because if you get
> more confident with emacs itself you will be also much more productive
> with org-mode (and viceversa).
>
>
> Thanks for your feedback Andrea.  I'm consistently getting better at Emacs
(for example, I use "occur" and have done some debugging w/Lisp code, and
have installed several plugins).

I use Vim for most of my programming and text file manipulation, but I'd
like to learn how to do the same cool stuff in Emacs, or learn the Emacs way
of doing it.  If you have any cool features of Emacs you'd like to
recommend, please send them to me.

--Nate

>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Clockreport from a list of files

2010-04-07 Thread Nathan Neff
I'm trying to create a clockreport that scans a certain file (actually, I
want to scan a list of files, but I can't even get one file to work).

I found the :scope ("file"...) option here:
http://orgmode.org/manual/Clocking-work-time.html

But I can't get the clockreport to read from nate.org.  Instead, the
clockreport reads from the current file (clockreports.org)

Here's my clockreport (it's in clockreports.org):

* Something
 :CLOCK:
  CLOCK: [2010-04-07 Wed 14:30]--[2010-04-07 Wed 16:46] =>  2:16
  :END:

#+BEGIN: clocktable :block thisweek - 1 :link :scope ("~/Documents/personal/
nate.org")
#+END

All I get is the clock report for the current file.

Any ideas what I'm doing wrong?  I also tried an absolute file path for
nate.org, but that didn't work either.

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Don't show repeating item more than once in agenda

2010-04-09 Thread Nathan Neff
I'd like to schedule something to do every 2 days, but don't want
more than one reminder in my agenda.  For example:

* TODO Call Bob
   SCHEDULED: <2010-04-12 Mon +2d>

In the agenda, I see this entry repeated every other
day (as expected) like this:

Monday 12 April 2010 W15
  nate:  Scheduled:  TODO Call Bob
Tuesday13 April 2010
Wednesday  14 April 2010
  nate:  Scheduled:  TODO Call Bob
Thursday   15 April 2010
Friday 16 April 2010
  nate:  Scheduled:  TODO Call Bob
Saturday   17 April 2010
Sunday 18 April 2010
  nate:  Scheduled:  TODO Call Bob

However, I'd like to only see the next occurrence of "Call Bob", like this:

Monday 12 April 2010 W15
  nate:  Scheduled:  TODO Call Bob
Tuesday13 April 2010
Wednesday  14 April 2010
Thursday   15 April 2010
Friday 16 April 2010
Saturday   17 April 2010
Sunday 18 April 2010

I realize I can use org-habit for doing this, but I don't want to display
the habit graph.

Is there a way to turn off the habit graph for this one entry?

Or, is there a way to only show the next occurrence of a recurring item?

Maybe I should just create a simple scheduled item for calling Bob,
and shift the item when I complete it.

Sorry if I'm missing something obvious.

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] orgcard.txt in Makefile

2010-04-12 Thread Nathan Neff
Hello,

I'd like to use the orgcard.txt file that's included in the org-mode source.
I like being able to search through a text file for relevant keyboard
shortcuts.

It doesn't seem like it's been updated since org version 6.10.

I tried running make doc, but I don't think that orgcard.txt is generated in
the "make doc" task.

Is orgcard.txt generated from orgcard.tex?  If so, can anyone tell me how
to do it?

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Custom agenda - wrong type argument

2010-04-14 Thread Nathan Neff
I'm trying to build a custom agenda that works with the current buffer.

I've succeeded in getting the agenda to display with the
current buffer like this:

(setq org-agenda-custom-commands
  (quote (
 ("c" "Current Buffer" agenda "" ((org-agenda-files (list
(buffer-file-name)
 ("f" "Home Buffer" agenda "" ((org-agenda-files
'("~/Documents/personal/nate.org"
 )
  )
)

However, when I view the agenda for the current buffer (by pressing "c",
every key I press gives me "Wrong type argument: stringp, nil".

The "Home Buffer" custom command above works fine.

I know that you can easily restrict the agenda to the current file by
pressing "<" in the
dispatcher, but I'm just hacking around and seeing how org-mode and lisp
works.

I'm using a bare-bones org-configuration:

Emacs  : GNU Emacs 23.1.93.1 (i386-apple-darwin9.8.0, NS
apple-appkit-949.54)
 of 2010-03-09 on braeburn.aquamacs.org - Aquamacs Distribution 2.0preview5
Package: Org-mode version 6.35 (release_6.35g.25.g609e.dirty)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-custom-commands '(("c" "Current Buffer" agenda ""
((org-agenda-files (list (buffer-file-name)
  ("f" "Home Buffer" agenda ""
   ((org-agenda-files (quote ("~/Documents/personal/nate.org
")
  )

 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-support-shift-select t
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all append
local] 5]
 )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 )


Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: orgcard.txt in Makefile

2010-04-14 Thread Nathan Neff
On Tue, Apr 13, 2010 at 2:33 AM, Christian Egli wrote:

> Hi
>
> Nathan Neff  writes:
>
> > I'd like to use the orgcard.txt file that's included in the org-mode
> source.
> > I like being able to search through a text file for relevant keyboard
> > shortcuts.
> >
> > It doesn't seem like it's been updated since org version 6.10.
> >
> > I tried running make doc, but I don't think that orgcard.txt is generated
> in
> > the "make doc" task.
>
> AFAIK It is not.
>
> > Is orgcard.txt generated from orgcard.tex?  If so, can anyone tell me how
> > to do it?
>
> I presume that it is converted by hand. I tried a few automated tools
> (pdftotext, latex2html + w3m) but they all give very bad results.
>
> I would recommend to either
>
>  a) compare the existing orgcard.pdf and orgcard.txt and update the
> existing orgcard.txt accordingly or
>  b) cut'n'paste the text from a pdf viewer into emacs and do some magic
> with rectangles (as the text is in three columns) to achieve the
> desired result.
>
> Then submit the newest orgcard.txt as a patch so you will not have to
> keep it locally.
>
> Thanks
> Christian
>
>
Very cool.  I want to contribute back to org-mode, but I don't
want to manually modify orgcard.txt :-)

I will write a script that can parse the orgcard.tex file and pull out the
goodies that we want in the orgcard.txt file.

Regardless of whether that script is accepted into the org-mode base, I can
run the script when there's an update to orgcard.tex, then submit the
updated orgcard.txt.

I should have a quick & dirty script (Perl) done by next week.

Thanks,
--Nate


> --
> Christian Egli
> Swiss Library for the Blind, Visually Impaired and Print Disabled
> Grubenstrasse 12, CH-8045 Zürich, Switzerland
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Custom agenda - wrong type argument

2010-04-16 Thread Nathan Neff
On Wed, Apr 14, 2010 at 10:54 AM, Nathan Neff  wrote:

> I'm trying to build a custom agenda that works with the current buffer.
>
> I've succeeded in getting the agenda to display with the
> current buffer like this:
>
> (setq org-agenda-custom-commands
>   (quote (
>  ("c" "Current Buffer" agenda "" ((org-agenda-files (list
> (buffer-file-name)
>  ("f" "Home Buffer" agenda "" ((org-agenda-files
> '("~/Documents/personal/nate.org"
>  )
>   )
> )
>
> However, when I view the agenda for the current buffer (by pressing "c",
> every key I press gives me "Wrong type argument: stringp, nil".
>
>
I fixed it!  I found a fairly slick workaround for the problem.
Before calling (org-agenda), I set a variable called
njn/current-buffer-file-name, and refer to that variable in my custom agenda
view.

(defun njn/org-agenda ()
  (interactive)
  (setq njn/current-buffer-name (buffer-file-name))
  (org-agenda)
)

I have an example of the fixed and broken custom agenda commands below:

(setq org-agenda-custom-commands
  '(
 ("c" "Current Buffer" agenda ""
   ((org-agenda-files (list njn/current-buffer-name)))
 )
 ("x" "This doesn't Work.  It gets the right data, but wont
  let you issue any other agenda commands" agenda ""
   ((org-agenda-files (list (buffer-file-name
 )
   )
)

Instead of calling (org-agenda), I just call (njn/org-agenda)

(global-set-key (kbd "") 'njn/org-agenda)

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [Babel] Macro for begin_src?

2010-04-16 Thread Nathan Neff
I've been converting my init.el file to org-babel, and am getting tired of
copying/pasting or typing the begin_src and end_src blocks.

Example:
#+begin_src emacs-lisp :results silent
#+end_src

As an Emacs n00b, I'd like to know if anyone here has defined some kind of
macro / shortcut to define an org-babel block.

I'd like a shortcut/macro that I could put into my config files, and put
into my git repo.

Thanks for any input,

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Babel] Macro for begin_src?

2010-04-16 Thread Nathan Neff
On Fri, Apr 16, 2010 at 8:18 PM, Nathan Neff  wrote:

> I've been converting my init.el file to org-babel, and am getting tired of
> copying/pasting or typing the begin_src and end_src blocks.
>
> Example:
> #+begin_src emacs-lisp :results silent
> #+end_src
>
>
*Sigh* I Googled around for about 15 minutes, then posted the question to
the mailing list. (I swear!)

Then, I stumbled upon Brent's Yasnippets when researching something totally
different.

http://doc.norang.ca/org-mode.html#Yasnippets

If anyone else has a different macro set up, I'm still interested in hearing
your solutions.

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [Babel] Macro for begin_src?

2010-04-16 Thread Nathan Neff
On Fri, Apr 16, 2010 at 9:35 PM, Dan Davison  wrote:

> Nathan Neff  writes:
>
> > On Fri, Apr 16, 2010 at 8:18 PM, Nathan Neff 
> wrote:
> >
> > I've been converting my init.el file to org-babel, and am getting
> tired of
> > copying/pasting or typing the begin_src and end_src blocks.
> >
> > Example:
> > #+begin_src emacs-lisp :results silent
> > #+end_src
>
> Hi Nate,
>
> By the way, if you are using :results silent for all your blocks, then
> you can just enter it once as a buffer property:
>
> #+property: results silent
>
> (and if you want it for a whole subtree but not a whole buffer, then set
> a property called :results: with value silent in the root of the
> subtree).
>
> I agree with the others about using yasnippets for blocks. I have src
> and elisp snippets (although to be honest I still haven't learned the
> syntax for defining them and I have trouble stopping them leaving
> annoying trailing spaces...ok thanks you made me fix that, although I
> still don't know the syntax, something like this then
>
> src:
>
> #+begin_src...#+end_src
> # --
> #+begin_src ${2:language}
> $0
> #+end_src
>
> elisp:
>
> #name : #+begin_src...#+end_src
> # --
> #+begin_src emacs-lisp
> $0
> #+end_src
>
>
>
Thanks!  I'm having trouble triggering the yasnippets using the TAB key, so
I'm just using the GUI menu.

Do you literally type "src" (no quotes), then press Tab?

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [Babel] Macro for begin_src?

2010-04-17 Thread Nathan Neff
What do you guys use for ditaa diagrams?

Just copy/paste?  Seems like it'd be a bit tedious to draw those boxes.

--Nate

On Sat, Apr 17, 2010 at 5:12 AM, Eric S Fraga  wrote:

> On Fri, 16 Apr 2010 21:23:35 -0500, Erik Iverson 
> wrote:
> > > http://doc.norang.ca/org-mode.html#Yasnippets
> > >
> > > If anyone else has a different macro set up, I'm still interested in
> > > hearing your solutions.
> > >
> >
> > Nope, yasnippet is the way to go I think!
>
> +1
>
> it might be nice to have a worg page on snippets for org-mode?  I'm
> happy to contribute a few.  The ones I use the most are these two:
>
> block:
> --8<---cut here---start->8---
> #name : #+begin_...#+end_
> # --
> #+begin_$1 $2
> $0
> #+end_$1
> --8<---cut here---end--->8---
>
> and
>
> figure:
> --8<---cut here---start->8---
> #name : figure
> # --
> #+attr_latex: width=$1\textwidth
> [[file:$2.pdf]]
> $0
> --8<---cut here---end--->8---
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Babel] Macro for begin_src?

2010-04-17 Thread Nathan Neff
On Sat, Apr 17, 2010 at 6:03 AM, Štěpán Němec  wrote:

> Dan Davison  writes:
> >> Thanks!  I'm having trouble triggering the yasnippets using the TAB key,
> so
> > I'm
> >> just using the GUI menu.
> >>
> >> Do you literally type "src" (no quotes), then press Tab?
> >
> > Yeah, but there's some magic code needed, which is also on Bernt's
> > page.
> >
> >   (add-hook 'org-mode-hook
> > (lambda ()
> >   ;; yasnippet
> >   (make-variable-buffer-local 'yas/trigger-key)
> >   (setq yas/trigger-key [tab])
> >   (define-key yas/keymap [tab] 'yas/next-field-group)))
>
> I'm guessing what you really want there is
>
> (set (make-local-variable 'yas/trigger-key) [tab])
>
> instead of
>
> >   (make-variable-buffer-local 'yas/trigger-key)
> >   (setq yas/trigger-key [tab])
>
>
Hmmm.

Do you guys un-map your TAB key so that it doesn't run org-cycle?
My TAB key will correctly trigger yas/insert-snippet in emacs-lisp mode.
However, in org-mode my TAB key is still mapped to org-cycle, even if I add
the org-mode hook using the code above.

Thanks,
--Nate



> The difference is that in the latter case you're making
> `yas/trigger-key' be automatically buffer-local for *all* buffers, not
> only in the buffer you're setting it (see e.g. the docstring of
> `make-variable-buffer-local').
>
>
>  Štěpán
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [Babel] Macro for begin_src?

2010-04-17 Thread Nathan Neff
On Sat, Apr 17, 2010 at 9:06 AM, Erik Iverson  wrote:

>
> I'm guessing what you really want there is
>>
>>(set (make-local-variable 'yas/trigger-key) [tab])
>>
>>instead of
>>
>> >   (make-variable-buffer-local 'yas/trigger-key)
>> >   (setq yas/trigger-key [tab])
>>
>>
>> Hmmm.
>>
>> Do you guys un-map your TAB key so that it doesn't run org-cycle?
>> My TAB key will correctly trigger yas/insert-snippet in emacs-lisp mode.
>> However, in org-mode my TAB key is still mapped to org-cycle, even if I
>> add the org-mode hook using the code above.
>>
>> Thanks,
>> --Nate
>>
>>
> The order you do it might matter?
>

I found the problem -- it's detailed right here, and it's tailored to fix
compatibility with org-mode:
http://yasnippet.googlecode.com/svn/trunk/doc/faq.html

--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] indented items in agenda searches

2010-04-23 Thread Nathan Neff
I just found the setting "org-tags-match-list-sublevels",
and think it's really cool for viewing agenda searches.

For example, if you search for a tag "project" using an agenda search
on the following data:

* Cake   :project:
** Ingredients
*** Apples
*** Oranges
* Clean Room  :project:
** Vacuum
** Dust

You would see the items indented with periods in the agenda view, like this:

  foo:Cake
:project:
  foo:.Ingredients
  foo:..Apples
  foo:..Oranges
  foo:Clean Room
:project:
  foo:.Vacuum
  foo:.Dust

However, the indents only show up when I perform an agenda search.

If these items all were TODO items, then the indentation goes away.

Is there a setting to see the indents all the time in the agenda? Or a way
to do it in a custom search?

Thanks,
--Nate
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: declaring items as implicit TODO entries

2010-04-26 Thread Nathan Neff
On Mon, Apr 26, 2010 at 3:01 AM, Nick  wrote:

> Manish Sharma wrote:
> > "C-c a t" should show all the TODO items.  You may also want to
> > take a look at "org-agenda-todo-ignore-deadlines",
> > "org-agenda-todo-ignore-scheduled" and
> > "org-agenda-todo-ignore-with-date" as well.
>
> Thanks for your answer - however, I did come across those, and I don't
> believe
> they would do the job I have in mind, because items must still be
> explicitly
> labelled "TODO" before they will appear in the agenda view.
>
>
Nick,

Try using "m" instead of "t":

C-c a m LEVEL>2/-DONE RET

The "m" does a general tags/props search, instead of requiring a TODO state.

--Nate


What I mean is, give a file structure like this, where level 1 is a project
> name, and level 2 contain items to do (which are not labelled TODO items,
> necessarily):
>
> * SS Organised
> ** scrub the deck
> ** man the poopdeck
> ** DONE splice the mainbrace
>
> * Good ship lollipop
> ** NEXT lubber's teeth out
> (Beware, she bites)
> ** fix treadmill
> ** scrub the deck
>
> The workflow is TODO -> NEXT -> DONE, with TODO implicit: I consider "scrub
> the
> deck" a TODO, even though I've not added a TODO label, because it's on
> level >=
> 2. This saves typing and reduces clutter. (The level at which TODO items
> lie
> varies depending on my organisation scheme.)
>
>
> Then I want the TODO agenda view to look something like this, so I can
> print it
> out for reference (ideally without the duplicate TODO inserted in front of
> each
> item, as currently seems to happen,  but that's probably another question):
>
> Global list of TODO items of type: ALL
> Available with `N r': (0)ALL (1)TODO (2)NEXT (3)DONE
>  TODO:   scrub the deck
>  TODO:   man the poopdeck
>  NEXT:   lubber's teeth out
>  TODO:   fix treadmill
>  TODO:   scrub the deck
>
>
>
> It might not be possible to do this currently, which is fine - I just want
> to
> confirm that fact.  Perhaps in that case I could write my own extension, or
> more
> preferably, adapt my scheme to something which works with org-mode as it
> is.
>
> Cheers,
>
> N
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Suggestions needed for handling "ideas"

2010-04-26 Thread Nathan Neff
On Sun, Apr 25, 2010 at 2:46 AM, John Wiegley  wrote:

> On Apr 12, 2010, at 3:46 PM, Ali Tofigh wrote:
>
> > Frequently my notes on meetings contain ideas for stuff to try. Does
> > anyone have any advice on how to handle these?
>
> Hi Ali,
>
> For ideas I just use a done TODO state called "NOTE".  I have the key M-z
> bound to create one and switch me to the Org-buffer, so that I can stay
> there and keep typing.
>
>
Same here -- I just use the SOMEDAY todo state for both ideas and things
that I really want to do someday.

Previously, I would use a separate IDEA and SOMEDAY states, but the two
concepts are similar enough that I combined them.

--Nate


> John
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Does anyone use "Jump" C-c C-j

2010-04-28 Thread Nathan Neff
On Wed, Apr 28, 2010 at 12:42 PM, David Frascone  wrote:
>
>  Jump - seems really hard to use.
>

I agree -- I've been on a quest to easily navigate my org-files also.

> C-c C-j.  Opens help window with cursor in it, so I have to C-x o to
> get to Org-goto window.

I use Aquamacs, and the help window sometimes pops out, and sometimes
stays in the main frame.  It's annoying.

>Then, once in the goto window, hitting tab
> opens the subtree, but pressing a down arrow again goes back to the
> top.  Seems very useless for actually finding anything.  Am I using it
> wrong?  Dropping a mark and C-x C-x seems much easier.

I would also like to know how to best navigate the *org-goto* buffer.
I can jump back & forth between search results using C-s and C-S s
but it seems very clumsy.

Personally, I've been using M-x occur
I have M-n and M-p bound to next-error and prev-error, to go back & forth
between search results.

HTH,

--Nate

> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Questions about creating new nodes (headings)

2010-04-28 Thread Nathan Neff
On Wed, Apr 28, 2010 at 12:41 PM, David Frascone  wrote:
> Here are two questions (or maybe one question, and a bug report) from my
> note taking while reading the manual.
>
> * Best way to make next menu item?  M-Enter seems to work pretty well.
> I'm not to happy with the way org-mode adds a blank line after a block
> of text when doing C-S-RET from the entry line, and M-RET from the
> block of text.  Do most of you have a blank line after your text
> blocks, but before the next entry?

I think you want to customize the org-blank-before-new-entry variable.

http://orgmode.org/worg/org-faq.php#blank-line-after-headlines-and-list-items



 * C- does not seem to do what the info page suggests.
> It seems to go into a column selection mode.  Which, by itself, is
> very useful, and I'll have to remember that.   I can't seem to find
> the C- behavior anywhere (jump over the body, and add a new
> heading at the same level. C-S- Does do what it is supposed to,
> so, I guess a good workaround is C-S-, then backspace over the TODO.

I think this is an Aquamacs thing -- Aquamacs overrides the C-Ret binding with
some cua-set-rectangle-mark function that I know nothing about.

What I have found is that C-Ret runs "org-insert-heading-respect-content",
(except on Aquamacs).

Anyway, M-Ret will do the *same thing* (to the best of my knowledge)
/if/ you have this setting:

(setq org-insert-heading-respect-content t)

And I think that most people that use org-mode do indeed set
org-insert-heading-respect-content.

So, I don't bother w/C-Ret, and just use M-Ret all the time, after
setting the above variable to 't
HTH,

--Nate


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Final Question: Usage

2010-04-28 Thread Nathan Neff
On Wed, Apr 28, 2010 at 12:57 PM, David Frascone  wrote:
>
> I'm still using a monolithic file to inplement my DGTD (Dave's GTD).  I'm
> not as anal as TOD (The other Dave, Dave Allen), and I don't run a strict
> inbox.
>
> What I do want is:
> 1)  a place to keep track of live projects, bugs, conversations, etc.
> 2) A place for notes
> 3) A place to track TODO's
> 4) A way to archive off done stuff.
>
> So far, orgmode does the above with ease.  But, I am starting to run into
> walls.
>
> Organization:  I'm using one monolithic file now.  And, agenda mode doesn't
> know about it till I add it.  Should I be using agenda mode to track todos?
> (This goes with my calendar questions a bit in the other mail).  If I do use
> agenda mode, how do I add multiple files?
>
> How do I work with multiple files?  Is there an easy way to jump back and
> forth from them, if I start making one file for Bugs, one for Escalations,
> one for projects, one for notes, etc?
>
> Finally -- and this is my biggest stumbling block:  Status reporting
> I'm looking for some way to generate a status report of what I've been
> working on.  So, this report should contain anything that has been modified
> in the last week.  (I drop date stamps a lot).  Also, the report should
> include extra flagged items, even if they did not get work.  (i.e.
> Background tasks that are starving should be noted -- but, since not all
> tasks / entries are background tasks, I'd make some custom tag, like,
> "reportme" that should be reported, regardless)
>
> I'm trying to generate a status view like that, export to HTML, and e-mail
> it to my pointy haired boss . . . . any way to do that?
>
>

David, this is a good opportunity to point you towards some of the
things that have
helped me the most w/org mode.

First, before I posted a question to the list, I would search the mailing
list archive on gmane.  There's a Search box right on the main org-mode page
http://orgmode.org/index.html#sec-5_2

Second, Bernt's org-mode website is awesome -- he goes through every detail
about how he uses org-mode, /and/ he shows you the settings and keyboard
shortcuts that he uses:

http://doc.norang.ca/org-mode.html

Third, Worg has some awesome tutorials by misc. people:
http://orgmode.org/worg/

And finally, I would recommend that you split up e-mails like this into specific
questions.  For example, this e-mail contained at least 2 big
questions -- how to
store your org files, and how to create pointy-haired status reports
:-)  Both of those
subjects are very broad, so in the future I suggest breaking your
e-mail into at least
two or more e-mails.

HTH,

--Nate


> -Dave
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Frequently used files/headings

2010-04-29 Thread Nathan Neff
Currently, I'm using org-id-get-create to generate a unique ID
for headings that I frequently go to in org-mode.

* Foo
:PROPERTIES:
:ID: F3B14102-A66D-408C-8833-1F9CF7E5047C
:END:

Then, I copy the newly created ID to the kill-ring,
and paste it into a block like this:

(global-set-key (kbd " f") (lambda () "Goto Foo Org File"
(interactive)
(org-id-goto "F3B14102-A66D-408C-8833-1F9CF7E5047C")))

This will map F6-f to jump to Foo.

I know that there are many ways to navigate org-files, but using the
ID is great because it requires only two keystrokes.

This works pretty good, except I'd like to improve three things:

1)  I'd like to be able to see a menu of where I've mapped my shortcuts
2)  I'd like to simplify the creation of these IDs and shortcut keys.
3)  I have about 10 quick-keys now, so I have 30 lines of very similar code

I'm sensing an org-babel type approach where I could define an org-mode
table like this:

| Name | Key   | ID |
| Foo| " f"  | 123456779 |

Then, I could loop through the table, and for each row, I could
run this code:

(global-set-key (kbd ) (lambda () 
(interactive)
(org-id-goto )))

Before I do something like this, I'd like to know if anyone's done something
similar or if anyone wants to chime in.

Thanks!

--Nate


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Vim folding/syntax highlighting?

2010-04-29 Thread Nathan Neff
Does anyone know of an org-mode syntax file and/or folding definition
for Vim?

I use Vim quite a bit, and would like to have *.org files highlighted nicely.

I'd also like to use Vim's folding capabilities to be able to fold the
headlines like org-mode does.

I'll probably write a syntax file and a folding method if nobody
knows of any existing ones.

Thanks,
--Nate


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] only display a scheduled item if it is due today or in the past

2010-05-03 Thread Nathan Neff
On Sun, May 2, 2010 at 12:37 PM, Nathaniel Flath  wrote:
> Hello,
> One thing I've wanted from org-mode is the ability to have certain items
> 'hidden' from the agenda until the day they are scheduled - this patch
> implements this for all properties who have a STYLE property of 'hidden'.
> I ended up implementing this(the patch is attached), and thought I'd
> contribute it to org-mode. If you have any comments, please let me know.
>
> Thanks,
> Nathaniel Flath
>

+1 for this functionailty

This is great for "repeating" things that I don't want to have
littering up my agenda, such as "Check Org-Mode Mailing List".

Org-habit uses similar functionality, except that I don't want to see
the habit-grid.

--Nate
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] Future of Org-babel?

2010-05-05 Thread Nathan Neff
Guys,

Is there a project/TODO/Wish list for Org-babel?

I'd like to give a presentation on Org-babel at the Strange Loop
conference in St. Louis
in October.

http://strangeloop2010.com/

The Strange Loop conference attracted a lot of very smart people that
I think would
be interested in contributing to Org-babel, particularly because it's
a young project.

There's plenty more languages that Org-babel could support, so that's
one area that
I could mention needs help.

But, I'd like to point out some of the advanced/aim-for-the-sky ideas
that you guys have
for Org-babel -- that would really spark some interest in the crowd.

What would you say are the most aggressive / cool features that you're
considering for Org-babel?

Thanks,
--Nate


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Frequently used files/headings

2010-05-06 Thread Nathan Neff
On Thu, Apr 29, 2010 at 10:47 AM, Nathan Neff  wrote:
> Currently, I'm using org-id-get-create to generate a unique ID
> for headings that I frequently go to in org-mode.
>
> * Foo
> :PROPERTIES:
> :ID: F3B14102-A66D-408C-8833-1F9CF7E5047C
> :END:
>
> Then, I copy the newly created ID to the kill-ring,
> and paste it into a block like this:
>
> (global-set-key (kbd " f") (lambda () "Goto Foo Org File"
>    (interactive)
>    (org-id-goto "F3B14102-A66D-408C-8833-1F9CF7E5047C")))
>
> This will map F6-f to jump to Foo.
>
> I know that there are many ways to navigate org-files, but using the
> ID is great because it requires only two keystrokes.
>
> This works pretty good, except I'd like to improve three things:
>
> 1)  I'd like to be able to see a menu of where I've mapped my shortcuts
> 2)  I'd like to simplify the creation of these IDs and shortcut keys.
> 3)  I have about 10 quick-keys now, so I have 30 lines of very similar code
>
> I'm sensing an org-babel type approach where I could define an org-mode
> table like this:
>
> | Name | Key       | ID |
> | Foo    | " f"  | 123456779 |
>
> Then, I could loop through the table, and for each row, I could
> run this code:
>
> (global-set-key (kbd ) (lambda () 
>    (interactive)
>    (org-id-goto )))
>

I've made some progress on this, and I've defined a table like this:

#+tblname:navigation-shortcuts
| Foo Org File|| 733BD03F-0938-432F-B59A-BE235A2DE7E2 |
| Bar Org File||  123456 |

I would like to map a function that iterates over the items in the
table, and maps
the keyboard string in column 2 to the ID in column 3.

I tried something like this, but all I get is "Wrong type argument:
integer-or-marker-p, (quote (second shortcut-def))"

#+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
#+begin_src emacs-lisp
 (defun map-navigation-shortcuts (shortcut-def)
(global-set-key (kbd (second shortcut-def)) (lambda () "Goto Foo Org File"
(interactive)
(org-id-goto '(third shortcut-def)

(mapcar #'map-navigation-shortcuts navigation-shortcuts)

#+end_src

Can anyone point out where I'm going wrong?

Thanks,
--Nate


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Wow -- adding images to an org file

2010-05-06 Thread Nathan Neff
I just saw Andreas's screenshot here:

http://orgmode.org/worg/org-screenshots.php

If you zoom in to his screenshot,
http://orgmode.org/img/screenshots/org_andreas.jpg

You can see how he adds images to his org files.
All that I had to do was put this into my emacs init file:

(defun org-dblock-write:image (params)
  (let ((file (plist-get params :file)))
 (clear-image-cache file)
 (insert-image (create-image file) )))

Then, put this in an org-file:

#+BEGIN: image :file "~/Documents/personal/foo.png"
#+END

And run C-c C-c (or is it C-c C-x C-u)?

Anyway, Cool stuff!

--Nate


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Frequently used files/headings

2010-05-10 Thread Nathan Neff
On Mon, May 10, 2010 at 6:35 AM, Štěpán Němec  wrote:
> Nathan Neff  writes:
>> I tried something like this, but all I get is "Wrong type argument:
>> integer-or-marker-p, (quote (second shortcut-def))"
>>
>> #+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
>> #+begin_src emacs-lisp
>>  (defun map-navigation-shortcuts (shortcut-def)
>> (global-set-key (kbd (second shortcut-def)) (lambda () "Goto Foo Org File"
>>     (interactive)
>>     (org-id-goto '(third shortcut-def)
>>
>> (mapcar #'map-navigation-shortcuts navigation-shortcuts)
>>
>> #+end_src
>>
>> Can anyone point out where I'm going wrong?
>
> I haven't tried your code, but the way you call `kbd' is obviously
> wrong.
>
> `kbd' is a macro and does not evaluate its arguments; try
> using `read-kbd-macro' instead.

Stepan,

Thanks for your help -- The keyboard shortcut is now being mapped
correctly, but
whenever I press  a, I get "Symbol's value as a variable is void:
shortcut-def"

I suspect that (lambda()) is not evaluating (org-id-goto (third
shortcut-def)).  I need some way to do that.

I would really like to know an "acceptable" or "standard" way to
implement this feature -- I think it would help me a lot with learning
Lisp & functional languages.  Any help is appreciated!

Here's my new code:

#+tblname:navigation-shortcuts
| Vim |  a   | 733BD03F-0938-432F-B59A-BE235A2DE7E2 |

#+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
#+begin_src emacs-lisp
(defun map-navigation-shortcuts (shortcut-def)
(global-set-key (read-kbd-macro (second shortcut-def))
  (lambda ()
(interactive)
(org-id-goto (third shortcut-def ;; this line is not
evaluated inside lambda()
)

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Frequently used files/headings

2010-05-11 Thread Nathan Neff
> Another way would be to use `lexical-let' from the CL package, i.e.:
>
>  (global-set-key (read-kbd-macro (second shortcut-def))
>                  (lexical-let ((shortcut-def shortcut-def))
>                    (lambda ()
>                      (interactive)
>                      (org-id-goto (third shortcut-def)
>
> should do what you want.
>
>  Štěpán
>

This is very cool!

Here's the final source code for defining shortcuts to headings in
org-mode files, if anyone's interested:

* Fast Navigation to Files
  :PROPERTIES:
  :ID:   FC8A103B-5959-4A13-9735-F175C36CDC01
  :END:
  - Create an ID using org-id-get-create (See the :ID: in
the :PROPERTIES: for this heading)
  - Put that ID in the table below, along with your favorite shortcut
sequence and a description
  - See "Nav Shortcuts" below for an example
  - Save oodles of time with your shortcuts, but waste the time
writing lisp code to implement the shortcut list :-)


#+tblname:shortcut-definition-list
| Appointments   |  a| A33F7A0C-F974-4C7F-A4FD-1AAA6CF9C60E |
| Foo Org File   |  f| F3B14102-A66D-408C-8833-1F9CF7E5047C |
| Home   |  h| 772DFBDD-38A3-4E92-8860-6904CC9D4F49 |
| Nav Shortcuts  |   | FC8A103B-5959-4A13-9735-F175C36CDC01 |


#+srcname: map-nav(shortcut-definition-list=shortcut-definition-list)
#+begin_src emacs-lisp
(defun map-navigation-shortcuts(shortcut-def)
(global-set-key (read-kbd-macro (second shortcut-def))
 (lexical-let ((shortcut-def shortcut-def))
   (lambda ()
 (interactive)
 (org-id-goto (third shortcut-def))
(mapcar #'map-navigation-shortcuts shortcut-definition-list)
#+end_src

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [PATCH] only display a scheduled item if it is due today or in the past

2010-05-27 Thread Nathan Neff
On Sat, May 22, 2010 at 11:27 AM, Matthew Lundin  wrote:
> Nathaniel Flath  writes:
>
>> Yes, this patch is primarily for weekly agendas - it changes when items
>> are displayed to be the same as having a style of 'habit, while also
>> allowing to do it for non-recurring items.
>
> Do you mean that it is the same as when
> org-habit-show-habits-only-for-today is set to t?

>From what I gather, it is almost the same except that the agenda entry
does NOT show the habit-grid.

>> org-agenda-repeating-timestamp-show-all doesn't do quite what I want -
>> I want the item to not show on my weekly agenda if it isn't scheduled
>> for today, where that will make it show a maximum of once.
>>
>> I'd be wiling to write a personal skip function - I mainly did it this
>> way because I was emulating org-habit, and then I thought it may be
>> useful to other people.  This is what I'll fall back to if you decide
>> not to install this patch.

Nathaniel, can you forward me your personal skip function if you write one?

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [PATCH] only display a scheduled item if it is due today or in the past

2010-06-23 Thread Nathan Neff
On Sat, Jun 5, 2010 at 11:38 PM, Carsten Dominik
 wrote:
>
> On Jun 4, 2010, at 2:51 PM, Matthew Lundin wrote:
>
>> Hi Carsten,
>>
>> Carsten Dominik  writes:
>>
>>> can someone please summarize what the status of this discussion is?
>>>
>>> I have lost track

I apologize for commenting on this issue again, but I wanted to share
my solution.

First, maybe my use-case is slightly different than everyone else's,
but here it is:

I'm looking for jobs currently, and I want a reminder to Check
Monster.com every two days.

But, I do not want this item to show up in my weekly agenda 3 separate
times.  I tried org-habit, but I do not want the red/green habit graph
showing up in my agenda.  It's just a personal preference.

So, I set up an item like this:

*** TODO Check Monster.com
SCHEDULED: <2010-06-16 Wed .+2d>
:PROPERTIES:
:STYLE:habit
:END:

I tried the skip-function mentioned here, and couldn't get it to work,
so I tried org-habit again, and I found that if I set

org-habit-show-habits-only-for-today to not-nil
and if I set
org-habit-graph-column to -1 then it successfully hides the graph.

So, that's my solution, and it's great for only seeing these "habits"
once, and not littering up my agenda with future TODOs with these
habits.
I'm using Org 6.35

Hope this helps,

--Nate
>>
>> As I understand it, the proposed patch hides items scheduled in the
>> future in the weekly agenda. E.g., if it is Monday, tasks scheduled for
>> Friday with a "STYLE=hidden" property would not appear under the Friday
>> slot in the weekly agenda.
>>
>> I believe this is a perfect scenario for a skip-function. I offered an
>> example in this post:
>>
>> http://thread.gmane.org/gmane.emacs.orgmode/24856/focus=25595
>>
>> If you do decide to apply the patch, I would request that an option be
>> added to turn off the check for a STYLE=hidden property, so as to
>> minimize any undesired expenses in constructing the agenda.
>>
>> My argument is that if a test can be accommodated by current
>> configuration options (e.g., the skip-function) and is unlikely to be
>> invoked by a significant number of users, it should not be
>> hard-coded.
>
> Thanks Matt.  I follow your argument.  This certainly should
> be configurable, but in fact I think this can indeed easily
> be done with a skip function like you showed.
>
> And I do not understand the point of the weekly agenda.  The
> whole point of the weekly agenda is to show what will be
> coming up during he next dasy, so in a way hiding items that
> are scheduled on those days is defeating the purpose of the
> weekly agenda.
>
> Greetings
>
> - Carsten
>
>>
>> Best,
>> Matt
>>
>
> - Carsten
>
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [ANN] Org-babel integrated into Org-mode

2010-06-23 Thread Nathan Neff
I checked out the latest org mode, and I'm getting "Symbol's function
definition is void: second"

I ran git-bisect, and the error was introduced with the merge of
org-babel into the main
branch.

The code that's causing the error is here:

#+tblname:shortcut-definition-list
| Something   |  a| A33F7A0C-F974-4C7F-A4FD-1AAA6CF9C60E |

#+srcname: map-nav(shortcut-definition-list=shortcut-definition-list)
#+begin_src emacs-lisp
(defun map-navigation-shortcuts(shortcut-def)
(global-set-key (read-kbd-macro (second shortcut-def))
 (lexical-let ((shortcut-def shortcut-def))
   (lambda ()
 (interactive)
 (org-id-goto (third shortcut-def))
(mapcar #'map-navigation-shortcuts shortcut-definition-list)



This is the cool "use a table to map keyboard shortcuts" code that was
given to me in this conversation:

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg24971.html

I've verified that the above code works with org-babel outside of the
main branch, at this commit:
commit a3cc050a9675127f4f9fb85ba30cb5c0b4417cf8
Author: Eric Schulte 
Date:   Fri Apr 30 13:03:38 2010 -0600

Any ideas?

Should I try to find the exact commit where it starts failing?

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [PATCH] only display a scheduled item if it is due today or in the past

2010-06-27 Thread Nathan Neff
On Sat, Jun 26, 2010 at 2:00 AM, Livin Stephen Sharma
 wrote:
>
>  To to 'hide' the graph, I set both org-habit--days to 0 
> .
>
>

Very cool -- that will get rid of the error that shows up at the bottom of
my agenda.  The error says something about the datatype of
org-habit-graph-column :-)


>
> On Jun 24, 2010, at 05:25:07 , Nathan Neff wrote:
>
>> org-habit-graph-column to -1 then it successfully hides the graph.
>
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org-jekyll - org-publish-initialize-files-alist

2010-06-29 Thread Nathan Neff
Some time ago, I set up a blog using org-jekyll.  I recently tried
to publish my blog, but when I run:

org-jekyll-export-blog

I get the message:  Symbol's function definition is void:
org-publish-initialize-files-alist

I grepped for this function, and noticed that it is now defined in
org-protocol.el
using (declare-function org-publish-initilialize-files-alist "org-publish"),
whereas before, the function was declared in org-publish.el

Can anyone help with this problem?

I tried putting this in my emacs, but it didn't work:
(require 'org-protocol.el)
(require 'org-publish)
(require 'org-jekyll)

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-jekyll - org-publish-initialize-files-alist

2010-06-30 Thread Nathan Neff
On Wed, Jun 30, 2010 at 6:45 AM, Sebastian Rose  wrote:
> Nathan Neff  writes:
>> Some time ago, I set up a blog using org-jekyll.  I recently tried
>> to publish my blog, but when I run:
>>
>> org-jekyll-export-blog
>>
>> I get the message:  Symbol's function definition is void:
>> org-publish-initialize-files-alist
>>
>> I grepped for this function, and noticed that it is now defined in
>> org-protocol.el
>> using (declare-function org-publish-initilialize-files-alist "org-publish"),
>> whereas before, the function was declared in org-publish.el
>>
>> Can anyone help with this problem?
>>
>> I tried putting this in my emacs, but it didn't work:
>> (require 'org-protocol.el)
>> (require 'org-publish)
>> (require 'org-jekyll)
>>
>> Thanks,
>> --Nate
>
>
> Nathan,
>
> I cannot find a file named org-jekyll.el or similar.
>
> But I guess `org-publish-initialize-files-alist' is just called to find
> a project the current files belongs to.
> If that is the case, you simply remove the call to that function and use
>
>  (let ((project
>         (org-publish-get-project-from-filename buffer-file-name)))
>   
>
>
> If you encounter any problems, I'll be glad to help.
>
>
>
>   Sebastian
>

Thanks for your replies -- I don't know too much about the inner workings of
org-jekyll, so I might forward this to the author.  In the meantine,
if anyone wants to take a poke at this, I would appreciate it.  I can
always revert to a prior version of org when I want to publish, so I'm
not being held back.

Below is the code where org-publish-initialize-files-alist is called
in org-jekyll.
It looks like in both cases, the code is trying to figure out what
project the current
file belongs to.  Can anyone suggest a fix?  I don't mean to push this
on anyone, but I really don't know lisp that well.

(defun org-jekyll-export-current-entry ()
  (interactive)
  (save-excursion
(org-publish-initialize-files-alist) ; <here
(let ((project-name (cdr (assoc (expand-file-name (buffer-file-name))
org-publish-files-alist
  (org-back-to-heading t)
  (org-jekyll-export-entry project-name

And another time here:

(defun org-jekyll-export-blog ()
  "Export all entries in project files that have a :blog: keyword
and an :on: datestamp.  Property drawers are exported as
front-matters, outline entry title is the exported document
title. "
  (interactive)
  (save-excursion
(org-publish-initialize-files-alist) ;; < -- here
(setq org-jekyll-new-buffers nil)
(mapc
 (lambda (jfile-project)
   (let ((jfile (car jfile-project))
 (project (cdr jfile-project)))
 (if (string= (file-name-extension jfile) "org")
 (with-current-buffer (org-get-jekyll-file-buffer jfile)
   (org-map-entries (lambda () (org-jekyll-export-entry project))
"blog|BLOG")
 (org-publish-get-files (org-publish-expand-projects
 (list (org-publish-get-project-from-filename
(buffer-file-name) 'up)
(org-release-buffers org-jekyll-new-buffers)))

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Good way to try new org-mode code?

2010-06-30 Thread Nathan Neff
I'm using git to track org-mode, and would like to know if there's a way
to switch branches / mess with code in org-mode without having to
run make and make install when I want to test the new code.

Currently, I have org-mode code in my ~/.emacs.d/src/org
directory, and I add this directory to my load-path in my emacs file:

;; Add org-mode to path
(setq load-path (cons "~/.emacs.d/src/org/contrib/lisp" load-path))
(setq load-path (cons "~/.emacs.d/src/org/lisp" load-path))

If I switch branches, or change some code in the above directory,
I don't think the new code is used by emacs unless I run

make clean && make && sudo make install

Is there a way to have emacs read the org-mode source code "on the
fly" without having to run make, make install, etc?

Is there a way to run new code without restarting Emacs?

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Insert TODO or plain heading depending on context

2010-08-05 Thread Nathan Neff
Sorry for a rudimentary question, but someone almost certainly has
done this before:

I'd like define a function that would:
a) Create a new heading if the cursor is on a heading or the body of a heading.
or
b) Create a new TODO heading if the cursor is on a TODO heading or the body
of a TODO heading.

Essentially, it would be a "smart" function to either press M-Return
or M-S-Return,
depending on the context.

I realize I can press M-Return to always create a new heading, and
M-S-Return to always create a new TODO, but I'd like to eliminate
an extra keypress for the most common cases.

Any ideas?

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Insert TODO or plain heading depending on context

2010-08-10 Thread Nathan Neff
Sorry for the bump -- maybe I'll phrase the question differently 

Is there a function in org-mode that returns the TODO
status of the heading that the cursor is currently in?

Thanks,
--Nate

On Thu, Aug 5, 2010 at 10:43 AM, Nathan Neff  wrote:
> Sorry for a rudimentary question, but someone almost certainly has
> done this before:
>
> I'd like define a function that would:
> a) Create a new heading if the cursor is on a heading or the body of a 
> heading.
> or
> b) Create a new TODO heading if the cursor is on a TODO heading or the body
> of a TODO heading.
>
> Essentially, it would be a "smart" function to either press M-Return
> or M-S-Return,
> depending on the context.
>
> I realize I can press M-Return to always create a new heading, and
> M-S-Return to always create a new TODO, but I'd like to eliminate
> an extra keypress for the most common cases.
>
> Any ideas?
>
> Thanks,
> --Nate
>

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Insert TODO or plain heading depending on context

2010-08-10 Thread Nathan Neff
On Tue, Aug 10, 2010 at 5:07 PM, Jan Böcker  wrote:
> On 08/10/2010 11:41 PM, Nathan Neff wrote:
>> Is there a function in org-mode that returns the TODO
>> status of the heading that the cursor is currently in?
>>
>
> Yes, try "org-get-todo-state". (Found this using C-h f, typing "org",
> then using I-Search in the completion buffer.)
> This returns something like this:
>
> #("NEXT" 0 4 (fontified t org-category #("org-dev" 0 7 (fontified t face
> org-property-value org-category "projects")) face org-todo))
>
> or nil if there is no TODO state.
>
> This syntax is new to me (elisp noob here), but the elisp reference told
> me it's just a string with text properties.
>
> The following code seems to accomplish your goal:
>
> (defun jb/smart-insert-heading ()
>  (if (org-get-todo-state)
>           (call-interactively 'org-insert-todo-heading)
>         (call-interactively 'org-insert-heading)))
>
> HTH, Jan
>

Thanks Jan, this helped a lot!  I appreciate the C-h f reminder -- I
have searched
through org.el and didn't come up with the right search terms.  This
should help me in
the future.

BTW, your function works perfectly!

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Print / export TODO Tree

2010-08-11 Thread Nathan Neff
Sorry if this is a FAQ, but is there a way to export or print a TODO tree?

Thanks,
--Nate

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Cannot open load file: inf-ruby

2010-09-02 Thread Nathan Neff
I'm having trouble getting ruby scripts to run in org-babel.

I'm running Org 7.01 trans.

With this example, I get the message "Cannot load file: inf-ruby" after
I press C-c C-c with the cursor on the #+begin_src line

#+begin_src ruby
puts "hello world"
return 1
#+end_src

I have ruby installed, and can run it from the command line.
I can run the following Python snippet just fine:
#+begin_src python
"boo"
return 3
#+end_src python

I've tried executing this line in my Scratch buffer and in the same buffer
that my ruby-code is in:


 (org-babel-do-load-languages
  'org-babel-load-languages
  '((R . t)
(ditaa . t)
(dot . t)
(emacs-lisp . t)
(gnuplot . t)
(haskell . nil)
(ocaml . nil)
(python . t)
(ruby . t)
(screen . nil)
(sh . t)
(sql . nil)
(sqlite . t)))

Can someone post a bare-bones setup that can run ruby scripts from
org-babel?

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [O] timetable view for org: found!

2011-07-07 Thread Nathan Neff
This is most excellent.  Nice view of TODO items, etc.

On Thu, Jul 7, 2011 at 2:25 PM, Russell Adams  wrote:
> Upvote +1!
>
> This is fantastic to see!
>
> I've just installed it and I can already see how useful this will be!
>
> On Thu, Jul 07, 2011 at 07:20:36PM +0200, Detlef Steuer wrote:
>> Hi all!
>>
>> The question for a timetable view for org-mode came up repeatedly.
>>
>> Today I found
>> https://github.com/kiwanami/emacs-calfw
>>
>> and you can call me impressed.
>> Check out the screenshots. Works nicely with org.
>>
>> Just to let you know.
>>
>> Detlef
>>
>>
>>
>
>
> --
> Russell Adams                            rlad...@adamsinfoserv.com
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>



[O] Use org for jobs/resume writing?

2011-07-18 Thread Nathan Neff
Sorry, I don't know the alt-key code for the "e" at the end of resume :-)

I was looking at the export-to-odt functionality and thought about
re-doing my resume (the content) in .org, then exporting it to .odt for
some cleanup / formatting.

Does anyone else do something similar?

I would also think that the HTML export would be useful for resume
writing.

Using org mode for resume writing would have some advantages, in my opinion.

* the ability to easily search / track the resumes that I've sent or concocted
* Much easier to alter / remove bullet points that you want to send to
a potential
employer.  For example, you could have a setup like this:

* Export
** Job #1
*** Did this
*** Did that
**

* Potential
** Job #1
*** Did something that doesn't pertain to the current job I'm sending
a resume to, but I want to keep this for later

I suck at Word/Open Office, so I cringe whenever I have to update my
resume.  Yet, when applying to jobs, it's really a good idea to
customize the resume to highlight experience & skills according to the
job you're applying for.

I tried using markdown & Latex for my resumes, but I couldn't get a
really good looking resume because I suck at Latex and couldn't find
any good looking Latex resumes on the 'Net that I liked.

Now that org has odt-export and of course HTML, etc. I'm re-thinking using .org
for resume writing.

Anyone else?

Thanks,
--Nate



[O] Remove orgx files

2011-07-18 Thread Nathan Neff
I've recently started using org-mode to export to html,
and I have empty .orgx files laying around in my directory.

Is there a way have the publish routine delete these .orgx files after
exporting,
or is there a way to specify that they should be created in ~/tmp or
something like that?

I can manually do it or put it in my batch script, but it seems like something
that should be done by org-mode, and I'm just missing something.

Thanks,

--Nate



Re: [O] Release 7.7

2011-07-28 Thread Nathan Neff
On Thu, Jul 28, 2011 at 9:33 AM, Michael C Gilbert  wrote:
> On Jul 28, 2011, at 3:47 AM, Bastien wrote:
>
>> Allow relative time when scheduling/adding a deadline
>> ==

How is this different from the previous behavior?  I thought it was always
possible to type +2d to schedule something 2 days in the future?

Thanks,
--Nate



  1   2   3   >