Emacs中使用Zencoding

來源:互聯網
上載者:User

上午公司停電,連不上伺服器。所以正好找些時間來折騰Emacs。

周末在家看了emacs lisp introduction的第一章,無意間覺得Emacs中的”’”(apostrophe)有些像C語言的指標了。其實C語言和Lisp代表了兩種風格,不是相容的風格,而是互補的的風格,一種在本源上一致的風格。

Zen Code是一種書寫標記語言的捷徑,在Emacs中也有相應的實現。我們可以在Emacs安裝相應的外掛程式。

 

1,下載Zen Code的實現

 

2,將其拷貝到合適目錄

本例是:.emacs.d/plugins/zencoding/

 

3,在.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

這時你便可以使用ZenCoding了,使用C-Ret來綁定到zencoding-expand-line,藉此來展開Zencoding運算式。

 

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.