Emacs Précis-writers

Source: Internet
Author: User
Tags virtualenv

Brief introduction

Emacs as God's editor, do not introduce it, say something to feel.

After a while, the overall feeling is that Emacs is very simple, even more simple than vim, because in the X environment, it can be used like a notepad when opened. However, the use of Emacs people are generally programmers, and Emacs to be used to program, there is no such IDE, and always want to toss it into a good IDE, but also suffer from no suitable for their own configuration, in short, I now put Emacs into the IDE's complement, write a few small programs, can be used completely, And very convenient, large projects, or the IDE a little better, such as Pycharm,eclipse. However, no matter what programming language, basically can find in Emacs plug-ins, and some even IDE support is not good, such as Restructuredtext, in addition to the Linux environment, there is no better than the Magit plug-ins in emacs git GUI tools.

My configuration

As a programmer with the tools required, I certainly will not miss every configuration opportunity, ^_^, I uploaded the configuration to GitHub today, I hope to help beginners.

The address of the project is Https://github.com/windtail/emacs-config, we see, the Readme will know how to use, here will no longer say.

Restructuredtext

Rest in Linux looks like there is no good editor, Vscode may also be OK (not how to use), Sublime-text in the Linux Chinese input is half a day, Emacs25 default support Rst-mode, can write rest, but support is not good, Mostly emacs people are using Org, rest is not the mainstream of Emacs world. Fortunately, I currently only use a very small number of functions, but also two shortcut keys:

    • C-c c-=: Rst-adjust, enter three symbols under the title, such as---, and then press this, will automatically fill the length of the title
    • C-c c-c c-c: rst-compile, compiled into HTML, need to use Docutils
How to convert to a human form

Rest is good, but non-programmers they do not like, everyone generally want PDF or doc/docx, fortunately, it is relatively simple, it is recommended to use VIRTUALENV to manage the program required for conversion.

    • $ sudo apt install virtualenvwrapper
    • (Turn off the terminal and reopen one)
    • $ mkvirtualenv rst
    • $ pip Install docutils rst2pdf Sphinx

To use this virtualenv in the future, simply enter Workon rst in the terminal

    • rst2html.py can convert rest to HTML
    • rst2odt.py can convert rest to the ODT format, opened with open office, can be saved as a doc or docx format, or can be saved as a PDF format
    • Rst2pdf can theoretically convert rest to PDF, but appears to be unable to run under Python3 with syntax errors (temporarily unused)

In theory we can also use Pandoc to convert rest to various formats, such as PDF, but to PDF requires Tex support, and Tex Chinese has to spend half a day, and so have time to learn.

Emacs Précis-writers

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.