[O] [PATCH] org-capture, :default-time and <...>

2014-07-08 Thread Erik Hetzner
Hi all,

I am pretty sure that the following org-capture setup used to work,
but it doesn’t seem to anymore. The intention is to manually select a
date and use this with a custom date format (e.g. %<%Y/%m/%d>). (The
custom date format is for ledger; I use this to capture ledger
transations.)

But it doesn’t work now (if it ever did – looking at git blame doesn’t
help me figure out why it might have worked) without the attached
patch, with passes along the custom time to format-time-string. Would
it be a problem if this patch were applied? Thank you.

best, Erik

(defun egh:org-capture-ledger-file ()
  (let* ((date (org-read-date nil t))
 (filename (format "~/c/finances/%s.lgr"
   (format-time-string "%Y" date
(org-capture-put :default-time date)
(set-buffer (org-capture-target-buffer filename))
(goto-char (point-max

(setq org-capture-templates
'(("c" "Cash" plain
 (function egh:org-capture-ledger-file)
 "%<%Y/%m/%d> * %^{Payee}
  Expenses:Erik:Cash
  Expenses:%^{Account}  $%^{Amount}"
 :empty-lines 1)))


-- 
Sent from my free software system .
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index cbdf6f7..54f207d 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1612,7 +1612,7 @@ The template may still contain \"%?\" for cursor 
positioning."
   ;; The current time
   (goto-char (point-min))
   (while (re-search-forward "%<\\([^>\n]+\\)>" nil t)
-   (replace-match (format-time-string (match-string 1)) t t))
+   (replace-match (format-time-string (match-string 1) ct) t t))
 
   ;; Simple %-escapes
   (goto-char (point-min))


[O] [ANN] Org-gamify

2014-07-08 Thread Paul Sexton
I have written a plugin for org agenda, which allows "gamification" of
task management. Define currencies, earn them by completing tasks, and
spend them on rewards. Inspired by HabitRPG, Epic Win and similar
systems.

http://bitbucket.org/eeeickythump/org-gamify

Note - I am well aware of existing criticisms of gamification. I have
significant reservations about many of its applications myself. However 
I am not going to enter into any debate about its desirability or 
ethicality. I have written some software to allow individuals to 
voluntarily experiment with gamifying aspects of their own task 
management systems, in order to find out whether it is enjoyable or 
useful for them.





Re: [O] [patch] [babel] Patches to fix tangling and variable transfer of tables in R

2014-07-08 Thread Rainer M Krug
Rainer M Krug  writes:

Just to ping these patches for application.

Cheers,

Rainer


> Nicolas Goaziou  writes:
>
>> Hello,
>>
>> Rainer M Krug  writes:
>>
>>> Attached please find two patches ready for application to fix that table
>>> variables were not usable adter tangling as temporary files were used.
>>> These patches were discussed in the thread "[babel][PATCHES] ob-R
>>> patches for review"
>>
>> I have not much to say about the feature, since I don't use R. Usual
>> nitpicking follows.
>>
>>> +(if (integerp value) (format "%s <- %s" name (concat (number-to-string 
>>> value) "L"))
>>> +  (if (floatp value) (format "%s <- %s" name value)
>>> +   (if (stringp value) (format "%s <- %S" name value) 
>>> + (format "%s <- %S" name (prin1-to-string value)))
>>
>> I think a `cond' would be more readable here.
>
> Amended patches attached.
>
>>
>>
>> Regards,

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpUyiBKyFB1K.pgp
Description: PGP signature


[O] What is the best in-Emacs presentation mode for org-files today?

2014-07-08 Thread Grant Rettke
Hi,

There are a lot of options for presentation from org, both inside of
Emacs and outside of it:

http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html

What are you opinions on the best mode for doing:
1. Presentations inside of Emacs
2. Using all the options available for org mode while in the presentation

Kind regards,

Grant Rettke | ACM, ASA, FSF, IEEE, SIAM
g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson



[O] emails written in Org Mode

2014-07-08 Thread Ken Mankoff
Hi Thorsten,  On a recent thread you wrote: 

... *outorg-edit-buffer* (where I write my message-mode email in 
full

org-mode).


I already write emails in emacs. I'm interested in being able to compose
emails using Org Mode. I see you use gnus. I use mu4e[1]. I wonder if
your setup is gnus-specific or might work with other emacs mail
clients. Will you provide some information about this?

Thanks,

 -k.

[1] http://www.djcbsoftware.nl/code/mu/mu4e.html



[O] An Org centric research lab: Goodbye MS word, excel, and powerpoint

2014-07-08 Thread Doyley, Marvin M.
Dear All,

Here is a link to a manuscript my research group produced completely with org
http://medicalimaging.spiedigitallibrary.org/issue.aspx. 

For the last 6 years, I have used org mainly for teaching (beamer),
productivity, outlining ideas, and note taking. Inspired by John
Kitchin's 2013 Scipy talk, I tried to encourage members of my research
group to use Org. Since the gentle approach didn't work, I made it 
mandatory requirement that all junior members must generate
manuscripts in org, and now I am seeing the fruits of this decision--- we are 
now a org-centric  research group :)

I would like to thank  Carsten and all the other contributors for creating such
an awesome research tool. 

Cheers,
M


Re: [O] Directly search for Headlines?

2014-07-08 Thread Samuel Wales
On 7/7/14, Ken Mankoff  wrote:
> "s" in agenda just saves all Org Buffers for me.

c-c a s

> My work-around is to search for "* Foo", but this doesn't find headlines
> with TODO items.

it should.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] SOLVED: source code block language 'makefile' and listings package

2014-07-08 Thread Thomas S. Dye
Aloha Rainer,

Rainer M Krug  writes:

>> You can configure the listings package with the commands
>> \lstnewenvironment and \lstset.  There is a worked example here:
>>
>> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12-4
>
> Much simpler then that: I simply changed the variable
> org-latex-listings-langs to include makefile:
>
> ,
> | (setq org-latex-listings-langs 
> |   '((emacs-lisp "Lisp") 
> | (lisp "Lisp") 
> | (clojure "Lisp") 
> | (c "C") 
> | (cc "C++") 
> | (fortran "fortran") 
> | (perl "Perl") 
> | (cperl "Perl")
> | (python "Python")
> | (ruby "Ruby")
> | (html "HTML")
> | (xml "XML")
> | (tex "TeX")
> | (latex "[LaTeX]TeX")
> | (shell-script "bash")
> | (gnuplot "Gnuplot")
> | (ocaml "Caml")
> | (caml "Caml")
> | (sql "SQL")
> | (sqlite "sql")
> | (makefile "make")))
> `
>
> Works perfectly.

Nice!

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



[O] Literate Programming site

2014-07-08 Thread Charles Millar

Hi,

I was investigating literate programming, etc. and found the following site

http://literateprogramming.com/

There is no mention of emacs, much less org mode, as a tools. The "evil 
one" is!


GNU and open office are included as projects. I am not sure if any of 
the articles posted in this list are mentioned.


I thought about posting a comment to the above site; however I decided 
to post here for those who know more about these things to decide if 
something should be forwarded.


Charlie Millar

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com




Re: [O] Mathjax vs. problems with imagemagick

2014-07-08 Thread Joseph Vidal-Rosset
2014-07-08 15:01 GMT+02:00 Joseph Vidal-Rosset <
joseph.vidal.ros...@gmail.com>:

> That's strange because it works well with LaTeX export and even with
> latex-preview-image and org-htmlize. This image of implication
> elimination rule in my gnus-message should be nice:
>
> [image: \begin{prooftree} \AxiomC{$A \to B$} \AxiomC{$A$}
> \RightLabel{\scriptsize{$\to E$}} \BinaryInfC{$B$} \end{prooftree}]
>
>

No. I see  now the image in my browser, it is not nice at all... I do not
understand why. :(

Jo.


Re: [O] SOLVED: source code block language 'makefile' and listings package

2014-07-08 Thread Nick Dokos
Rainer M Krug  writes:


> Much simpler then that: I simply changed the variable
> org-latex-listings-langs to include makefile:
>
> ,
> | (setq org-latex-listings-langs 
> |   '((emacs-lisp "Lisp") 
...
> | (makefile "make")))
> `
>
> Works perfectly.
>
> Now if I just could figure out on how I can simply *add* the makefile to
> the list without defining it completely new..
>

(setq org-latex-listings-langs
  (append org-latex-listings-langs '((makefile "make"

-- 
Nick




[O] What to do with taskjuggler's Plan.html report?

2014-07-08 Thread Thorsten Jolitz

Hi List, 

when I run 'tj3' on a taskjuggler file (.tjp) exported from Org, I get
the reports as 'Plan.html' file.

I can have a look with my browser, but thats not really what I want - I
want to integrate the reports in a LaTeX document (exported from Org). 

Did anybody try to use TJ3 with Org-mode and has some insights here?

-- 
cheers,
Thorsten





[O] SOLVED: source code block language 'makefile' and listings package

2014-07-08 Thread Rainer M Krug
t...@tsdye.com (Thomas S. Dye) writes:

> Aloha Rainer,
>
> Rainer M Krug  writes:
>
>> Hi
>>
>> I used the source block language 'makefile'
>>
>> #+begin_src R makefile
>> ...
>> #+end_src
>>
>> and now I would like top export this block to html. I am using the
>> listings package for this, and it supports the syntax, but the
>> language is called 'make', while org uses 'makefile'
>>
>> Is there a way of telling the tex exporter to export 'makefile' blocks
>> as language 'make', or can I easily tell listings that the language
>> 'makefile' is equal to 'make'?
>
> You can configure the listings package with the commands
> \lstnewenvironment and \lstset.  There is a worked example here:
>
> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12-4

Much simpler then that: I simply changed the variable
org-latex-listings-langs to include makefile:

,
| (setq org-latex-listings-langs 
|   '((emacs-lisp "Lisp") 
| (lisp "Lisp") 
| (clojure "Lisp") 
| (c "C") 
| (cc "C++") 
| (fortran "fortran") 
| (perl "Perl") 
| (cperl "Perl")
| (python "Python")
| (ruby "Ruby")
| (html "HTML")
| (xml "XML")
| (tex "TeX")
| (latex "[LaTeX]TeX")
| (shell-script "bash")
| (gnuplot "Gnuplot")
| (ocaml "Caml")
| (caml "Caml")
| (sql "SQL")
| (sqlite "sql")
| (makefile "make")))
`

Works perfectly.

Now if I just could figure out on how I can simply *add* the makefile to
the list without defining it completely new..

Cheers,

Rainer

>
> hth,
> Tom

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpz7kD4n3vJn.pgp
Description: PGP signature


[O] ~C-c '~ not code

2014-07-08 Thread Axel Kielhorn
Hello,

I'm writing a manual and I found the following problem:

~C-c '~ is not recognized as code. The following

Wie bereits gezeigt, kann org nicht nur Tabellen anzeigen, es kann
auch in Tabellen rechnen. Zum Bearbeiten der Formeln gibt man ~C-c '~
ein, dann öffnet sich ein zweites Fenster mit dem Formeleditor.

is exported as

Wie bereits gezeigt, kann org nicht nur Tabellen anzeigen, es kann
auch in Tabellen rechnen. Zum Bearbeiten der Formeln gibt man 
\textasciitilde{}C-c '\textasciitilde{}
ein, dann öffnet sich ein zweites Fenster mit dem Formeleditor.

~C-c '~ isn't shown in the code face.

Escaping the ' with a \ didn't help.
Using = instead of ~ didn't work.

Adding a non-breaking space helps, but it isn't recognized by pdflatex.
(Fixing that isn't really a problem but inconvenient.)

I'm using org from ELPA
Org-mode version 8.2.7b (8.2.7b-1-ga5beff-elpa @ 
/Users/axel/.emacs.d/elpa/org-20140707/)

Axel