2008年12月8日星期一

emacs abbrev 献给懒人的利器

      缩写模式

If you want the abbreviation to exist from one session to the next, you must insert the following line into your .emacs file:
(read-abbrev-file) 

When this line is in the .emacs file, abbreviations are loaded during startup of Emacs; when Emacs exits they are written. If you want the abbreviations to be saved as soon as they are defined, insert the following into your .emacs file:

(sams-write-abbrev-at-once) 

C-x a i g (inverse-add-global-abbrev)
C-x a i l (inverse-add-mode-abbrev
M-x edit-abbrevs   然后可以直接编辑 php-mode-abbrev-table 这一块

没有评论: