Configure the MSF-abbrev function of Emacs

Source: Internet
Author: User

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

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.