Install and use Emacs on RHEL 5

Source: Internet
Author: User
Tags screenful

1. install latest emacs
Xz-d emacs-24.3.tar.xz
Tar xvf emacs-24.3.tar
./Configure
Make
Make install # need root
2. install Steve Purcell's emacs config
Git clone https://github.com/purcell/emacs.d.git
Rm-rf. emacs. d/emacs
Mv emacs. d/. emacs. d/
Emacs # first time will download related module
3. increase/decrease font size
C-x C --
C-x C-+

4. hotkey


C-v Move forward one screenful
M-v Move backward one screenful
C-l Clear screen and redisplay all the text,
Moving the text around the cursor
To the center of the screen.
C-f Move forward a character
C-B Move backward a character

M-f Move forward a word
M-B Move backward a word

C-n Move to next line
C-p Move to previous line

C-a Move to beginning of line
C-e Move to end of line

M-a Move back to beginning of sentence
M-e Move forward to end of sentence

C-x C-B List buffers
C-x B TUTORIAL <Return> Swith buffer
M-x kill-some-buffers
C-x Character eXtend. Followed by one character.
M-x Named command eXtend. Followed by a long name.

C-x C-f Find file
C-x C-s Save file
C-x s Save some buffers
C-x C-B List buffers
C-x B Switch buffer
C-x C-c Quit Emacs
C-x 1 Delete all but one window
C-x u Undo

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.