Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-09 Thread Alan Schmitt
Hi,

On 2015-06-08 18:39, Xebar Saram zelt...@gmail.com writes:

 i am looking for 2 things really: 
 1. as i said in the post topic a good guide if anyone is aware of or detailed
 examples of using org in Academia (mainly aimed at faculty :))

 2. related to that as a young researcher with multiple students, paper
 writing, grant applications, department duties, endless TODOS, endless email i
 would really be grateful for even non org specific tips on how other people
 organize all this to make life more..well..organized :)

I'm in academia and I use org (also not to its full potential). Some
great tips were already given, let me add a couple.

I try to keep notes for every paper that I read. I have found org-ref to
be really useful to keep the links between the notes and the papers
(https://github.com/jkitchin/org-ref).

If you write many letters (for instance recommendation letters), you
might be interested in koma export.
(http://orgmode.org/worg/exporters/koma-letter-export.html)

Finally, I have found that one of the biggest pitfalls (for me) in
working in academia is to spend all my time dealing with urgent, but not
necessarily important, things. Following the procrastination matrix (see
http://waitbutwhy.com/2015/03/procrastination-matrix.html for an
entertaining description), I use a @Q2 tag for things that are
important and not urgent, and I reserve some time to work on them. The
ones I'm currently working on are scheduled, and they are shown in my
custom agenda view using this:

#+begin_src emacs-lisp
(q Q2 tasks
 ((agenda
   
   ((org-agenda-overriding-header Q2 Scheduled)
(org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp :@Q2:
  (tags-todo
   @Q2/!-HOLD-WAITING
   ((org-agenda-overriding-header Q2)
(org-agenda-todo-ignore-deadlines t)
(org-agenda-todo-ignore-scheduled t)
#+end_src

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame

2015-06-09 Thread Alan Schmitt
Hello Eric,

On 2015-06-08 17:23, Eric S Fraga e.fr...@ucl.ac.uk writes:

 as monitors get bigger and bigger, I tend to have lots of (emacs)
 windows in a frame.  No matter how many I have, org-capture takes over
 the whole frame which is kind of wasteful.

How about using several frames? For instance I have the following code
bound globally in my OS:

#+begin_src sh
/usr/local/bin/emacsclient -n -e '(make-orgcapture-frame)'
#+end_src

The function is defined as follows (with some supporting code to delete
the frame when I'm done):

#+begin_src emacs-lisp
(defun make-orgcapture-frame ()  
  Create a new frame and run org-capture.  
  (interactive)  
  (make-frame '((name . remember) (width . 80) (height . 16)
(top . 400) (left . 300)
(font . 
-*-Consolas-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1)
))
  (select-frame-by-name remember)
  (delete-other-windows)
  (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf)))
(org-capture nil t)))

;; delete the frame in that case
(add-hook 'org-capture-after-finalize-hook
  (lambda ()
(when (equal
   (cdr (assoc 'name (frame-parameters (selected-frame
   remember)
  (delete-frame
#+end_src

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame

2015-06-09 Thread Eric S Fraga
On Tuesday,  9 Jun 2015 at 11:22, Alan Schmitt wrote:
 Hello Eric,

 On 2015-06-08 17:23, Eric S Fraga e.fr...@ucl.ac.uk writes:

 as monitors get bigger and bigger, I tend to have lots of (emacs)
 windows in a frame.  No matter how many I have, org-capture takes over
 the whole frame which is kind of wasteful.

 How about using several frames? For instance I have the following code
 bound globally in my OS:

Thanks for the suggestion.  However, I use ratpoison as my window
manager and, by default, all of my emacs frames are full
screen.  Essentially, I use emacs as a window manager given that I spend
all of my time in Emacs... :)  I have one emacs frame on each monitor (3
of them) and up to 4 windows in each frame depending on what I am doing.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-1154-g6ba251



Re: [O] Specifying ATTR_LATEX document wide?

2015-06-09 Thread Rainer M Krug
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Rainer M Krug rai...@krugs.de writes:

 But I assume, I could also set them via file local variables, which I
 did with `org-export-allow-bind-keywords'.

 I don't think there's any guarantee that all local file keywords
 definitions are observed during export (e.g., most of the export process
 happens in temporary buffers), hence #+BIND keywords.

Thanks for the clarification. Is there a technical or security reason
for this? because especially for export, file local variables would make
sense to avoid the #+BIND keywords?

Rainer



 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


signature.asc
Description: PGP signature


Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame

2015-06-09 Thread e.fraga
On Monday,  8 Jun 2015 at 16:46, Kaushal wrote:
 `org-capture` does not take up the full frame for me by default; I
 just tried that in an emacs -Q session.

You're right: it does not take up the full frame with -Q.  Strange: I
cannot find anything in my configuration that would change this
behaviour.  I don't set display-buffer-alist and it is nil.  I don't use
any of the other packages you and Thierry have mentioned.

I'll keep looking!

Thanks for your input.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-790-gb719c1.dirty



[O] org-tree-to-indirect-buffer - naming and prefix in define keyboard key

2015-06-09 Thread Rainer M Krug
Hi

I just discovered the function ~org-tree-to-indirect-buffer~ and really
love it as I have a large org file (nearly 10 000 lines, R code,
analysis, simulation, ...) and this makes navigating and editing much
easier.

While writing this, I discovered the C-u prefix to keep the last opened
indirect buffer open.

But I still have two question:

1) How can I map the command C-u M-x ~org-tree-to-indirect-buffer~ to a
keyboard shortcut?

2) Can I change the naming of the indirect buffer? To prefix the .org
buffer name makes sense, but is cluttering my tabbar (yes - I still use
it) - so I would prefer to simply use the name of the subtree.

Thanks,

Rainer

-- 
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


signature.asc
Description: PGP signature


Re: [O] Clocking each days entries into one table?

2015-06-09 Thread Sharon Kimble
Robert Klein rokl...@roklein.de writes:

 Hi,

 did you read Bernt Hansen's doumentation
 (http://doc.norang.ca/org-mode.html)?  Sections 9 and 10 in particular
 could be of help to you.

 Best regards
 Robert

Thanks Robert, I am aware of Bernt Hansen's setup, and have included
some of it in my setup. But I'm still searching for that elusive
month-end table display!

Sharon.


 On 06/08/2015 09:15 PM, Sharon Kimble wrote:
 I've recently started clocking the work that I'm doing, and am now
 considering a month-end report. Is it possible to have one table per
 project with each line being that days total time entries? I've seen
 how to get it showing each days entries but not in separate lines
 within the table. The method described online splits each days
 entries into separate split tables.
 
 But I'm looking for one table with a maximum of 31 lines which
 correspond to each days entries. Is it possible please?
 
 Thanks
 Sharon.


-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.1


signature.asc
Description: PGP signature


Re: [O] [RFC] Org linting library

2015-06-09 Thread Rainer M Krug
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Rainer M Krug rai...@krugs.de writes:

 OK - now I get it. The syntax implies that I want to display the image
 located there as the descriptor.

 Correct.

 Would it be possible for org-lint to give a more direct warning that this
 link is in the description and not the link itself?

 Could you suggest an appropriate warning?

something along the line of Link to non-existent local file ... in
the description part would make clear that it is ion the description of
a link.

And if the non-existent link is in the link part, the other could be
Link to non-existent local file ... in the link part

Cheers,

Rainer


 Thank you.


 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


signature.asc
Description: PGP signature


Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-09 Thread Holger Wenzel
Hi Xebar,



Xebar Saram zeltakc at gmail.com writes:

 
 
 Dear Martin
 Thanks so much for your prompt response. I did ofc do an extensive google 
research yet found that as can be seen in your link most entries focus on 
either writing papers or general bits an pieces .What i am looking for is a 
holistic approach regarding organizing all aspects of academic life and to 
hear workflows of other colleagues using org for that
 


I'd start with:

http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-
mode-for/

follow John Kitchin's blog there closely and read everything he posts in 
this list.

Cheers,

Holger
 z
 
 
 On Tue, Jun 9, 2015 at 12:16 AM, M Elwood151 at web.de wrote:
 
 
  Von: Xebar Saram zeltakc at gmail.com
  Datum: Mon, 8 Jun 2015 19:39:14 +0300
  An: org mode emacs-orgmode at gnu.org
  Betreff: [O] Organizing and taming hectic Academia work (faculty 
viewpoint)?
  Tips or a good guides sought after :)
  Hi all
 
  Im a young assistant professor (in humanities and thus my horrific 
coding
  skills..basically non ) and having been using orgmode for a year or two
  now. I love orgmode dearly and use it mainly for note taking, lists etc
 
  I am aware of the fantastic orgmode capabilities that could benefit me 
greatly
  such as exporting, email tie-ins, beamer support, organizing my 
bibliography
  (i have switched to a .bib file recently for my references), agenda
  capabilities and so much moreand have tried several of these with mild
  success. 
 
  unfortunately (and this maybe due to me not being very technical and 
lack of
  coding skills) i still feel like im really not using orgmode to its 
potential
  and still feel miserably lost in terms of organizing my work in academia 
from
  all aspects.
 
  i am looking for 2 things really: 
  1. as i said in the post topic a good guide if anyone is aware of or 
detailed
  examples of using org in Academia (mainly aimed at faculty :))
 
  2. related to that as a young researcher with multiple students, paper
  writing, grant applications, department duties, endless TODOS, endless 
email i
  would really be grateful for even non org specific tips on how other 
people
  organize all this to make life more..well..organized :)
 
  thanks alot in advance and sorry for the long mail
 
  best
 
  Z
 
 Dear Xebar,
 I think the first 10 results of the correspondindg google search already
 show some very interesting examples:http://www.google.com/search?
client=safarirls=enq=emacs+org-mode+in+resear
 chie=UTF-8oe=UTF-8
 Did you have a look at those?
 Kind regards
 Martin
 
 
 
 
 
 




Re: [O] Links in #+caption: lines

2015-06-09 Thread Nicolas Goaziou
Rasmus ras...@gmx.us writes:

 Would it be possible to specify inheritance priority?  So that e.g. link
 would retain the blue coloring?

One solution would be to split fontification of raw keywords and blocks
OTOH and blocks that can contain Org data OTOH, as suggested by Kaushal
(http://permalink.gmane.org/gmane.emacs.orgmode/97530, Cc'ed).

Link fontification would happen after the latter, but before the former.

Anyway, after 8.3 release (or maybe 8.4 depending on the bugs
encountered), we'll have to drop regexp fontification for parser
fontification so this problem will simply disappear.

Regards,



Re: [O] [RFC] Org linting library

2015-06-09 Thread Nicolas Goaziou
Rainer M Krug rai...@krugs.de writes:

 OK - now I get it. The syntax implies that I want to display the image
 located there as the descriptor.

Correct.

 Would it be possible for org-lint to give a more direct warning that this
 link is in the description and not the link itself?

Could you suggest an appropriate warning?

Thank you.


Regards,



Re: [O] Specifying ATTR_LATEX document wide?

2015-06-09 Thread Nicolas Goaziou
Rainer M Krug rai...@krugs.de writes:

 But I assume, I could also set them via file local variables, which I
 did with `org-export-allow-bind-keywords'.

I don't think there's any guarantee that all local file keywords
definitions are observed during export (e.g., most of the export process
happens in temporary buffers), hence #+BIND keywords.

Regards,



Re: [O] `org-agenda-sorting-strategy` -- missing text properties.

2015-06-09 Thread Nicolas Goaziou
Hello,

Keith David Bershatsky e...@lawlist.com writes:

 There are nine (9) places in org-version 8.2.10 (which is included
 within Emacs public release 24.5.1) that could use some attention by
 the org-mode team. I have fixed it in my own custom version of
 org-mode, but I have seen a couple of questions recently on the Emacs
 forums by users wondering why the sorting strategy does not always
 work in various situations. The reason why users are having problems
 is because not all of the text properties are added during the data
 gathering process that are needed for `org-entries-lessp` to do its
 job. I would suggest that the org-mode team look at all nine (9)
 locations where `org-add-props txt props` is used and try to add as
 many additional text properties as possible for members of the
 `org-agenda-sorting-strategy`. Of course, the org-mode team
   will need to make decisions and code will need to be added to
 gather/assign the applicable values before the text-properties can be
 assigned. In a nutshell, if the `org-agenda-sorting-strategy` offers
 a sorting type, then an effort should be made within the code to
 assign those corresponding text properties when the data is gathered.
 Decisions by the org-mode team, include, but are not limited to, which
 timestamp will be used for a sorting date when both deadline and
 scheduled are present -- perhaps even a new sorting thing-a-ma-jig to
 deal with that special situation should be created.

Some work was done wrt sorting in agenda during 8.3 development.

Could you try this version and report if any issue is still to be
resolved? If there is any, could you report it and, possibly, as you
apparently looked into the code carefully, name the missing text
properties?

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] [bug] TODO [/] cookie not updating if list has inline task

2015-06-09 Thread Nicolas Goaziou
e.fr...@ucl.ac.uk writes:

 coming back to my original problem: is there a consensus on how inline
 tasks should be treated within lists?  Inline means to me that they
 should not break up a list... but I would like this resolved if
 possible.

Fixed in a4cc9d82d8069741be64c55f35f9d3ad7e2663d5. Thank you.

Regards,



[O] CUSTOM_ID doesn't work for HTML export on Org trunk

2015-06-09 Thread Oleh Krehel

Hi all,

I don't know if this has been raised before, but it seems not to be
fixed yet.  Currently, in HTML export, instead of #custom_id I'm getting
e.g. #orgheadline10.

The commit that broke this was 2 months ago:
160820bc9498e9364103e72b55a27cf92576dbb8 still works fine.

Let me know if this is bug that needs to be fixed, or maybe CUSTOM_ID
was replaced with something.

regards,
Oleh



Re: [O] Clocking each days entries into one table?

2015-06-09 Thread Subhan Michael Tindall
Have you investigated clocktables?
Type in the following  hit C-c C-c with point on the 'BEGIN' line somewhere to 
update.
This one produces a month summary by agenda file 
#+BEGIN: clocktable :block thismonth :narrow 30 :tcolumns 6 :maxlevel 1 :step 
day  :fileskip0 :timestamp :scope agenda :link t
#+END:  

This followed by a little re search  replace macro to combine the blocks 
should just about the job for you

Assumes each project is a file in org-agenda-files, but can easily be modified 
to do a single file, or tag or set of tags at a time if that is how you define 
your projects  
Formatting options:
https://www.gnu.org/software/emacs/manual/html_node/org/The-clock-table.html

My apologies if this has already been suggested

 -Original Message-
 From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org
 [mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org] On
 Behalf Of Sharon Kimble
 Sent: Tuesday, June 09, 2015 1:43 AM
 To: Robert Klein
 Cc: emacs-orgmode@gnu.org
 Subject: Re: [O] Clocking each days entries into one table?
 
 Robert Klein rokl...@roklein.de writes:
 
  Hi,
 
  did you read Bernt Hansen's doumentation
  (http://doc.norang.ca/org-mode.html)?  Sections 9 and 10 in particular
  could be of help to you.
 
  Best regards
  Robert
 
 Thanks Robert, I am aware of Bernt Hansen's setup, and have included some
 of it in my setup. But I'm still searching for that elusive month-end table
 display!
 
 Sharon.
 
 
  On 06/08/2015 09:15 PM, Sharon Kimble wrote:
  I've recently started clocking the work that I'm doing, and am now
  considering a month-end report. Is it possible to have one table per
  project with each line being that days total time entries? I've seen
  how to get it showing each days entries but not in separate lines
  within the table. The method described online splits each days
  entries into separate split tables.
 
  But I'm looking for one table with a maximum of 31 lines which
  correspond to each days entries. Is it possible please?
 
  Thanks
  Sharon.
 
 
 --
 A taste of linux = http://www.sharons.org.uk TGmeds =
 http://www.tgmeds.org.uk Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.1

This message is intended for the sole use of the individual and entity to which 
it is addressed and may contain information that is privileged, confidential 
and exempt from disclosure under applicable law. If you are not the intended 
addressee, nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone the 
message or any information contained in the message. If you have received this 
message in error, please immediately advise the sender by reply email and 
delete the message.  Thank you.




Re: [O] Links in #+caption: lines

2015-06-09 Thread Thomas S. Dye
Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Rasmus ras...@gmx.us writes:

 Would it be possible to specify inheritance priority?  So that e.g. link
 would retain the blue coloring?

 One solution would be to split fontification of raw keywords and blocks
 OTOH and blocks that can contain Org data OTOH, as suggested by Kaushal
 (http://permalink.gmane.org/gmane.emacs.orgmode/97530, Cc'ed).

 Link fontification would happen after the latter, but before the former.

 Anyway, after 8.3 release (or maybe 8.4 depending on the bugs
 encountered), we'll have to drop regexp fontification for parser
 fontification so this problem will simply disappear.

Sounds good to me.  Full speed ahead on 8.3/8.4 then.

All the best,
Tom

-- 
T.S. Dye  Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



Re: [O] CUSTOM_ID doesn't work for HTML export on Org trunk

2015-06-09 Thread Nicolas Goaziou
Hello,

Oleh Krehel ohwoeo...@gmail.com writes:

 I don't know if this has been raised before, but it seems not to be
 fixed yet.  Currently, in HTML export, instead of #custom_id I'm getting
 e.g. #orgheadline10.

The following buffer

--8---cut here---start-8---
* Headline
  :PROPERTIES:
  :CUSTOM_ID: my-id
  :END:
--8---cut here---end---8---

exports as

--8---cut here---start-8---
div id=outline-container-orgheadline1 class=outline-2
  h2 id=my-ida id=orgheadline1/aspan 
class=section-number-21/span Headline/h2
  div class=outline-text-2 id=text-my-id
  /div
/div
--8---cut here---end---8---

It looks correct.

Regards,

-- 
Nicolas Goaziou



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

2015-06-09 Thread Nicolas Goaziou
Hello,

apers...@lbl.gov writes:

 * lisp/ox-html.el (org-html--build-meta-info ): charset and viewport
   meta data should come first in `head'. As mentioned for example in:
   - https://code.google.com/p/doctype-mirror/wiki/MetaCharsetAttribute
   - http://getbootstrap.com/getting-started/#template
   Only reordered output, no other code changes.

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Fwd: Patch - Org Mac Outlook - Fix Call to Outlook in some cases

2015-06-09 Thread Mike McLean
Here is a version of the patch with a (hopefully) correct Changelog format




[image: --]

Mike McLean
[image: https://]about.me/mikemclean
https://about.me/mikemclean?promo=email_sig


On Thu, Apr 9, 2015 at 5:27 PM, Mike McLean mike.mcl...@pobox.com wrote:

 @Rasmus - I created the first version of Org Mac Outlook and at the time
 didn't have an active virtual running so didn't notice the difference.

 Commit ff771c5c7eab5c4d4a60e9f1270319758961338d
 Author: Mike McLean mike.mcl...@pobox.com
 AuthorDate: Sat Sep 7 16:29:40 2013 -0400
 Commit: Carsten Dominik carsten.domi...@gmail.com
 CommitDate: Sun Sep 8 07:56:30 2013 +0200

 Add Microsoft Outlook Support to org-mac-link

 @Alan - It does make a different if you have Microsoft Outlook as a
 shortcut into a Windows virtual that has been exported/exposed to the Mac
 OS via something like the Parallels “Windows apps added to Launchpad”
 feature. “Microsoft Outlook” may try to launch the Windows Virtual
 “Microsoft Outlook.app” will force the OS X native version.



 On Thu, Apr 9, 2015 at 1:11 PM, Alan Schmitt 
 alan.schm...@polytechnique.org wrote:

 On 2015-04-09 15:59, Mike McLean mike.mcl...@pobox.com writes:

  Hello - I just noticed that this patch does not seem to have been
 applied. Is
  there a problem with it?

 I'd be happy to apply it. I have a question about it:

  The AppleScript commands may try to select the WinTel version of
 Microsoft
  Outlook. This—obviously—doesn’t work. By adding the Mac ~.app~ file
  extension, we reduce this confusion and more reliably call the Macintosh
  version of Outlook.

 I tried this AppleScript
 #+begin_src applescript
 tell application Mail.app
   activate
 end tell
 #+end_src

 and as I ran it it got normalized to
 #+begin_src applescript
 tell application Mail
   activate
 end tell
 #+end_src

 Does the .app suffix really make a difference?

 Best,

 Alan

 --
 OpenPGP Key ID : 040D0A3B4ED2E5C7





0001-org-mac-link.el-Reduce-Outlook-App-confusion.patch
Description: Binary data


Re: [O] [feature request] org-capture-window-setup to stop capture window taking up whole frame

2015-06-09 Thread Bernhard Pröll

With a lot of windows open the annoying part of =org-capture= is
=switch-to-buffer-other-window= for me. My approach is using the current
window for the capture buffer:

#+BEGIN_SRC elisp
(defadvice org-capture (around bp/org-capture--around)
  (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf)))
ad-do-it))
(ad-activate 'org-capture)
#+END_SRC



Re: [O] [bug] Error evaluating table expression with relative references

2015-06-09 Thread Nicolas Goaziou
Hello,

Eric S Fraga e.fr...@ucl.ac.uk writes:

 I seem to have encountered a bug in table spreadsheet evaluations.  See
 this example:

 #+begin_src org
   ,* Table evaluation with relative references
   | 1 | 2 | 3 |  6 |
   | 1 | 2 | 3 | #ERROR |
   ,#+TBLFM: @1$4=vsum($1..$3)::@2$4=vsum($1..$-1)
 #+end_src

 As far as I can tell, the two formulae should be equivalent?  Or am I
 missing something silly (not unlikely ;-)?

 Turning on debugging shows that the first formula gets converted to
 vsum([1,2,3]) whereas the second goes to vsum((1)..(3)).

Fixed in 3924989b4f45a5c7ff89a4f7abdebc570cbaf7e2. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] org-tree-to-indirect-buffer - naming and prefix in define keyboard key

2015-06-09 Thread Alan Schmitt
On 2015-06-09 10:36, Rainer M Krug rai...@krugs.de writes:

 While writing this, I discovered the C-u prefix to keep the last opened
 indirect buffer open.

 But I still have two question:

 1) How can I map the command C-u M-x ~org-tree-to-indirect-buffer~ to a
 keyboard shortcut?

According to http://ergoemacs.org/emacs/elisp_universal_argument.html
the universal argument corresponds to an argument '(4). So you could
try:

#+begin_src emacs-lisp
(global-set-key
 (kbd f8)
 (lambda ()
   (interactive)
   (org-tree-to-indirect-buffer '(4
#+end_src

 2) Can I change the naming of the indirect buffer? To prefix the .org
 buffer name makes sense, but is cluttering my tabbar (yes - I still use
 it) - so I would prefer to simply use the name of the subtree.

The buffer name is set by the function `org-get-indirect-buffer'.
You could try to change the name after calling the function … for
instance by doing
#+begin_src emacs-lisp
(rename-buffer (org-get-heading) t)
#+end_src
(the t at the end makes sure the name is unique), but for this to work
you need to go to the buffer that was just created, and I don't know how
to do that.

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Weekly CO₂ average (2015-05-30, Mauna Loa Observatory): 403.41 ppm


signature.asc
Description: PGP signature


[O] bad interaction between yasnippet and org-mode

2015-06-09 Thread Mark Edgington
I have a yas snippet that looks like the following:

*  $1   :sometag:
$0

When I try to expand this snippet (on an empty line) in an org-mode
buffer, there seems to be a bad interaction happening between org-mode
and yasnippet, such that when entering in text at the $1 location,
typing something like abc results in a b c  being inserted (spaces
get interspersed).

This behavior does not happen if there is no tag at the end of the
headline, or if the $1 is replaced with $0 (so yas mode is exited
after expanding the snippet).

I'm using yas 0.8.0beta (latest git), and Org-mode 8.3beta
(release_8.3beta-1206-g2f0bcc)

Is there a way to work around or fix this?



Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-09 Thread windy
Another question, I am a student , I think it is a big problem that how to 
exchange you article with your teacher, because the teacher will comment or 
revise your article once again and again.

However, Many teachers will not use emacs to write articles and also the pdf 
file is not so convenient to do some modification, how will you deal with the 
problem ?







在2015年06月09 21时21分, John Kitchinjkitc...@andrew.cmu.edu写道:

you might also enjoy our youtube video:
https://www.youtube.com/watch?v=fgizHHd7nOo

And this one on using org-mode in teaching:
https://www.youtube.com/watch?v=IsSMs-4GlT8list=FLQp2VLAOlvq142YN3JO3y8w

and
https://www.youtube.com/watch?v=cRUCiF2MwP4

See http://github.com/jkitchin/jmax for my Emacs setup for
org-mode.

My only other advice is start learning to program in emacs-lisp. It took
me about four years to get proficient enough to write org-ref. I learned
by solving lots of little problems, and building up to bigger
problems. A lot of those are documented in my blog. Read the emacs and
emacs-lisp manuals (read them in Emacs or in a browser). They take some
time, so skip the stuff that doesn't make sense and come back to it
later if you need to. Consider getting the book at
https://www.masteringemacs.org. It isn't about org-mode, but it will
make you better at using Emacs. Consider reading Land of Lisp. It isn't
about Emacs or Emacs-lisp, but it might interest you in programming in a
lispy language, and it is a fun read.

Buy the org-mode book:
http://www.amazon.com/Org-Mode-Reference-Manual-Organize/dp/9881327709/ref=sr_1_1?ie=UTF8qid=1433855847sr=8-1keywords=org-mode.
 yes,
it is the same stuff as in the manual, but it is a book you can read
anywhere anytime.

Start by learning how to get org-mode to do some things you want. Just
do one thing a day. Every day.

You hopefully have 30+ years of career ahead of you, so even if it takes
a few years or more to learn how to program in emacs-lisp to customize
your workflows, you still have plenty of time to benefit from it!

Best wishes,

Holger Wenzel writes:

 Hi Xebar,



 Xebar Saram zeltakc at gmail.com writes:



 Dear Martin
 Thanks so much for your prompt response. I did ofc do an extensive google
 research yet found that as can be seen in your link most entries focus on
 either writing papers or general bits an pieces .What i am looking for is a
 holistic approach regarding organizing all aspects of academic life and to
 hear workflows of other colleagues using org for that



 I'd start with:

 http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-
 mode-for/

 follow John Kitchin's blog there closely and read everything he posts in
 this list.

 Cheers,

 Holger
 z


 On Tue, Jun 9, 2015 at 12:16 AM, M Elwood151 at web.de wrote:
 
 
  Von: Xebar Saram zeltakc at gmail.com
  Datum: Mon, 8 Jun 2015 19:39:14 +0300
  An: org mode emacs-orgmode at gnu.org
  Betreff: [O] Organizing and taming hectic Academia work (faculty
 viewpoint)?
  Tips or a good guides sought after :)
  Hi all
 
  Im a young assistant professor (in humanities and thus my horrific
 coding
  skills..basically non ) and having been using orgmode for a year or two
  now. I love orgmode dearly and use it mainly for note taking, lists etc
 
  I am aware of the fantastic orgmode capabilities that could benefit me
 greatly
  such as exporting, email tie-ins, beamer support, organizing my
 bibliography
  (i have switched to a .bib file recently for my references), agenda
  capabilities and so much moreand have tried several of these with mild
  success.
 
  unfortunately (and this maybe due to me not being very technical and
 lack of
  coding skills) i still feel like im really not using orgmode to its
 potential
  and still feel miserably lost in terms of organizing my work in academia
 from
  all aspects.
 
  i am looking for 2 things really:
  1. as i said in the post topic a good guide if anyone is aware of or
 detailed
  examples of using org in Academia (mainly aimed at faculty :))
 
  2. related to that as a young researcher with multiple students, paper
  writing, grant applications, department duties, endless TODOS, endless
 email i
  would really be grateful for even non org specific tips on how other
 people
  organize all this to make life more..well..organized :)
 
  thanks alot in advance and sorry for the long mail
 
  best
 
  Z

 Dear Xebar,
 I think the first 10 results of the correspondindg google search already
 show some very interesting examples:http://www.google.com/search?
 client=safarirls=enq=emacs+org-mode+in+resear
 chie=UTF-8oe=UTF-8
 Did you have a look at those?
 Kind regards
 Martin







--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-06-09 Thread John Kitchin
you might also enjoy our youtube video:
https://www.youtube.com/watch?v=fgizHHd7nOo

And this one on using org-mode in teaching:
https://www.youtube.com/watch?v=IsSMs-4GlT8list=FLQp2VLAOlvq142YN3JO3y8w

and
https://www.youtube.com/watch?v=cRUCiF2MwP4

See http://github.com/jkitchin/jmax for my Emacs setup for
org-mode.

My only other advice is start learning to program in emacs-lisp. It took
me about four years to get proficient enough to write org-ref. I learned
by solving lots of little problems, and building up to bigger
problems. A lot of those are documented in my blog. Read the emacs and
emacs-lisp manuals (read them in Emacs or in a browser). They take some
time, so skip the stuff that doesn't make sense and come back to it
later if you need to. Consider getting the book at
https://www.masteringemacs.org. It isn't about org-mode, but it will
make you better at using Emacs. Consider reading Land of Lisp. It isn't
about Emacs or Emacs-lisp, but it might interest you in programming in a
lispy language, and it is a fun read.

Buy the org-mode book:
http://www.amazon.com/Org-Mode-Reference-Manual-Organize/dp/9881327709/ref=sr_1_1?ie=UTF8qid=1433855847sr=8-1keywords=org-mode.
 yes,
it is the same stuff as in the manual, but it is a book you can read
anywhere anytime.

Start by learning how to get org-mode to do some things you want. Just
do one thing a day. Every day.

You hopefully have 30+ years of career ahead of you, so even if it takes
a few years or more to learn how to program in emacs-lisp to customize
your workflows, you still have plenty of time to benefit from it!

Best wishes,

Holger Wenzel writes:

 Hi Xebar,



 Xebar Saram zeltakc at gmail.com writes:



 Dear Martin
 Thanks so much for your prompt response. I did ofc do an extensive google
 research yet found that as can be seen in your link most entries focus on
 either writing papers or general bits an pieces .What i am looking for is a
 holistic approach regarding organizing all aspects of academic life and to
 hear workflows of other colleagues using org for that



 I'd start with:

 http://kitchingroup.cheme.cmu.edu/blog/2014/08/08/What-we-are-using-org-
 mode-for/

 follow John Kitchin's blog there closely and read everything he posts in
 this list.

 Cheers,

 Holger
 z


 On Tue, Jun 9, 2015 at 12:16 AM, M Elwood151 at web.de wrote:
 
 
  Von: Xebar Saram zeltakc at gmail.com
  Datum: Mon, 8 Jun 2015 19:39:14 +0300
  An: org mode emacs-orgmode at gnu.org
  Betreff: [O] Organizing and taming hectic Academia work (faculty
 viewpoint)?
  Tips or a good guides sought after :)
  Hi all
 
  Im a young assistant professor (in humanities and thus my horrific
 coding
  skills..basically non ) and having been using orgmode for a year or two
  now. I love orgmode dearly and use it mainly for note taking, lists etc
 
  I am aware of the fantastic orgmode capabilities that could benefit me
 greatly
  such as exporting, email tie-ins, beamer support, organizing my
 bibliography
  (i have switched to a .bib file recently for my references), agenda
  capabilities and so much moreand have tried several of these with mild
  success.
 
  unfortunately (and this maybe due to me not being very technical and
 lack of
  coding skills) i still feel like im really not using orgmode to its
 potential
  and still feel miserably lost in terms of organizing my work in academia
 from
  all aspects.
 
  i am looking for 2 things really:
  1. as i said in the post topic a good guide if anyone is aware of or
 detailed
  examples of using org in Academia (mainly aimed at faculty :))
 
  2. related to that as a young researcher with multiple students, paper
  writing, grant applications, department duties, endless TODOS, endless
 email i
  would really be grateful for even non org specific tips on how other
 people
  organize all this to make life more..well..organized :)
 
  thanks alot in advance and sorry for the long mail
 
  best
 
  Z

 Dear Xebar,
 I think the first 10 results of the correspondindg google search already
 show some very interesting examples:http://www.google.com/search?
 client=safarirls=enq=emacs+org-mode+in+resear
 chie=UTF-8oe=UTF-8
 Did you have a look at those?
 Kind regards
 Martin







--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu