Address: http://coon.blogbus.com/logs/2039658.html
The following GIF is a demo of Emacs's MSF-abbrev function. Is it very strong? Haha
This is Author's Homepage .
To configure this effect, follow these steps:
Download Msf-abbrev.el
Download Glibc-abbrevs.tar.gz
Create an Emacs folder in your home directory
Put the above two files ~ /Emacs, and then decompress glibc-abbrevs.tar.gz.
In ~ /. Add the following content to Emacs:
(Add-to-list 'Load-path "~ /Emacs ")
; Ensure abbrev mode is always on
(Setq-default abbrev-mode t)
; Do not bug me about saving my abbreviations
(Setq save-abbrevs nil)
; Load up Modes I use
(Require 'CC-mode)
; (Require 'perl-mode)
; (Require 'cperl-mode)
; (Require 'sh-script)
; (Require 'Shell)
; (Require 'tex-site); I use auctex
; (Require 'latex); needed to define latex-mode-hook under auctex
; (Require 'tex); needed to define Tex-mode-hook under auctex
; (Require 'python); I use python. El from Emacs CVs, uncomment if you do also
; Load up abbrevs for these modes
(Require 'msf-abbrev)
(Setq MSF-abbrev-verbose T); optional
(Setq MSF-abbrev-root "~ /Emacs/mode-abbrevs ")
(Global-set-Key (KBD "c-c l") 'msf-abbrev-Goto-root)
(Global-set-Key (KBD "C-c a") 'msf-abbrev-define-New-abbrev-this-mode)
(MSF-abbrev-load)
; Font
(Create-fontset-from-fontset-spec
"-*-Courier-Medium-r-normal-*-14-*-fontset-14 ")
(Set-fontset-font
"Fontset-Default" Nil
"-*-Hei-*-14-*-gb2312.1980-*" Nil 'prepend)
(Set-fontset-font
"Fontset-14" 'kana
"-*-Hei-*-14-*-gbk-0" Nil 'prepend)
(Set-fontset-font
"Fontset-14" 'Han
"-*-Hei-*-14-*-gbk-0" Nil 'prepend)
(Set-fontset-font
Fontset-14 "'cjk-Misc
"-*-Hei-*-14-*-gbk-0" Nil 'prepend)
Now you can turn on Emacs to experience the powerful functions of MSF-abbrev!
Try includec and press a space or press Enter. Is it nice? Haha
Another mainx, space, and even!
End