Emacs notes Two

Source: Internet
Author: User

Emacs Note Two table of Contents
    • 1. Preface
    • 2. Emacs Basic operation (common shortcut keys)
    • 3. Emacs Mode Explanation
    • 4. Emacs Buffers
    • 5. org mode
      • 5.1. List
      • 5.2. Fast Key
      • 5.3. Inline elements (insert code or whatever)
      • 5.4. Forms
1 Preface

Recently learning to write a blog, found that Markdown is really an artifact, so went to find a lot of markdown tools, found that the best homework tribe, and inadvertently found org-mode hot to the extreme is highly praised, in fact, the operation of the tribe has been able to meet my needs is perfect, but, but , but, see God's editor has such a killer mode, can not help to taste, this article is written in Org-mode

2 Emacs Basic Operations (common shortcut keys)

I'm a portal.

3 Emacs Mode explained

This is a personal understanding, not copied off the Internet, there must be discrepancies, welcome to add

    • The editing mode is similar to vim pressing a after the mode, you can enter and modify the text. This mode can run a number of shortcut keys, such as mobile
    • Shortcut key Command mode the shortcut key mode command is c-x. Under this mode, visual can only enter the shortcut key command, such as Open File command: c-f, save command: to C-s, etc.
    • function Command mode enter function Command mode command for M-x, in this mode, visual can input function command, such as replace command: replace-string, etc.
4 Emacs Buffers
    • Open buffer: C-x c-b, first enter the shortcut key command mode, and then hit the shortcut key c-b, list the buffer
5 org Mode

Enter the org mode command for m-x Org-mode

    • Font
  * Bold *  /Italic/** Strikethrough +  _ underline _ Subscript  : h_2 O (here must leave a space otherwise 2 and O all become small standard, currently do not know how to remove the space) superscript  : e=mc^2  , such as wide words:  Git
5.1 list
    1. Unordered "-", "+", "*" switch
    2. Orderly with "1." or "1)" switch
    3. Note that there is a space after the list symbol * the sibling list indents to be the same * if you want to join a sibling list, use M-enter * empty two lines after the list ends, if an empty row to execute M-enter, actual or sibling
5.2 Quick Keys
Shortcut keys Description
S-tab Cycle through the outline state of an entire document (collapse, open next level, open all)
TAB Cycle through the outline state where the cursor is located
C-c c-n/p Move to previous/next title
C-c C-u Skip to the top level heading
C-c C-j Switch to outline preview state
M-ret Insert a title at the same level
M-left/right Current Title upgrade/downgrade
C-C * Set the bank as the title or body
5.3 Inline elements (inserting code or something)

There are several org-mode in the following categories:

S    #+begin_src ... #+end_src e #+begin_example ...    #+end_example  : Example of a single line starting with a colon Q    #+begin_quote ... #+end_ Quote is      typically used for references, leaving the indent v #+begin_verse relative to the default format ...    #+end_verse      default content does not wrap, you need to leave a blank line to wrap C    #+begin_center ... #+end_center l    #+begin_latex ... #+end_latex l    #+latex:h    #+begin_html ... #+end_html h    #+html:a    #+begin_ascii #+end_ascii A    #+ascii:i    #+index:line i    #+include:line

Quick key for <s + TAB as:

     #+begin_src c-n-t-h 7-w     #+end_src   where:    C for the added language-    n display line number-    t clear format-    H 7 Set height to 7-w 40 set width to 40
5.4 Table

in org mode, you can draw a table. The method is simple, enter ' | ' in the position of a line shelf, enter the contents of the first column of the first row of the table, enter ' | ', and then enter the contents of the second row of the table, and so on. When the first line is finished, press TAB, org mode aligns the current line, and then creates the next line of the table for you, allowing you to continue typing. Tabs and S+tab can be used to move forward or reverse in a table.

    • Example 1
      #+caption: Title of Table | 1 | One                          | | 2 | | |                          | 3 | This is a long chunk of text | | 4 | Four                         |
    • Example 2, sometimes a particular length of a table, you can enter a number in the blank of any table to limit the length of its column. Like what:
      |   | <6>    | | 1 | one    | | 2 | | |    | 3 | this=> | | 4 | Four   |

Date: <2014-10-27 Monday >

Author:eqyun

Created:2014-10-27 Monday 22:20

Emacs 24.3.1 (ORG mode 8.2.10)

Validate

Emacs notes Two

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.