Emacs Org-mode Common Commands

Source: Internet
Author: User
Tags wrapper

Table of Contents

    • 1. Orgguide
      • 1.1. Introduction
      • 1.2. Document Structure Utility
      • 1.3. Tables
      • 1.4. Hyperlinks
      • 1.5. Todo ITESM
      • 1.6. Tags
      • 1.7. Properties
      • 1.8. Dates and Times
      • 1.9. Markup for Rich Exprot
      • 1.10. Working with source code
    • 2. Emacs Basic Operation
      • 2.1. Emacs Search
    • 3. emacs Display Picture
    • 4. Latex
    • 5. Footnotes
    • 6. Case: Org table row Delete does not take effect
1Orgguide Time
Table 1: Clock summary at [2016-12-21 Wednesday 22:30]
Headline    
Total time 0:04
Orgguide 0:04
? Dates and Times 0:04
?? Test 0:04
1.1Introduction1.2Document StructurePractical1.2.1Visibility Cycling
    • TAB subtree Cycling
    • S-tab Global Cycling
1.2.2Motion
    • C-c c-n Next heading.
    • C-c c-p Previous heading.
    • C-c c-f Next heading same level.
    • C-c c-b Previous heading same level.
    • C-c c-u backward to higher level heading.
1.2.3Structure editing
    • M-ret inserting siblings
    • M-s-ret Insert Sibling Todo
    • TAB to adjust the series of blank headings
    • M-left/right adjusting the current title series
    • M-s-left/right adjusting the entire subtree
    • M-s-up/down move title up or down
    • M-up/down move titles and content up and down
    • C-c c-w refile Entry or region to a different location. See 9.2???
    • C-x N s/w Sub-tree and global tree display toggle
1.2.4Sparse Trees
    • C-C/Activate S parse trees option
    • C-C/R input Regular expression, then generate sparse tree
1.2.5Plain lists

My favorite scenes is (in this order)

    1. The attack of the Rohirrim
    2. Eowyn ' s fight with the Witch King
      • This is already my favorite scene in the book
      • I really like Miranda Otto.

Important actors in this film is:- Elijah Wood :: He plays Frodo

Sean Astin
He plays Sam, Frodo ' s friend

Common commands:

    1. M-left/m-right without child indentation
    2. M-s-left/right with child indent
    3. C-c c-c Check, or full order
    4. C-c-cycle Peer list bullets
1.3Tables

|Name|Phone|C-c RET 自动扩展为table

|Name|Phone|Age||-TAB 自动扩展为---

Common commands:

    1. c-c | Active region is divided into tables by tab, ', ', blank characters, or empty tables
    2. C-c c-c, TAB, S-tab, RET can rearrange tables
    3. Format
      • <n> hidden; After hiding, the mouse stays to display. C-c ' Editable
    4. Row and column editing
      • M-left/right Moving column rows like
      • M-s-left/right kill and insert new column
      • C-C-Insert-,c-u down
      • C-c RET plug-, and line wrap
      • c-c ^ Sort
    5. C-c Spec Empty current grid
    6. Table calculation
      • C-c? or c-c} can view number
      • =Row (column) calculation c-c =; :=field calculates c-u c-c =.
      • C-c ' Mini buffer directly edits the formula to fit the S-<l/r/u/d> visualization selection range.
name Phone size <5>
A 123 1 124 This is too long
B 123 2 125
C 123 3 126
369 369
1.4Hyperlinks

The basic link form is as follows:[[link][description] ]

    • C-c c-l Insert a link; Up and donw can choose stored links; C-u can fill full-text name; edit;
    • C-c C-o Open
    • C-c & Jump back to a recorded position. C-c% rotation.

[[file:~/code/main.c::255] ]Find line 255 [[file:~/xx.org::My Target] ] find " [[file:~/xx.org::#my-custo] ] find entry with custom ID

[[file:test.PNG]\]A description is a connection, without a description is an inserted picture.

1.5Todo ITESM
    • C-c c-t remotely generates labels and can be cycled
    • S-right/left Loop Label
    • C-c/t Todo's sparse tree
    • C-c a T displays all Todo separately
    • S-m-ret inserting Todo

Multiple groups can be set; ' | ' Used to differentiate between action and end (Setq org-todo-keywords ' ((sequence "todo (t)" "|" "Done (d)") (Sequence "report (R)" "BUG (b)" "Knowncause (k)" "|" "FIXED (f)")))

can also be set separately in the file; c-c c-c effective

1.5.1Progress Logging

When you modify the status, you can automatically record the time and note. Highly customizable. You can also clock working time for a task.

Done when playing time and prompt write note (setq Org-log-done ' times) (setq org-log-done ' note)

‘!‘ Indicates the time, ' @ ' means note

Information can be put into drawer org-log-into-drawer

Priority c-c can be set, or S-up/down

Use [/] or [%] it will automatically calculate

    1. Organize Party [66%]
      1. done< /span> call People [2/2]
        • State ' done ' from ' TODO '
        • State ' done ' from ' Report ' [2016-07-15 Friday 20:47]
        • State ' done ' from ' TODO ' [2016-07-15 Friday 20:47]
      2. done talk to neighbor
1.6Tags

For marking and cross-referencing ': work:urgent: ' Put behind headline

Tags are inherited by the tree's parent-child relationship

    • (c-u) c-c c-q or C-c c-c at the title

of this document. C-c c-c takes effect #+TAGS: @work(w) @home(h) @tennisclub(t) laptop(l) pc(p) or is set globally in. Emacs (setq org-tag-alist ' (("@work", "W") ("@home".? h) ("Laptop".? l))

tags have a grouping function, an example is as follows:#+TAGS: { @read : @read_book @read_ebook }

Search command:

    • C-c
    • C-C/M generates the corresponding tag of the sparse tree, c-u can only generate Tode.
    • C-c a Create a global list of tag matches from all agenda files. See section 10.3.3

[Matching tags and properties], page 22.c-c a M Create a global list of tag matches from all agenda files, but check only Todoitems and checking subitems (see variable Org-tags-match-listsublevels).

The search syntax is as follows: ' +boss+urgent-project1 ' kathy| Sally '

1.7Properties

Put it in a special drawer.

You can also define the entire file#+PROPERTY: NDisks_ALL 1 2 3 4

    • C-c C-x P Set a property. This prompts is a property name and a value.
    • C-c c-c D Remove A property from the current entry.
1.8Dates and Times Time
Table 2: Clock summary at [2016-12-22 Thursday 23:24], for Thursday, December 22, 2016.
Headline  
Total time 0:14
? Dates and Times 0:14
1.8.1Test0

<2017-09-23 Saturday >–<2017-09-25 Monday >

1.8.2Test11.8.3Test21.8.4Timestamps
    • C-c. Insert, modify, continuous use Insert range
    • C-c C-o jumps from timestamps to agenda
    • C-c c-y Calculation Time range
1.8.5Deadlines and scheduling
    • C-c c-d Insert Delete deadline
    • C-c c-s Insert Delete scheduled
1.8.6Clocking work time
    • C-c c-x c-i Start Timing clock-in
    • C-c c-x c-o Stop Chronograph clock-out
    • C-c c-x c-e Set estimated completion hours effort
    • C-c c-x C-r Generating Hours Statistics Report
    • S-left/s-right after setting: block, you can choose the date and many other parameters can be set
1.9Markup for Rich Exprot

Use ' \ \ ' At the end of a line \\line
Lineline

Great clouds overhead
Tiny black birds Rise and fall
Snow covers Emacs
–alexschroeder

Everything should is made as simple as Possible,but no Simpler–albert Einstein

Everything should is made as simple as possible,
But isn't any simpler

*bold*, /italic/, underlined , =code= and ~verbatim, +strike-through+~

Tab:basic-data is used to refer to the following table

........................... ............................
1.10Working with source code

See python example below: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-python.html

def foo (x):  if x>0:    return x+1  else:    return x-1return foo (5) G
    • C-c ' Enter exit code block edit
    • C-x c-s writing code blocks from the edit area
2Emacs Basic Operations2.1Emacs Lookup
    • C-s C-s Find the next place, C-r reverse lookup Next
3Emacs Display Pictures

there should be a way to change the size. (setq org-image-actual-width nil) #+ATTR_ORG: :width 30 ~#+attr_html:width= "100px" ~

Test

    • Shortcut keys (c-u) c-c c-x c-v. No prefix is inline, prefix is all or m-x input org-toggle-inline-images
4Latex

The org-embedded latex has only some special symbols and superscripts. Angles is written as Greek lettersα,βandγ. c-c c-x \

Angles is written as Greek lettersα,βandγ. The mass if the sun is M_sun = 1.989 x 10^30 kg. The radius of the sun is RSun = 6.96 x 10^8 m. IF \ (a^2=b\) and \ (b=2\), then the solution must is either \ (a=+\sqrt{2}\) or \ (a=-\sqrt{2}\). \ (\vec{x}\)

\begin{equation} x=\sqrt{b} \end{equation}5Footnotes6Case: Org table row Delete does not take effect
    • M-x Find-function can find functions
    • C-h K re-enter the key combination to find the binding introduction

Table row Creation Delete cannot use discovery bound to move-text-up

Finally M-x Prelude-mode found that the key combination of deleted rows took effect.

Footnotes:1

The link is:http:/./orgmode.org

Emacs Org-mode Common Commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.