org-mode

Assign IDs to every entry in Org-mode

为君一笑 提交于 2019-11-30 02:28:13
Org-mode has a bundled extension called org-id , that implements global unique IDs for org-mode files. Every entry (a headline with its body) can have an ID property in its :PROPERTIES: drawer. New ID for a single entry can be assigned with a function org-id-get-create . How can I assign an ID to every entry in an org-mode file? I could use an Emacs method of automating this, like a macro that calls org-id-get-create for every string starting with * . But I'd like to know if org-mode already has that capability. If not, please recommend the most idiomatic way to write an elisp code for this

Emacs Org-Mode: Turn off line numbers

痞子三分冷 提交于 2019-11-30 01:40:17
I've recently moved from vim to Emacs because I want to use org-mode . I opened a ~10000 line, 50kb file in Emacs23 Org-mode and proceeded to add about 10 first-level headings. Performance on a quad-core with 3GB RAM in Emacs23 under Ubuntu 10.04/32bit was so slow that it was unusable. I found two threads on the Org-mode email list discussing this. It seems that enabling linum causes the slow performance. I can live without line numbers in .org files if I have to, but I don't want to disable line numbers for all files I edit. If I'm going to "live" in `Emacs', I'll want line numbers for all

Emacs org-display-inline-images

爷,独闯天下 提交于 2019-11-29 23:02:15
How can I display inline images in emacs org mode? I have [[file:~/myimage.png]] , which, when clicked, opens the image in a new buffer. But how to do it in the same buffer? Note: C c C x C v is undefined, so I couldn't activate the inline images, but how do I solve this problem? This works for me: (defun do-org-show-all-inline-images () (interactive) (org-display-inline-images t t)) (global-set-key (kbd "C-c C-x C v") 'do-org-show-all-inline-images) And here's how I found how to do it: M-x apropos RET org.*image.* . F1 f org-display-inline-images . make a test.org with a link to picture. M-:

How can I make Org-mode export to LaTeX with a specific preamble?

别说谁变了你拦得住时间么 提交于 2019-11-29 20:30:25
When I do C-c C-e l to export an Org file to LaTeX it produces a document with a particular preamble. Instead of this particular preamble I would like it to use a preamble of my choice. Say that I want it to use the following preamble: % Don't forget to qpdf --linearize the final copy \RequirePackage[l2tabu,orthodox]{nag}% Old habits die hard. All the same, there are commands, classes and packages which are outdated and superseded. nag provides routines to warn the user about the use of those. \immediate\write18{sh ./vc} \input{vc}% Version control macros (for \VCDateISO in \date) http://www

Override Ctrl-TAB in EMACS org.mode

99封情书 提交于 2019-11-29 17:44:42
问题 I would like to use Ctrl + Tab in EMACS for my own use, but Emacs org mode already has this bound. How can I use my own binding instead of the org-mode binding. In my .emacs file I use: (global-set-key (kbd "<C-tab>") 'switch-view ) and it works everywhere except in org-mode 回答1: The key binding you describe is defined in org.el like this: (org-defkey org-mode-map [(control tab)] 'org-force-cycle-archived) This means that it is only valid in org-mode-map , one of org-mode's local keymaps. The

exporting vertical lines in org mode table to LaTeX

十年热恋 提交于 2019-11-29 07:05:46
问题 I'm using emacs as my editor and I am toying with org-mode which looks rather useful. I'm generating a table (spreadsheet) in org mode and it is exported correctly to LaTeX apart from the vertical lines. Is there a way to export them? I want to have a way to define some of the vertical lines as visible. 回答1: You can give the format to the table for LaTeX with #+attr_latex: , say: #+attr_latex: align=|c|c|c| |------+-----+-----| | A | B | C | |------+-----+-----| | 2.34 | 2.7 | 8.9 | | 3.67 |

how to end TODO lists in emacs org-mode

二次信任 提交于 2019-11-29 02:26:19
I have a list of TODO items, and I'm trying to have 2 TODO lists in the same file, but can't seem to end the first one. FIRST LIST: TODAY * TODO Item 1 Description * TODO Item 2 Description SECOND LIST: TOMORROW * TODO Item 3 Description * TODO Item 4 Description Unfortunately, SECOND LIST: TOMORROW is now part of the description of TODO Item 2 . By this, I mean that when I hit shift-tab, I no longer see the text SECOND LIST: TOMORROW because it folds under TODO Item 2 . What I see is.. FIRST LIST: TODAY * TODO Item 1 * TODO Item 2 * TODO Item 3 * TODO Item 4 While what I'd like to see is...

How to make part of a word bold in org-mode

丶灬走出姿态 提交于 2019-11-29 01:49:38
How can I make org-mode markup work for a part of a word? For example, I'd like it to work for cases like this: =Class=es and this: /Method/s Based on my tests it seems like org-mode markup syntax works on complete words only. David Miani I don't think you can do it so that it shows up in the buffer as bold. If you just need it so that it appears bold when you export it to html, you can use: th@<b>is is ha@</b>lf bold See Quoting HTML tags These days, there is a way to do this (without using quoted HTML tags): (setcar org-emphasis-regexp-components " \t('\"{[:alpha:]") (setcar (nthcdr 1 org

How do I make Org-mode open PDF files in Evince?

拥有回忆 提交于 2019-11-28 22:35:17
In Org-mode when I try to open a link to a PDF file nothing happens. Also, when I do C-c C-e d to export as LaTeX and process to PDF and open the PDF is generated but not opened. How do I make Org-mode open PDF files in Evince? I am using Org-mode 7.6 in GNU Emacs 23.3.1 and Evince 3.2.1 in Ubuntu 11.10. Jonathan Leech-Pepin Another possible construct that could work for this would be to use eval-after-load rather than add-hook . It will only set the values once on startup, you won't have to worry about entries being added or not (unless you regularly reload org). Combine that with setcdr and

Emacs Org-Mode: Turn off line numbers

99封情书 提交于 2019-11-28 22:30:39
问题 I've recently moved from vim to Emacs because I want to use org-mode . I opened a ~10000 line, 50kb file in Emacs23 Org-mode and proceeded to add about 10 first-level headings. Performance on a quad-core with 3GB RAM in Emacs23 under Ubuntu 10.04/32bit was so slow that it was unusable. I found two threads on the Org-mode email list discussing this. It seems that enabling linum causes the slow performance. I can live without line numbers in .org files if I have to, but I don't want to disable