Re: [O] Export to multiple HTML files

2015-02-27 Thread Pete Ley
 This: https://github.com/mbork/org-one-to-many may be a starting point.
 It is a small library which splits an org file into many smaller ones.
 (Bug reports/feature requests welcome, btw.)  The main function returns
 the list of generated files, so you could #'mapc some export function
 over it.

Thanks! I'll check this out. It makes it a lot easier for another
project I'm working on involving Gopher, too.



Re: [O] Entering Repeating Scheduled Tasks in the Minibuffer

2014-12-10 Thread Pete Ley
PS  What is the meaning of (=F) that appears at the end of the
minibuffer?

I believe this means org has chosen the future option of an ambiguous
input. e.g., it is December 10th. I use C-c . to create a timestamp and
simply put in 9. The closest date that matches is December 9th, but
there is a setting (I think org-read-date-prefer-future) that makes it
prefer to choose a date in the future, so it is letting you know that it
is opting for the future date instead of the closest date.

I could be wrong, but that is my understanding.



[O] Conditionally export certain sections based on predefined types

2014-12-04 Thread Pete Ley
Not a great title, but I'm not sure how to explain what I want
succinctly. 

I'm trying to write a resume, and I'd like to be able to export
different versions of it for different things. For instance, I don't
necessarily want to include my hourly job experience when applying for a
programming job, and I'd like to exclude my programming and other
technical experience for certain job applications. 

I'm thinking something like this

* Work experience
** Some hourly job
   :PROPERTIES:
   :export-exclude: programming
   :END:

* Programming languages
  :PROPERTIES:
  :export-exclude: hourly
  :END:

Obviously it doesn't have to be properties, but I thought that was the
most clear way to explain what I'm looking for. So I'd like to be able
to export a specific type of resume, like a programming resume which
excludes hourly jobs or an hourly resume which excludes programming
language proficiency.

Is there a way to do this already? Is there a canonical way to create
this functionality? I'd rather not start hacking without a good idea of
how more knowledgeable users might tackle this.



Re: [O] Float placement in org-latex

2014-11-18 Thread Pete Ley
org-export-latex-image-default-option is just what I'm looking for, I
think. I figured making all the images smaller would do it, I just
didn't know if there was a way to do that without putting a #+ATTR_LATEX
on every image or something. Thanks!



[O] Float placement in org-latex

2014-11-15 Thread Pete Ley
Just a quick question for someone new to and quickly becoming enamored
with org-latex-export. 

I'm encountering a problem with my floats. Namely, I have a section with
not much text and several floats, it's probably about a page worth of
actual text and 7-10 gnuplot-generated graph images. I have the gnuplot
code inline in the text and the images are included from the #+RESULTS. 

My problem is that LaTeX keeps pushing them farther down the page until
some of them are at the end, after the appendices. Is there a way I can
maybe shrink the images to make them fit or force it to render them
inline even if it leaves some blank space on the page? I wouldn't mind
making them all quite small and having text flow around them but I'd
rather not have to put in these settings for each and every graph. Can I
do this as a default setting for all of them?

Is there a set of best practices for this kind of thing? Sorry if this
is a beginner question, but I haven't had much luck searching.



Re: [O] Org-mode Habit with Varying Description

2014-10-23 Thread Pete Ley
 All I've got now are a function that finds the logbook, and another that
 parses the log items and normalizes them: extracts the TODO
 states/timestamps/key-values and sets them as properties on the items
 themselves. Then you've got a pretty good basis from which to do
 reporting.

 Hooking into note-taking and todo state-change logging to prompt for
 values should be easy.

 I don't know yet how to approach the reporting part, mostly because I
 haven't sat down and thought about how this would be most useful. It
 will also require reading org-clock and org-habit in detail -- clearly
 reporting to a table like they do is the right way to go.

 How to get the most out of the data? I was thinking of having
 COLUMN_FORMULA and TABLE_FORMULA properties on the heading. When you
 report from the heading, each key in the logbook data creates a table
 column. Each column formula property creates another column, populated
 by that formula (presumably calculated from the data columns). Then the
 table formula gets slapped on to the bottom of it, and the whole thing
 runs.

 So if you had a heading like this:

 * TODO Anneal galoshes
   :LOGBOOK:
   GALOSHES: 15; CLOCK: [2014-10-15 Wed 09:07]--[2014-10-15 Wed 17:10] =  8:03
   GALOSHES: 13; CLOCK: [2014-10-14 Tue 08:50]--[2014-10-14 Tue 16:30] =  7:40
   GALOSHES: 14; CLOCK: [2014-10-13 Mon 09:30]--[2014-10-13 Mon 17:06] =  7:36
   :END:

 You'd end up with a table with two data columns. Then you could have a
 COLUMN_FORMULA property that created a third column, displaying galoshes
 annealed per hour. And a TABLE_FORMULA property that did... something...
 with all that information.

 In a sense, it's a bit like column view, except using logbook data
 rather than property values.

