Re: [O] using pdf as output of src-block doesn't show an inline image

2016-02-07 Thread Arun Persaud
Hi managed to get pdfs to display ;) Here is what I added in my .emacs file: (add-to-list 'image-type-file-name-regexps '("\\.pdf\\'" . imagemagick)) (add-to-list 'image-file-name-extensions "pdf") (setq imagemagick-types-inhibit (remove 'PDF imagemagick-types-inhibit)) (setq

[O] using pdf as output of src-block doesn't show an inline image

2016-02-05 Thread Arun Persaud
Hi I use org mode more and more to plot data using python source blocks. If I create pngs, org mode will display these results as an inline image, which is nice. Since I also export my org buffer via latex to pdf, it would be nice to create pdf plots with python, so that I get vector graphics in

Re: [O] feature request for empty blocks in customized agenda

2015-06-13 Thread Arun Persaud
Hi I'm not sure if someone will find this feature useful enough to incorporate. However, even if it doesn't get added, I think you can get the behavior you want using org-agenda-finalize-hook. Hopefully the snippet below can be a useful starting point. #+begin_src elisp (defun

[O] feature request for empty blocks in customized agenda

2015-06-13 Thread Arun Persaud
Hi I just started using a customized agenda with many blocks and some of my blocks are often empty. However, org-mode still insert the header and the separator between blocks. Is there a way to skip empty blocks completely? I had a quick look at org-agenda.el and it seems that it directly

Re: [O] [PATCH] lisp/ox-html.el: reorder output of meta data in head

2015-06-08 Thread Arun Persaud
Hi just as a quick follow up. I found this earlier message on the topic http://thread.gmane.org/gmane.emacs.orgmode/84306/focus=84355 I would like to push for a change though. I don't have a test case where charset doesn't work, but

Re: [O] Insert a line separator in table results

2014-07-16 Thread Arun Persaud
This works for me. #+BEGIN_SRC python x = [[label 1, label 2, label 3]] x.append(None) x.append((4, 5, 6)) x.append((7, 8, 9)) return (x) #+END_SRC #+RESULTS: | label 1 | label 2 | label 3 | |-+-+-| | 4 | 5 | 6 | | 7 | 8 |

Re: [O] Export to iCalendar only not DONE, scheduled tasks?

2014-05-14 Thread Arun Persaud
Hi On 05/10/2014 07:55 AM, Chris Poole wrote: On Mon, May 5, 2014 at 11:08 PM, Arun Persaud apers...@lbl.gov mailto:apers...@lbl.gov wrote: pretty sure this can be done. I export only events to an ics file that have a start and an end date and are not in a certain category

Re: [O] Export to iCalendar only not DONE, scheduled tasks?

2014-05-05 Thread Arun Persaud
Hi I've been searching round the manual, and blogs, to find a way to do this. I want to export all of the scheduled/deadline tasks that are not in a DONE state to an iCalendar file. Can this be done? pretty sure this can be done. I export only events to an ics file that have a start and

Re: [O] Export Agenda to Google Calendar ICS Format

2014-05-05 Thread Arun Persaud
Hi On 05/05/2014 02:24 AM, Tory S. Anderson wrote: Cross-posted from http://stackoverflow.com/questions/23463962/emacs-export-calendar-bad-timezone-format-in-ics Using orgmode I export my agenda to an ics file, upload it to my site, and import it into Google calendar. This seems like an

Re: [O] org babel question: reference tables in remote file

2014-04-17 Thread Arun Persaud
Hi Is there a reason not to allow link-syntax like remote(file:path::tablename, cellref)? Well, probably histerical raisins, as Stefan would say... But the concept of a link is really twofold: it's a reference, and an object you can interactively act uppon by following it. Using the

[O] org babel question: reference tables in remote file

2014-04-05 Thread Arun Persaud
Hi I would like to reference a table in a different file in some org-babel python code via the :var variables. The manual mentions that you can use #+NAME for tables in the same file or IDs for tables in other files. Is there a reason not to allow link-syntax like remote(file:path::tablename,

Re: [O] [Patch] don't add indent for empty line when exiting, a code edit

2014-03-14 Thread Arun Persaud
On 03/14/2014 02:00 AM, Bastien wrote: Hi Florian, Florian Beck f...@miszellen.de writes: On 13.03.2014 20:46, Bastien wrote: Ok, let me take some fresh air and come back to this later on. How about this: (while (re-search-forward \\(^\\).+ nil t) (replace-match indent nil nil nil

[O] [Patch] don't add indent for empty line when exiting, a code edit

2014-03-10 Thread Arun Persaud
here, but my elisp as well as my understanding of org-mode is not perfect ;) Let me know if it needs more work. Arun From e393fed9dbb132fdefff66d304f67f7def643140 Mon Sep 17 00:00:00 2001 From: Arun Persaud a...@nubati.net Date: Mon, 10 Mar 2014 17:09:12 -0700 Subject: [PATCH] lisp/org-src.el: don't

[O] babel: using empty lines in python code while using session

2014-03-10 Thread Arun Persaud
Hi I started using python in org babel. The manual, for example [1], points to the fact that in session mode you can't have empty lines, since they will be interpreted differently. However, if you use ipython you can get around this, by using the following in your .emacs:

Re: [O] Babel python question: use of ipython and %cpaste

2013-12-03 Thread Arun Persaud
Hi On 12/03/2013 03:44 AM, Rasmus wrote: [ipython in org mode] For Org you could do: (setq org-babel-python-command ipython --no-banner --classic --no-confirm-exit) You should now be able to do #+BEGIN_SRC python :results output %timeit 1+1 #+END_SRC [...] nice ;) that works

[O] Babel python question: use of ipython and %cpaste

2013-12-02 Thread Arun Persaud
Hi being able to use python as a source block is great, but I often stumble over the fact that when using sessions you have to treat empty lines in a special way (i.e. as the end of an indentation block). I was wondering if it would be easy to create an ipython mode, something like #+BEGIN_SRC

Re: [O] Has anybody noticed ellipses instead of the top line of the window?

2013-02-28 Thread Arun Persaud
On 02/28/2013 09:59 AM, Samuel Wales wrote: The ellipses still occur. Here is an ECM. === # -*- coding: utf-8 -*- #+CATEGORY: executive the long line and logbook are necessary. try with fewer lines and columns. * a *** a /a/ a a a a a a a a a

Re: [O] logdone enhancement

2013-02-27 Thread Arun Persaud
Hi * project ** TODO headline :repeat: a longer description of what the todo item is about SCHEDULED: 2013-06-18 Tue +1m The SCHEDULED line should be right after the headline, see the manual. It can sometimes work when it is on another line, but this is

Re: [O] logdone enhancement

2013-02-27 Thread Arun Persaud
Hi Isn't that what the LOGBOOK drawer is for? You put the mess in there, so it's available when you open it, but you don't have to look at it most of the time. nice! I didn't know about this one. This will solve my problem, although I still would prefer that drawers, etc are added at the very

Re: [O] org-cycle hook recenter question

2013-02-26 Thread Arun Persaud
On 02/26/2013 07:29 AM, Bastien wrote: Hi Samuel and all, Samuel Wales samolog...@gmail.com writes: This is the infamous meaningless ellipses at the top of the buffer problem. ... which should now be fixed. Thanks for confirming, Thanks for fixing it! Just tested the latest git and

[O] logdone enhancement

2013-02-26 Thread Arun Persaud
Hello if I have something like the following #+STARTUP: logdone * project ** TODO headline :repeat: a longer description of what the todo item is about SCHEDULED: 2013-06-18 Tue +1m - State DONE from WAITING[2013-02-26 Tue 21:56] - State DONE

[O] org-cycle hook recenter question

2013-02-23 Thread Arun Persaud
Hi when I cycle using shift-TAB and I go from all-content, that is just the headlines, I often don't see the top headlines in the buffer, although there would be enough space to show them. The top is truncated and a ... is shown and I need to do a ctrl-l or scroll upward to see everything. I was

Re: [O] org-cycle hook recenter question

2013-02-23 Thread Arun Persaud
Hi [...] This is the infamous meaningless ellipses at the top of the buffer problem. If you can provide a way to reproduce using emacs -Q, it would really help. I can reproduce this with emacs -Q tmp.org. Where tmp.org is one of my org files where I removed the headers (#+...), so it's just

Re: [O] agenda question about representing items [PATCH]

2013-01-23 Thread Arun Persaud
be included. Thanks Arun From 2b22b753485bbb522f1f08902bd37c673b241637 Mon Sep 17 00:00:00 2001 From: Arun Persaud apers...@lbl.gov Date: Wed, 23 Jan 2013 15:21:31 -0800 Subject: [PATCH] added option %b to dispaly breadcrumbs in agenda if org file has the structure * project ** task1 *** TODO item1

[O] agenda question about representing items

2013-01-22 Thread Arun Persaud
Hi many of my projects have the following form: * project name ** subtask *** TODO item1 SCHEDULED: timestamp sometimes it looks like * project name ** subtask *** TODO item2 [1/3] - [X] task1 - [ ] task2 - [ ] task3 SCHEDULED: timestamp currently my agenda view shows something like

Re: [O] question/suggestions about org-refile

2012-09-23 Thread Arun Persaud
Hello On 09/23/2012 01:08 AM, Bastien wrote: Hi Arun, Arun Persaud apers...@lbl.gov writes: I'm using org-capture together with org-refile to organize my todo-items. I also have my notes distributed over several org-files, so I have set org-refile-use-outline-path to file. There are two

Re: [O] question/suggestions about org-refile

2012-09-23 Thread Arun Persaud
On 09/23/2012 08:27 AM, Bastien wrote: Hi Arun, Arun Persaud apers...@lbl.gov writes: I used to have this set to file, but then I _always_ had to add the file name even for local headlines. It does not require the file name here and now. Maybe an old behavior. I now switched

Re: [O] syncing with google calendar, file changed on disk

2012-09-13 Thread Arun Persaud
Hi I use the following bash script via cron to sync with google and revert the buffer. I also keep my files in git, so there are some git commands in here too: #+BEGIN_SRC bash #update calendar (this runs the awk script) /home/arun/bin/google-get-calendar #check if have any local changes, if so

[O] question/suggestions about org-refile

2012-09-02 Thread Arun Persaud
Hello I'm using org-capture together with org-refile to organize my todo-items. I also have my notes distributed over several org-files, so I have set org-refile-use-outline-path to file. There are two things that I wished org-refile could do, but don't know how to achieve: a) Include local

[O] my setup for remember the milk (one way import to org-mode via org-feed.el)

2012-03-04 Thread Arun Persaud
Hi I recently needed to add entries from remember the milk(RTM)[1] to my org files... I found a script that converts to an orgfile[2], but also the standard org-feed.el that can handle atom feeds. I played around a bit with the latter and came up with the functions below that parse the atom feed

[O] bug/feature request: refiling and creation of non-existing nodes

2012-03-04 Thread Arun Persaud
Hi I often use refile to move nodes around in my org-file. I recently learned about org-refile-allow-creating-parent-nodes, but it seems to be limited to one level, e.g. if I have set the variable to t and have the following tree * A * to refile I can move the second node to A/ or A/B/ but

Re: [O] ICS import?

2012-01-25 Thread Arun Persaud
Hello I only need import. Two way sync is (currently) not required. I just need to get data into Org. Famous last words I know. ;] perhaps you can modify the script on the following page to do what you want: http://orgmode.org/worg/org-tutorials/org-google-sync.html The script can be used to

[O] org-refile-use-outline-path question

2011-10-11 Thread Arun Persaud
Hi I use the following settings to refile tasks (setq org-refile-use-outline-path 'file) (setq org-refile-targets '((org-agenda-files . (:maxlevel . 5 this has the nice effect that I can refile across different files, which I do use every now and then. For this I use:

Re: [O] iCalendar export

2011-07-25 Thread Arun Persaud
Hi And have anyone got this information to their mobile devices? Android? I do a simple two-way sync (well, kind of two-way) using the method described here: http://orgmode.org/worg/org-tutorials/org-google-sync.html ARUN

Re: [O] Status google calendar sync

2011-06-10 Thread Arun Persaud
Hi On 06/10/2011 09:58 AM, Stephen Eglen wrote: Was there any update regarding this interesting topic? I'm keen to get something working - what is current best practice for getting .ics files made by org put onto google calendar, so that I can view them on android? Thanks, Stephen Have a

Re: [O] Status google calendar sync

2011-06-10 Thread Arun Persaud
Hi When going from org - google, do I need to do anything about using org-icalendar-store-UID? I'd rather not have to populate my org files with :ID: entries. I don't... however, I have to admit that I don't really know that much about .ics files and the use of UID. The setup at the moment

[O] ical2org updated

2011-02-28 Thread Arun Persaud
Hi updated ical2org a bit according to Eric's comments: - removed SCHEDULED - removed GCAL tag - moved location and status to properties also wrote up a bit in Worg on how to export from org-google. Feel free to edit or comment on it.

[Orgmode] Re: ical2org (better timezone recognition and better default for max_age option)

2011-02-23 Thread Arun Persaud
Hi however, I'm a little concerned with some of the other changes, specifically that all timed events have become scheduled todo entries (of type GCAL) which really doesn't fit in with my use case at all unfortunately. probably should make this configurable. How about defining a string that

Re: [Orgmode] iCalendar selective export

2011-02-19 Thread Arun Persaud
Hi On Fri, Feb 11, 2011 at 12:04 PM, Bastien bastien.gue...@wikimedia.fr wrote: You now set ̀org-icalendar-honor-noexport-tag' to t to prevent export of entries with a :noexport: tag. works. Thanks! Arun ___ Emacs-orgmode mailing list

Re: [Orgmode] need help with lisp for export function regarding timestamps

2011-02-19 Thread Arun Persaud
Hi but I can't figure out how to check for these? Do I need to write my own reg-exp for this and test the whole entry or is there some org internal function for this? I'm afraid you need to write your own regexp... thanks for the answer. Played around with it and got it working now. Will

[Orgmode] Re: ical2org (better timezone recognition and better default for max_age option)

2011-02-16 Thread Arun Persaud
Hi [option to ignore entries older than N days] Very useful option! Thanks. I would be tempted to make the default ignore any old events. Any thoughts on this? I changed it to ignore everything older than one week. I also updated the timezone parsing a bit after reading part of section

[Orgmode] ical2org

2011-02-02 Thread Arun Persaud
Hi updated the script and added a small config section. I had to change the time conversion a bit, since most of my entries are in local time in the .ics file. I also got a lot of really old events, that I'm not interested anymore and which slowed down the agenda view, so I added an option to

Re: [Orgmode] adding to /contrib/scripts

2011-02-01 Thread Arun Persaud
Hi It is in Worg now: http://orgmode.org/worg/code/awk/ Thanks, didn't know that there is also code in Worg... the script was already in Worg at http://orgmode.org/worg/org-tutorials/org-google-sync.html but I thought that keeping a script inside a documentation page wouldn't be the best

[Orgmode] adding to /contrib/scripts

2011-01-30 Thread Arun Persaud
Hi it would be great, if the awk script at http://orgmode.org/worg/org-tutorials/org-google-sync.html could be added to contrib/scripts, so that we can version control it. The file is by Eric Fraga with some minor changes by myself. What's the best way to do this? I uploaded a copy of the file

Re: [Orgmode] Status google calendar sync

2011-01-30 Thread Arun Persaud
Hi On 01/30/2011 06:09 AM, Eric S Fraga wrote: [...] : (setq org-icalendar-store-UID t) in my org customisation which may be necessary to have this feature. I cannot remember how to ensure that each exported entry has an ID property, however. Maybe somebody else can chime in or you might

Re: [Orgmode] Status google calendar sync

2011-01-28 Thread Arun Persaud
Hi started writing something up for Worg, can't push to the main repository at the moment (working on it though), but you can look at it at: http://nubati.net/cgi-bin/cgit.cgi/Worg/ I also tried the ics2org script, but run into some problems there... the script didn't recognize the timestamps,

Re: [Orgmode] Status google calendar sync

2011-01-27 Thread Arun Persaud
Hi I try this and get absolutely nothing. Just an empty calendar line. I am using the latest (0.9.12), BTW. If you enter google --help part of the help is: --fields=FIELDS Fields to list with list task. I got an older version (0.9.5)... all of this makes me think that it

[Orgmode] need help with lisp for export function regarding timestamps

2011-01-27 Thread Arun Persaud
Hi trying to get the export to ics working using org-icalendar-verify-function and org-export-icalendar-combine-agenda-files At the moment I'm using the following as a verify function: (defun mycal-export () (setq mycategory (org-get-category)) (setq myrepeat (org-get-repeat)) (and

Re: [Orgmode] Status google calendar sync

2011-01-26 Thread Arun Persaud
Hi You are right that googlecl is poorly documented, and worse, it doesn't even work as the documentation says it should. Try retrieving calendar events with --fields=title,when and see what happens. I get the title printed out but the when always comes out as None. my man pages for

Re: [Orgmode] Status google calendar sync

2011-01-25 Thread Arun Persaud
Hi On 01/21/2011 03:58 PM, Eric S Fraga wrote: I also have been syncing between my Google calendar and org. A while back, I posted this message onto this list: http://article.gmane.org/gmane.emacs.orgmode/26848 but check out later messages in the thread for an updated awk script. I had

Re: [Orgmode] Status google calendar sync

2011-01-21 Thread Arun Persaud
Hi I'm in the middle of setting something up, at the moment I import google events into org by using the google command line interface on my linux machine. For this I changed the line in the config for googcl to print out an org timestamp and also changed the fields to be printed by using:

[Orgmode] Re: bug? no newline at beginning of file

2008-11-24 Thread Arun Persaud
Hi Mikael Fornius [EMAIL PROTECTED] writes: ... this was just some thoughts. Replying my own post now. My thought was not of any great value because I now fully understand your problem: In org-mode it works as one expect but not in orgtbl-mode and when pointis at beginning of

[Orgmode] bug? no newline at beginning of file

2008-11-22 Thread Arun Persaud
Hi found a possible bug and a quick search in google didn't return any results, so I thought I send an email to the list (although I'm not subscribed), but I couldn't find any other place to report it. So here we go: My version of the emacs and org: GNU Emacs 22.2.1 (x86_64-suse-linux-gnu, GTK+