Recently in emacs Category

Chinese Five-strike IME

emacs is the best editor I think, I use emacs for more than 6 years. I also coded a Chinese WuBi (Five Keys) IME for emacs, you can download it here.

Time-stamp for Emacs

| No Comments | No TrackBacks

Time-stamp for Emacs

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
====================================================================================================
    Turn on Time-Stamp in NTEmacs for C/C++
    Time-stamp: <2002-03-25 11:10:32 Yule Show>
    Version: NTEmacs 21.1
    Environment: cygwin, Windows 2000 SP2
===================================================================================================
    1. Add following line into .emacs
             (add-hook 'write-file-hooks 'time-stamp)
    2. Add following line into source code at very first 8 lines
             Time-stamp: <>
====================================================================================================
    End of Turn on Time-Stamp in NTEmacs for C/C++
====================================================================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Thanks for Ben Luo's information about this solution, which support NTEmacs uses the default Windows IME.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
====================================================================================================
    NTEmacs Alternative Chineselization
    Version: NTEmacs 21.3
    Environment: Windows 2000 SP4
===================================================================================================
    ;;; Use Native IMEs !! ;)
    (set-terminal-coding-system 'chinese-iso-8bit)
    (set-keyboard-coding-system 'chinese-iso-8bit)
    (setq locale-coding-system 'chinese-iso-8bit)

    End of NTEmacs Alternative Chineselization
====================================================================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Chinese solution for emacs

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
====================================================================================================
    NTEmacs Chineselization
    Version: NTEmacs 21.1
    Environment: cygwin, Windows 2000 SP2
===================================================================================================
    1. Check menu Options->Mule->Set Language Environment->Chinese->Chinese-GB
       Turn on Chinese mode
    2. Click menu Options->Save Options
    3. WuBi input method
       Download WuBi.tar.gz from http:www.linux.org.cn/emacs/WuBi.tar.gz or http:www.17fun.org/emacs/WuBi.tar.gz
       Extract both WuBi.el and WuBi.elc to DRIVE:/.../emacs-21.1/lisp
       Add following into .emacs
             ; Chinese Wubi IME
        (register-input-method  "chinese-wubi" "Chinese-GB" 'quail-use-package "WuBi" "ChIME::YuleWB::" "WuBi")
         If you like to set WuBI as default Chinese IME, just open .emacs and find "chinese-py-punct" change to 
         "chinese-wubi".
    4. Add following line into .emacs for change font menu to Unix style
        ; Set font select style to Unix
        (setq w32-use-w32-font-dialog nil)
    5. Install BDF fonts
       Reference: http:www.gnu.org/software/emacs/windows/faq5.html#windows-font
        I. Download BDF fonts of ftp:ftp.gnu.org/gnu/intlfonts/intlfonts-1.2-split/16dots.tar.gz
          Extract 16dots.tar.gz to a directory
            i.e. i:/gnu/intlfonts-1.2
       II. Set bdf font directory, add following lines into .emacs
        ; bdf font directory
        (setq bdf-directory-list
                 '("i:/gnu/intlfonts-1.2/Asian" "i:/gnu/intlfonts-1.2/Chinese" "i:/gnu/intlfonts-1.2/Chinese.X"
                "i:/gnu/intlfonts-1.2/Ethiopic" "i:/gnu/intlfonts-1.2/European" "i:/gnu/intlfonts-1.2/Japanese"
                "i:/gnu/intlfonts-1.2/Japanese.X" "i:/gnu/intlfonts-1.2/Korean.X" "i:/gnu/intlfonts-1.2/Misc/"))
        (setq w32-bdf-filename-alist
                 (w32-find-bdf-fonts bdf-directory-list))
       III. Create fontset by add following lines into .emacs
         (create-fontset-from-fontset-spec
         "-*-fixed-medium-r-normal-*-16-*-*-*-c-*-fontset-bdf,
         japanese-jisx0208:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1983-*,
         katakana-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,
         latin-jisx0201:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0201*-*,
         japanese-jisx0208-1978:-*-*-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1978-*,
         thai-tis620:-misc-fixed-medium-r-normal--16-160-72-72-m-80-tis620.2529-1,
         lao:-misc-fixed-medium-r-normal--16-160-72-72-m-80-MuleLao-1,
         tibetan-1-column:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-80-MuleTibetan-1,
         ethiopic:-Admas-Ethiomx16f-Medium-R-Normal--16-150-100-100-M-160-Ethiopic-Unicode,
         tibetan:-TibMdXA-fixed-medium-r-normal--16-160-72-72-m-160-MuleTibetan-0")    
         IV. Add bdf font to font-encoding-alist
           ;; Need to add some fonts to font-encoding-alist since the bdf fonts
          ;; are type 0 not the default type 1.
           (setq font-encoding-alist
           (append '(("MuleTibetan-0" (tibetan . 0))
                 ("GB2312"        (chinese-gb2312 . 0))
                 ("JISX0208"      (japanese-jisx0208 . 0))
                 ("JISX0212"      (japanese-jisx0212 . 0))
                 ("VISCII"        (vietnamese-viscii-lower . 0))
                 ("KSC5601"       (korean-ksc5601 . 0))
                 ("MuleArabic-0"  (arabic-digit . 0))
                 ("MuleArabic-1"  (arabic-1-column . 0))
                 ("MuleArabic-2"  (arabic-2-column . 0))) font-encoding-alist))
            V. Set DBF font as default
            (set-default-font "fontset-bdf")
 
    6. Bonus option: add following line can change to a good background color, which is my favorite.
        ; Set background color
            (set-background-color "mintcream")
====================================================================================================
    End of NTEmacs Chineselization
====================================================================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Spell check for emacs

| No Comments | No TrackBacks

Spell check for emacs

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
====================================================================================================
    The Guide for Install ispell for NTEmacs 
    Last Update:  03/21/02
    Version:      NTEmacs 21.1
              ispell 3.2
    Environment:  cygwin, Windows 2000 SP2
====================================================================================================
  Option 1: ispell 3.2
    Reference: http:www.gnu.org/software/emacs/windows/ntemacs/discuss/ispell31-cygwin
     1. Download ftp:ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Humblet_Pierre_A/V1.1/ispell-3.2.06-cygwin-1.3-bin.tar.gz
     2. Extract buildhash.exe, deformat-c.exe, deformat-sh.exe, icombine.exe, ijoin.exe, ispell.exe, spell.exe,
        munchlist, findaffix, tryaffix to cygwin's /usr/local/bin.
         3. Extract american.hash, british.hash, english.aff and english.hash to /usr/local/lib.
         4. Ignore all the rest.
 
  Option 2: ispell 4.0
     Reference: http:atnetsend.ne.mediaone.net/ispell/ispell_port.html
     1. Download http:atnetsend.ne.mediaone.net/ispell/files/ispell4_v03_i386.zip
    2. Extract "ispell" to DRIVE:/.../emacs-21.1/info
        i.e i:/gnu/emacs-21.1/info
    3. Add following line to DRIVE:/.../emacs-21.1/info/dir
        * ispell v4: (ispell).  GNU ispell version 4 for NTEmacs.
    4. Define the HOME environment variable if not done yet. 
        i.e HOME=i:/home/yuleshow
    5. Create an ispell directory, and set it to system $path
        i.e i:/gnu/emacsen/ispell
    6. Extract  "ispell.dict", "ispell.words",build.exe", "dict", "expand.exe", "freq.exe" "ispell.exe" and "look.exe"
       into ispell directory.
    7. Set ispell folder to two system environment variable.
        ISPELL_DICTIONARY=x:\xxx\...\ispell.dict 
        ISPELL_WORDS=x:\xxx\...\ispell.words
        i.e
             ISPELL_DICTIONARY=i:\gnu\emacsen\ispell\ispell.dict
             ISPELL_WORDS=i:\gnu\emacsen\ispell\ispell.words
    7. Define both TMP and TEMP environment variables to point to your temporary file directory.
       I think under Windows 2000, this step can be ignored.
    8. Extract "ispell4.el" and "ispell4.elc" to DRIVE:/.../emacs-21.1/lisp/ as "ispell.el" and "ispell.elc",
       respectively.
====================================================================================================
    End of The Guide for Install ispell for NTEmacs
====================================================================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

miscellaneous tips for emacs

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
====================================================================================================
    Turn on Highlighting in NTEmacs
    Version: NTEmacs 21.1
    Environment: cygwin, Windows 2000 SP2
===================================================================================================
    1. Check menu Options->Syntax Highlighting
    2. Click menu Options->Save Options
====================================================================================================
    End of Turn on Highlighting in NTEmacs
====================================================================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Pages

Powered by Movable Type 5.01

About this Archive

This page is an archive of recent entries in the emacs category.

Funk GFW is the next category.

Find recent content on the main index or look in the archives to find all content.