org-mode

Inline code in org-mode

耗尽温柔 提交于 2019-12-02 14:47:32
Markdown allows for embedded code . How can this be done in org-mode ? I know about source-code blocks: #+begin_example blah-blah #+end_example But what I want is something like this (obviously, with the right syntax, which I do not know): This is `embeded code`. Can this be done in org-mode ? Not possible to find that in the documentation ... You can enclose the text within = or ~ signs to have it typeset in monospaced font and export it verbatim (which means it is not processed for org-specific syntax): This is =verbatim text= or ~code~. You'll find all information about org-mode markup

How to match / parse the notes at the end of a task in org-mode

喜夏-厌秋 提交于 2019-12-02 06:19:12
问题 I'm looking for a way to match what I call the "notes", which is the last line (or set of lines) of an org task that says: " These are the notes of the task. " I have composed a really long regexp that may do the job, but I am hoping that org-mode already provides something better: "^\\(\\*\\*\\)\\(?: +\\(Active\\|Next Action\\|Hold\\|Reference\\|Delegated\\|Postponed\\|Waiting\\|Someday\\|Planning\\|Canceled\\|None\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(.*?\\)\\)??\\(?:[ ]+\\(:[[:alnum:]_@

Emacs Python: Echoing, Hooks and Org-mode

孤人 提交于 2019-12-02 05:51:40
问题 Based on this question I discovered how to fix the echoing problem in the python shell in emacs. What I want to do is add this to my .emacs file so that it will happen automatically. (defun python-startup () (setq comint-process-echoes t)) (add-hook 'py-shell-hook 'python-startup) If I start a python shell ( M-x python-shell ), this hasn't worked. Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for

Configuring emacs for showing fixed width inline images

半腔热情 提交于 2019-12-02 04:28:48
问题 Follow up to: Emacs org-display-inline-images I managed to show inline images following abo-abo's advice. Now I want to set a fixed width size for all of them. Setting (setq org-image-actual-width 50) didn't work. Emacs picked the variable, but it isn't doing anything to the images. The idea is to show them as thumbnails. Note: I am using emacs 24.2 on Linux. I can show thumbs using M x image-dired, however, I want to show fixed size images under org mode. Normal images can already be shown.

Emacs Python: Echoing, Hooks and Org-mode

為{幸葍}努か 提交于 2019-12-02 02:45:41
Based on this question I discovered how to fix the echoing problem in the python shell in emacs. What I want to do is add this to my .emacs file so that it will happen automatically. (defun python-startup () (setq comint-process-echoes t)) (add-hook 'py-shell-hook 'python-startup) If I start a python shell ( M-x python-shell ), this hasn't worked. Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 22 22 22 I can run this function with M-: (python-startup) , and then the

Configuring emacs for showing fixed width inline images

不想你离开。 提交于 2019-12-02 01:27:26
Follow up to: Emacs org-display-inline-images I managed to show inline images following abo-abo's advice. Now I want to set a fixed width size for all of them. Setting (setq org-image-actual-width 50) didn't work. Emacs picked the variable, but it isn't doing anything to the images. The idea is to show them as thumbnails. Note: I am using emacs 24.2 on Linux. I can show thumbs using M x image-dired, however, I want to show fixed size images under org mode. Normal images can already be shown. I've looked at org-display-inline-images source: it's just calling create-image . It seems there's no

How to make org syntax links in any emacs buffer look like in org-mode?

泄露秘密 提交于 2019-12-01 17:42:05
I am using emacs org-mode for managing my notes. Often I wish to use links to this notes from files, which I am editing in other modes, like AUCTeX. See here for a descriptive screenshot . (I am not yet allowed to post images here.) Storing and following this links works pretty well. But I find it disturbing to read the full org syntax of the links: [[file:notes.org::*note][Description]] , which is obviously not folded outside of org-mode. I wonder if there is any minor-mode which provides the folding of such links to a clickable Description , like it is done in org-mode. You can use links

How to make org syntax links in any emacs buffer look like in org-mode?

痴心易碎 提交于 2019-12-01 15:27:22
问题 I am using emacs org-mode for managing my notes. Often I wish to use links to this notes from files, which I am editing in other modes, like AUCTeX. See here for a descriptive screenshot. (I am not yet allowed to post images here.) Storing and following this links works pretty well. But I find it disturbing to read the full org syntax of the links: [[file:notes.org::*note][Description]] , which is obviously not folded outside of org-mode. I wonder if there is any minor-mode which provides the

How to type a dynamic file entry for org capture

雨燕双飞 提交于 2019-12-01 10:38:08
I'm trying to figure out if there is some way to create a dynamic file name for capture in emacs org-mode. ("z" "test" entry (file+headline ***A date specific headline*** "Notes")) "** %^{prompt}") Is there some simple way to pass a date and year to the file part, so that I can have a file dynamically created for each month. What I'd like is something like this: (concat "/home/me/file/report_notes_" (format-time-string "%m_%Y") ".org") Edit - I've finally got it working, using backquoting: `(("z" "test" entry (file+headline ,(capture-report-date-file "/path/path/name_") "Notes") "** %^{prompt}

how do I get started using Emacs' documentation?

一世执手 提交于 2019-12-01 05:11:21
I want to familiarize myself with Emacs' self-documenting help systems so I can figure things out on my own. Example: I want to learn how to use org-mode's :VISIBILITY: property so that I can make certain subtrees always open in an expanded state. I took a guess as to the syntax... :VISIBILITY: CHILDREN ...but it didn't work. So I want to use the help system to figure it out. So I do this: M-x apropos Apropos symbol (word list or regexp): org visibility No help there. C-h v Describe variable org visibility org-inhibit-startup-visibility-stuff No help there. C-h a visibility org-set-visibility