org-mode

Is there an equivalent of Org-mode's b_ignoreheading for non-beamer documents?

跟風遠走 提交于 2019-12-03 12:32:47
问题 When using Org-mode to create beamer presentation it is possible to set the property of a heading such that the exported heading is not shown but only its contents. For instance, the following #+title: Test #+options: toc:nil #+latex_class: beamer #+startup: beamer #+BEAMER_FRAME_LEVEL: 2 * Ignored heading :B_ignoreheading: :PROPERTIES: :BEAMER_env: ignoreheading :END: Text Result in a frame with "Text" only and no heading. Is this kind of functionality available for non-beamer documents?

How do I prevent org-mode from executing all of the babel source blocks?

天大地大妈咪最大 提交于 2019-12-03 12:29:53
问题 I have an org file with lots of babel source blocks in it that only need to be re-executed when the code is changed. How do I prevent org from executing all of the blocks during export? In other words, set them all to manual execution only? I would prefer a single global option rather than having to edit each block individually. 回答1: The variable org-export-babel-evaluate , if set to nil , will prevent any code from being evaluated as part of the export process. This way, only the results

How to evaluate all code blocks when exporting in emacs org-mode

时光怂恿深爱的人放手 提交于 2019-12-03 11:50:36
I have an org-mode document with many different R source code blocks. Whenever I hit C-c C-e and export to PDF or HTML I get a different prompt asking to evaluate each code block. This wasn't a big deal, but now I have to type yes 20+ times. Is there an option to automatically evaluate all the code blocks? I think this is what you want: (setq org-confirm-babel-evaluate nil) Put the following line at the top of your file, that way you get asked one time upon opening it, and the safer non-evaluating default remains true for other files # -*- org-confirm-babel-evaluate: nil -*- 来源: https:/

org-mode: go back from sparse tree to previous visibility

﹥>﹥吖頭↗ 提交于 2019-12-03 11:07:28
问题 After filtering my document to a sparse tree, how do I undo the filter, going back to the previous view/visibility? Because I haven't worked out how to do this out I have to make everything visible, which isn't nice in big documents. Seems like it must be obvious but I can't find the answer... 回答1: This looks like it might be possible to me. In the following code I use some advice to save the outline state before generating the sparse tree, and to restore it when it is cleared via C-c C-c.

Refile from one file to other

梦想的初衷 提交于 2019-12-03 10:53:49
I'm trying to implement GTD in emacs based on http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html and I have a problem with refiling. In the file .emacs I have such a configuration (setq org-refile-use-outline-path 'file) '(org-refile-targets (quote (("gtd.org" :maxlevel . 1) ("done.org" :level . 1)))) The sequence Cc Cw can select only the place of the current file: gtd.org/ gtd.org/tasks gtd.org/projects Please help in determining why do not I move to done.org Regards Krzysiek Here's a fix of your code: (setq org-refile-targets '(("gtd.org" :maxlevel . 1) ("done.org" :maxlevel .

How to insert schedule with date and time in Emacs org-mode

与世无争的帅哥 提交于 2019-12-03 10:37:23
When I insert a schedule with C-c C-s in Emacs org-mode , it always inserts a date like this: * TODO write product documents SCHEDULED: <2013-10-25 Fri> while what I want is this: * TODO write product documents SCHEDULED: <2013-10-25 Fri 11:34> Now I do this manually: firstly insert a schedule, then delete the date, then insert a timestamp with date and time using C-u C-c . . How can I insert a schedule with date and time only using C-c C-s ? Thanks. YoungFrog When you're being asked for a date at the prompt, you can also enter a time. e.g. if I say "+2d 1pm" at the prompt, I get SCHEDULED:

How can I reference a section by number in org-mode export?

别来无恙 提交于 2019-12-03 10:33:55
I'm working in org-mode and trying to generate a link to reference a section by its number, not its title. * Section One :PROPERTIES: :CUSTOM_ID: sec:one :END: * Section Two #+label: sec:two I can reference Section One with [[#sec:one]] and [[#sec:one][Section One]], but I can't get the actual section number (1) to resolve. I want to see As you can see in Section 1 By writing something like As you can see in Section [[sec:one]], Any ideas? I use dedicated targets for this: * Section One <<sec:one>> * Section Two <<sec:two>> I can reference Section One with [[sec:one]] and [[sec:one][Section

How can I disable auto-fill mode in emacs?

拟墨画扇 提交于 2019-12-03 09:29:06
Today I got my new PC (win 7, 32 bit) and installed Vincelt Goulets Emacs . The only other thing I did was updating org-mode. Now, I am stuck with auto-fill-mode on every time I start emacs new, which I hate. I would like to turn auto-fill-mode off, for now and forever. I even deleted my .emacs file but auto-fill-mode was still turned on. The only solution that worked was (a) a nasty workaround or (b) always typing M-x auto-fill-mode everytime I start emacs anew. I would be really happy to hear any solutions. To be clear, the only thing the current .emacs file contains is: '(inhibit-startup

Hooking some Emacs events to improve org-mode/MobileOrg integration

99封情书 提交于 2019-12-03 08:29:42
I've recently started using MobileOrg (through Dropbox) to be able to manage my org-mode TODO lists while I'm away from my computer. It's generally great, but the syncing back and forth has a few steps, so I'd like to try and simplify it a bit by automating the steps on the PC side. Anyway, here are the two things I'd like to do: Run org-mobile-push every time a file is saved, after the save completes. The only thing I use emacs for is org-mode, so this should be fine. Run org-mobile-pull on emacs startup. Run org-mobile-pull periodically, say every hour or so. Thanks. icyrock.com I don't have

How do I format the postamble in HTML-export with Org-mode?

六月ゝ 毕业季﹏ 提交于 2019-12-03 06:44:57
I am creating a website with org-mode and would like to format the postamble so it just shows the date created and the creator at the bottom of the page, in the center, and is horizontal. In my .emacs I have (setq org-export-html-postamble-format "Last Updated %d. Created by %c") and at the top of my index.org (and all other pages) I have # -*- org-export-html-postamble:t; -*- The postamble is formatted like this currently: Date: 16 March 2012 Org version 7.8.03 with Emacs version 24 Validate XHTML 1.0 arrayed vertically, which I don't very much like. Jonathan Leech-Pepin The reason it isn't