This sounds pretty great. I'd like to see the functions you have anyway,
seems like something the community might find useful. I know I could
find a few use cases for it.



Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Pete Ley
As Bastien said, this doesn't really fit the idea of a habit, but I
think there is a reasonable non-elisp way of tweaking it to fit. Maybe
it would help.

What if you had something like this:

* Read book
  :LOGBOOK:
  - Note taken on [2014-10-20 Mon 10:33] \\
151-300
  - Note taken on [2014-10-20 Mon 10:32] \\
1-150
  :END:
  :PROPERTIES:
  :STYLE:habit
  :END:

I do this sometimes for things like this. The heading doesn't need to
change as it can just be a reminder to read book and you can keep
track of what you've read in the notes with C-c C-z.

Optionally, if you have multiple books and you're reading different
amounts of each one each day, you can just write how much you plan to
read under the heading for each one, e.g.

* Read book
  100 pages each day
* Read book 2
  50 pages each day



Re: [O] Linked tasks

2014-06-25 Thread Pete Ley

 it seems to me that it's more 'depend' in the sense of 'this task has
 to be done for this other task to be doable'.

IIRC, the TRIGGER property in org-depend.el allows you to change the
state of another tree when the current one is marked done. I imagine you
could use it to have a clone task in another tree that is TRIGGERed to
change to done when the other is. 

Example

* Some tree
** TODO Update CV
   :PROPERTIES:
   :TRIGGER: cv-clone(DONE)
   :END:

* Some other tree
** TODO Update CV clone
   :PROPERTIES:
   :ID: cv-clone
   :END:



Re: [O] sharing my firsts, org babel tangle and init .org file

2014-04-18 Thread Pete Ley
I've looked at the solution on worg and, though I didn't actually try to
implement, it seems like tangling your init file every time you open
Emacs is a little cumbersome. Please correct me if I'm wrong in this
assumption. I also have a sync script hooked into my tangling that has
to do with exporting some of my config sections to my gopher site so
they're always up to date, so maybe it's just that my tangling
experience is especially involved. 

Here's what I do. Since I probably only edit my config ~10% of the times
that I open Emacs, it seems easier to just have a statically-tangled
init file, so I just basically use C-c C-v C-t instead of C-x C-s to
save my init.org. I also use somewhat customized init files on a few
different hosts which share the same .emacs.d. They share come common
functionality and differ slightly, so there are a few init files tangled
into ~/.emacs.d of the form hostname.el and the init.el file is
basically a switch which chooses which one to load on startup.

Short reference:
http://gopher.floodgap.com/gopher/gw?gopher://sdf.org:70/0/users/framling/emacs/init



[O] Conditionally display breadcrumbs in agenda view

2014-02-07 Thread Pete Ley
I know there is a way to display parent headlines using the agenda
prefix.

Is there a simple way to do this conditionally for certain subtrees?

Here's my use case. I have an org file machines.org for keeping track of
what I do to various machines I work on/administer (though I use that
term hesitantly and extremely lightly :)). I keep TODO items for each
machine for things like backups and updates. Sometimes I'll have an item
that has subtasks and I don't want to make the parent heading a TODO
item because it will clutter my agenda view. I just want the subtasks to
show, but I'd like to have some reference to the overarching task. 

For example:

* Tmux
** TODO Install
** TODO Set up basic keybindings
** TODO Fine tune config

These showing up on their own could be a little esoteric. What I've been
doing so far is just setting a CATEGORY property under Tmux so I can see
what the top task is, but ideally I'd like to be able to set just this
subtree to show Tmux/Install, etc in the agenda and everything else
display normally. Is this possible?

Thanks in advance
Pete



Re: [O] How not to show repetitive tasks in the TODO items of agenda view

2014-01-23 Thread Pete Ley
 The problem is that all the birthdays and repetitive tasks are cluttering my
 view in agenda TODO items (C-c a t).

 Is it possible to make these items show up only in the agenda view (C-c a a)
 and not in the TODO items list (C-c a t)

You could try define a custom agenda command to show all TODO items
except those with deadlines.

(setq org-agenda-custom-commands
  '((t TODOs without deadlines alltodo 
 ((org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline))

Try that for a start.

Pete



[O] Search for defined property

2014-01-22 Thread Pete Ley
I have trees in several agenda files with Effort properties and I'm
trying to make an agenda view that shows all trees with this property
defined. 

I know I can do 'M-x org-agenda m' to do a property search but this only
seems to work searching for properties with a specific value. I'd like
to see a list of all my trees I've committed Effort to. In my main org
file I have a clock report which includes the Effort property and this
works well for seeing Effort vs time worked, but for things I haven't
clocked in to yet obviously nothing shows up. 

Is there a way I can view all trees which have a certain property
defined or a (fairly simple) way to restructure the way I do things to
accomodate this? 

Thanks



[O] Holidays without fixed dates

2014-01-16 Thread Pete Ley
For instance, New Year's Day is always on January 1st, but something
like the start of Daylight Saving Time is always around the same time
but on the closest Sunday.

Is there a ready-made solution for working this sort of thing into the
agenda? So far I just have holidays in my agenda that have fixed dates
with ++1y repeat intervals on them. I'm just wondering if there exists a
solution or if I should make one. 

Thanks,
Pete



[O] Errors trying to add properties to clocktable

2013-11-04 Thread Pete Ley

Per section 8.4.2 of the manual, I'm trying to add a :properties column
to the clocktable. Here are my block settings:

#+BEGIN: clocktable :maxlevel 2 :scope agenda :block thisweek :properties 
CATEGORY :inherit-props

Now, my goal is to add a work commitment in hours per week to some of
the headings that will show up next to the actual clocked hours for the
week, but I'm using CATEGORY as a testing example.

The manual doesn't describe how to specify the property list, and since
I get an error (Wrong type argument: stringp, 67), I'm sure I must be
doing something wrong.

Sorry if this is a basic question, but I couldn't find anything about it
on google.

Pete



Re: [O] Adding and subtracting from clocked entries.

2013-11-04 Thread Pete Ley
Cecil Westerhof cldwester...@gmail.com writes:

As far as I know, you can do exactly this (the subtracting clock time
from one tree and adding it to another) but it's triggered on idle time,
so if you're working on something else in emacs it won't ask you to
resolve your idle clock time. 

 I am trying out clock in org-mode. Is it possible to add en subtract times?

 For example I am working on project A from 09:00 until 13:00. But during this
 period I also worked for fifteen minutes on project B. I would like to 
 subtract
 those fifteen minutes from project A and add them to project B. Can this be
 done?

 --
 Cecil Westerhof



Re: [O] Adding and subtracting from clocked entries.

2013-11-04 Thread Pete Ley
Cecil Westerhof cldwester...@gmail.com writes:

 I am still working, so it will not work I am afraid.

Hopefully some org-mode guru can come along and explain how to trigger
the functionality arbitrarily or by some other means, since the manual
says what you're looking for is definitely doable.



Re: [O] Having trouble with hidestars this morning

2013-11-04 Thread Pete Ley
Susan Cragin susancra...@earthlink.net writes:

 Hello. 
 Normally outlines are supposed to start up in hidestars view, which shows one 
 star per level, indented, thusly:

 * First Level 
   * Second
 * Third

 But after compiling both emacs and org-mode from git this morning, and 
 re-installing, my outlines show all the stars, and the stars cannot be turned 
 off. I've tried: 

I have the same problem. Hidestars is set in my init.el yet when I first
start up, it isn't functional. Then, after I view my weekly agenda, they
become hidden again. 



Re: [O] Babel Tangle issues

2013-11-02 Thread Pete Ley
Sam Flint swfl...@flintfam.org writes:

 I use org-babel to LP, and when I go to tangle, I get very little
 output, a shebang line and that is about it, I have noweb set to tangle,
 yet my references do not resolve.  Any ideas why?

Without seeing your specific setup, I can't say for sure, but I seem to
remember having a similar problem when I didn't set up my NAME lines
correctly with the code blocks I was trying to tangle. Can you post an
example of the code that isn't working?