org-mode

Inline code in org-mode

↘锁芯ラ 提交于 2019-12-03 02:49:43
问题 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 ... 回答1: 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

Setup a personal wiki in Emacs Org-mode

▼魔方 西西 提交于 2019-12-03 02:28:17
I would like to setup a personal wiki in org-mode. So far, I have tried this two ways. My first attempt was using a single "Scientific Notebook.org" file. In this went all my notes - each with its own headline, date and tags (same format as a blog post). I then turned on org-velocity to quickly navigate the file. But this created two problems: first, I use a lot of math in my notes (LaTeX previews are one of the reasons I want to us org). But these take sooooo long to load, I can't images trying to open a file with several thousand entries (all filled with math!!) The other problem I have is

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

微笑、不失礼 提交于 2019-12-03 01:31:40
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... 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. (setq lexical-binding t) (let ((*outline-data* nil)) (defun org-save-outline-state (&optional arg type) (setq

Emacs, How can I display only current task and hide others in org-mode?

时光怂恿深爱的人放手 提交于 2019-12-02 21:08:14
Org-mode. I have a big tasks tree and I want to select only 1 in buffer (write notes just for it) and hide others while editing. How can I do this? task-1 subtask-1.1 subtask-1.2 task-2 subtask2.1 ... ... For example I want to display for me only: subtask-1.2 (notes for this subtask) Use narrow-to-defun or org-narrow-to-subtree command with point in task. ( widen to move back to whole buffer content). Default shortcuts: C-x n s # org-narrow-to-subtree (bound in org-mode) C-x n d # narrow-to-defun C-x n w # widen Manual 来源: https://stackoverflow.com/questions/13720898/emacs-how-can-i-display

emacs: Orgmode, how to make a list from a block of lines

只愿长相守 提交于 2019-12-02 20:52:28
Is there a way to covert such block of lines line1 line2 linen into 1. line1 2. line2 n. linen Using Emacs org mode don't know if there is a direct way, haven't heard of it yet at least. But one approach would be to use string-rectangle ( C-x r t ) to prepand 1. to all lines and then hit C-c C-c to update the numbering. For string-rectangle you would put point and mark the following way: v---mark line1 with some text line2 with more text <---point After M-x: string-rectangle: 1. you will get: 1. line1 with some text 1. line2 with more text Hitting C-c C-c will give you the correct numbering!

Emacs Org-mode - Export to another directory?

非 Y 不嫁゛ 提交于 2019-12-02 20:33:39
I know this is kind of minor, but it's been bugging me. I'm using Org-mode for a project and I tend to export to either PDF or HTML rather frequently and it leaves my directory littered with PDF, Tex, and HTML files. Is there a way to have Org-mode export to another location, perhaps a subdirectory called ./exports? In addition to the use of publishing by modifying your org-publish-project-alist variable as @user1248256 suggested, you can directly specify the org-export-publishing-directory variable within your file: #+bind: org-export-publishing-directory "./exports" * This is a test headline

Organizing notes with tags in org-mode

孤街醉人 提交于 2019-12-02 19:29:34
So, I use org-mode extensively for my daily TODO requirements. I am wondering if I can also use it effectively for note keeping. What I basically want is to store notes with tags, and then want to search these notes by the tags. E.g. If I have something like this * Heading 1 ** Note 1 :tag1:tag2: Note 1 details ** Note 2 :tag3: Note 2 details * Heading 2 ** Note 3 ** Note 4 :tag1: Note 4 details and then I search for tag1, I should have something like- * Heading 1 ** Note 1 :tag1:tag2: Note 1 details * Heading 2 ** Note 4 :tag1: Note 4 details I would prefer being able to do this without

How to automatically do org-mobile-push org-mobile pull in emacs

点点圈 提交于 2019-12-02 19:21:07
Since I am using org-mode to track my todo list in emacs, I like the iPhone app: MobileOrg, with it, I can access my todo list all day. But here's the problem: I have to manually org-mobile-push my changes from local file to mobile phone through dropbox, and org-mobile-pull the changes made by phone back. How to make that automatically? Like adding some recipes in dotemacs file. Chris Zheng Add these two lines to dot emacs file: (add-hook 'after-init-hook 'org-mobile-pull) (add-hook 'kill-emacs-hook 'org-mobile-push) With them, it automatically pulls the changes on emacs startup, and pushes

How to make org-protocol work?

吃可爱长大的小学妹 提交于 2019-12-02 17:39:27
I tried the instructions here - I am using firefox on Lubuntu (openbox). But I get the error "Firefox doesn't know how to open this address, because the protocol (org-protocol) isn't associated with any program". How should I fix this? The following steps for setting up org-protocol work with Ubuntu 16.04 and presumably later versions. Org-mode is assumed to have already been set-up (and installed using apt-get install org-mode or via the ELPA repository ). Set-up 1) Add .desktop file Create and save a file called org-protocol.desktop to ~/.local/share/applications containing: [Desktop Entry]

How to resize images in org-mode

别来无恙 提交于 2019-12-02 15:47:53
Is there a general way to define the size, in percent or pixels, for an image that is linked in org-mode ? Say I have the following link in my .org file: [[~/images/example.jpg]] This JPG is way too large, so if I export it to HTML or LaTeX or open it in org-mode with C-c C-o i will only see a fraction of the image. yPhil As of Org 8.0 , "Attribute lines now take plists " : #+attr_html: :width 100px #+attr_latex: :width 100px [[~/images/example.jpg]] As per Jacobo's comment, add the following to your init.el file: (setq org-image-actual-width nil) Then in org-mode, you can use this for inline