Use zencoding in Emacs

Source: Internet
Author: User

In the morning, the company had a power failure and could not connect to the server. So we just need some time to try Emacs.

At home this weekend, I read chapter 1 of Emacs lisp introduction. I accidentally thought that the apostrophe in Emacs is somewhat like a C language pointer. In fact, C language and lisp represent two styles. They are not compatible, but complementary styles. They are consistent in their origins.

Zen code is a shortcut for writing markup language, which is also implemented in Emacs. We can install corresponding plug-ins in Emacs.

 

1. Download the implementation of Zen code

 

2. Copy it to the appropriate directory.

In this example:. emacs. d/plugins/zencoding/

 

3. Add the following configuration to. emacs:

; Zen Coding
; 'Zencoding-expand-line bound to C-return
(Add-to-list 'Load-path "~ /. Emacs. d/plugins/zencoding /")
(Require 'zencoding-mode)
(Add-hook 'sgml-mode-hook' zencoding-mode); Auto-start on any markup Modes

Then you can use zencoding and use C-ret to bind to zencoding-expand-line to expand the zencoding expression.

 

For details:
Http://code.google.com/p/zen-coding/
Http://www.emacswiki.org/emacs/ZenCoding

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.