org-mode

Collapsible headings/accordion from markup exported html

守給你的承諾、 提交于 2020-01-16 19:35:49
问题 I'm trying to achieve a webpage with each h2 acting as items of an accordion. When clicked, the contents under the heading should expand (after being hidden). I've been through a bunch of tutorials, but they usually use specific html (using links or buttons) but my html is exported from a markup language (orgmode) so can't be customised this way (at least I'd prefer not to). I haven't been able to modify any of them to suit my needs. I'm not sure if the best solution would use css or

Change the node attributes in Org-mode Mind-Map

可紊 提交于 2020-01-16 11:50:28
问题 Trying to modify org-mind-map to change the attributes of the nodes and edges. I haven't really learned the internals of emacs and org-mode, and use them "as is" - without making modifications, and therefore not really understanding. So, it would be great if one could explain what custom options means and how to implement them in a org file. This will help me work with other org-mode files also. I do not know how to even call this problem properly, otherwise I would have google-fu'd this. So,

Narrow to subtree with org-velocity

只愿长相守 提交于 2020-01-15 12:15:47
问题 I would like to use org-velocity as my primary means of navigating large .org files but with the following changes: After running a search in org-velocity, I would like the buffer to automatically narrow to that subtree, once I make my selection. Org-velocity should run its search against the entire file, even if the buffer is narrowed. For part (1) I think something like this should work: (add-hook 'org-follow-link-hook (lambda () (org-narrow-to-subtree))) But this is not the right hook. Not

Capturing the output of “diff” with org-babel

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 08:22:28
问题 I'm trying to capture the output of diff with org-babel, but for some reason it's not working. For the files 1 a b c 2 a c b diff 1 2 called from the command line returns 1c1 < a b c --- > a c b But with org-babel, nothing: #+begin_src sh diff 1 2 #+end_src #+RESULTS: The minibuffer reads "Code block produced no output". The org-babel error output window is empty. Other commands such as ls show the output as expected. I'm not familiar with org-babel. I tried using :results output verbatim ,

How to syntax highlight for Org-mode inline source code src_lang{}?

核能气质少年 提交于 2020-01-12 14:53:28
问题 Is there a way to syntax highlight Org-mode inline source code which is marked with src_ruby{Array.new} ? Does Org-mode has default option for this ? Or Is there other method to do this ? 回答1: UPDATE: the correct answer to this particular question is following https://stackoverflow.com/a/28059832/462601 . Answer presented here is related to this question Syntax highlighting within #+begin_src block in emacs orgmode not working You mean like syntax-highlighting source blocks in buffer? #+BEGIN

How do I keep Emacs org-mode from splitting windows?

匆匆过客 提交于 2020-01-12 07:38:47
问题 I'm a new emacs user using emacs for the awesome org-mode. I have links to all my org files at the top of my pages but everytime I click a link it splits my window, so I only have half of the screen estate available. How do I set it so that emacs does not split the window horizontally but rather opens up a new window for my links? 回答1: I'm assuming you mean you want to open the link in a new frame. (Emacs terminology is a bit different from other GUI apps, because Emacs predates X11. What

Generate Org-mode objects programmatically

左心房为你撑大大i 提交于 2020-01-12 03:32:12
问题 I want to generate strings containing Org-mode text without actually hard-coding the syntax. For example i want to run a function such as (org-generate (org-generate-heading "heading" (org-generate-plain-list '("foo" "bar" "baz"))) and it will return: * heading - foo - bar - baz In other words, i want to create Org-mode documents of arbitrary complexity without micromanaging syntactic features like asterisks and indentation, only via calling functions with parameters, that return some Org

Org-capture: Todo goes to default capture file

混江龙づ霸主 提交于 2020-01-06 05:16:49
问题 My .emacs : ;; enable orgmode en set files (require 'org-install) (setq org-directory "~/Dropbox/GTD/") (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (define-key global-map "\C-cl" 'org-store-link) (define-key global-map "\C-ca" 'org-agenda) (setq org-log-done t) (setq org-agenda-files (list (concat org-directory "nextactions.org") (concat org-directory "projects.org") (concat org-directory "birthday.org"))) ;; Daily action list (setq org-agenda-custom-commands '( ("D" "Daily Action

Org-capture: Todo goes to default capture file

試著忘記壹切 提交于 2020-01-06 05:16:07
问题 My .emacs : ;; enable orgmode en set files (require 'org-install) (setq org-directory "~/Dropbox/GTD/") (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (define-key global-map "\C-cl" 'org-store-link) (define-key global-map "\C-ca" 'org-agenda) (setq org-log-done t) (setq org-agenda-files (list (concat org-directory "nextactions.org") (concat org-directory "projects.org") (concat org-directory "birthday.org"))) ;; Daily action list (setq org-agenda-custom-commands '( ("D" "Daily Action

How can I make org-mode store state changes for a repeating task in a drawer?

爱⌒轻易说出口 提交于 2020-01-06 04:25:07
问题 Basically, I have a lot of tasks that are set to repeat and I like keeping records of what days they actually get done, but the recorded state changes don't collapse nicely. Is there some way to make emacs store them in a drawer or some other structure that's collapsible? EDIT: org-version 8.2.7 回答1: There is an option called org-log-into-drawer (doc here) to control this. If set to non-nil, all state changes and notes will be added to a drawer. You can even control the order in which changes