Emacs for all, all for Emacs

Source: Internet
Author: User

<title>Emacs for all, all for Emacs</title> Emacs for all emacstable of Contents
    • 1. How to enable Chinese input in Emacs?
    • 2. Is it possible to use version control tools like SVN, git, CVS ...?
    • 3. How does I make Emacs recognize the version-controlled files?
    • 4. How is the use of latex in Emacs?
    • 5. Where can I get the configuration files of Emacs?
    • 6. The most common command used in Linux Eshell
    • 7. How do I make fast switch between dual monitors?
    • 8. How to install the another font to Ubuntu and Fedora?
    • 9. How to use tramp to make local emacs capable of editing remote files?
    • Use Multi-term mode on Emacs for full-functioning terminal emulation.

It has been a long time since I began working with Emacs, one of the greatesteditors in Linux systems. It's really hard for a beginner to learn what to Useit, especially for those who was addicted to the GUI, using Emacs mean s that allthe work done by clicking the mouse before are replaced by the various keystrikes. I can still remember I had a difficult time adjusting to Emacs, but itturns out that the more I learn about Emacs, the Mor e I feel I need to learn. Nearly all the work can is done under it (with the help of numerous plug-ins), so, in this article, I'll record my emacs Configuration and the useful Toolsi find during the past of the years of using Emacs. I do this because I want tohave a easy time next time I re-install the OS, or I can easily set upthe familiar Enviro Nment when I work with others somewhere not on my owncomputer.

As always, I'll take the Q&a form of writing styles, to make it clean andsimple, most of all, make it useful to not Only myself but the vast majoritywho is using Emacs.

1How to enable Chinese input in Emacs?2Is it possible to use version control tools like SVN, git, CVS ...?

As long as you can think, there is always some ". El" Files waiting for Youon The Internet, you can easily find them, and The good news is Emacs enableyou use SVN, CVS directly, it'll automatically recognize the version-edfiles and you can us e Simple commands (key strikes) to update, commit and AddFiles to your repository.
The most often used commands of SVN:

And the corresbonding key strokes:

3How does I make Emacs recognize the version-controlled files?

The only thing to do are to open these files with Emacs:
For example:

SVN Co https:172.31.8.31:4430/svn/project

Would checkout the files from a SVN server, and Emacs would recognize them automatically.

4How do I use latex in emacs?5Where can I get the configuration files of Emacs?
SVN checkout Http://emcs-bk.googlecode.com/svn/trunk/emcs-bk-read-only

The above link is available, and can be checked out with SVN.

6The most common command used in Linux Eshell
Uncompress *.tar.bz2 FILE:TAR-JXVF *.tar.bz2
7How to make fast switch between dual monitors?

It is necessary-start a new frame in Emacs so that the Emacs would keep asingle input stream for all the frames. The command is C-x 5 2, or File->new Frame.
After creating a new frame, bind the short key for switching the frame.

(Global-set-key (kbd "M-ret") ' Other-frame)
8How to install the another font to Ubuntu and Fedora?

Recently, I learned about a programming-friendly font named m+, and I wantto use it in Emacs, the following steps Should is done to does this:

sudo apt-get install fonts-mplus (or yum install)

In. emacs file, add/modify the following line:

(Set-default-font "m+ 2c 13")))
9How to use TrampTo make local emacs capable of editing remote files?

Open file in remote machine:

C-x c-f/ssh:[email Protected]:~/work/somefile

When the files are changed in remote directory, it's likely that Emacs Tramp Willnot being able to stay synchronized with the LA Test change, that means, Thecommand c-x c-f would not find the newly added files or directories. In Thiscase, the Ido auto-complete should is refreshed, using the following command:

"M-x ido-reread-directory"
TenUse Multi-term mode on Emacs for full-functioning terminal emulation.

The Eshell tries to provide the simple operations of a standard shell likebash, but it lacks some basic Functions like input redirection, so I changedthe Eshell to multi-term in my configure file.

  ;;The goal is to open a small shell buffer to make it easier to test the program(That means running the program.), I often use it.;;F8 's just another buffer and open the shell,c.-F8 opens the shell in the current buffer,Shift+F8 emptying Eshell(Defun Open-Eshell-Other-Buffer ()  "Open Eshell in other buffer"  (Interactive)  (Split-Window-Vertically)  (Eshell));;I changed the Eshell to Multi-Term, becauseMulti-Term was much more functional than Eshell(Defun Open-Term-Other-Buffer ()  "Open Eshell in other buffer"  (Interactive)  (Split-Window-Vertically)  (Multi-Term))

Author:wujing

CREATED:2014-10-18 Six 11:09

Emacs 24.3.1 (ORG mode 8.2.6)

Validate

Emacs for all, all for Emacs

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.