edit ~/.emacs, and add the following lines


(when window-system
   (set-face-font 'default "-outline-Droid Sans Mono-normal-normal-normal-mono-14-*-*-*-c-*-iso10646-1")
    (set-fontset-font "fontset-default" '(#x1100 . #xffdc)  '("나눔고딕코딩" . "unicode-bmp")) ;; 유니코드 한글영역
    (set-fontset-font "fontset-default" '(#xe0bc . #xf66e)  '("나눔굴림" . "unicode-bmp")) ;; 유니코드 사용자 영역
)

(defadvice switch-to-buffer (after activate-input-method activate)
 (activate-input-method "korean-hangul"))


fonts-namum-* must be installed on the Debian system as

$ aptitude search nanum
i   fonts-nanum                          - Nanum Korean fonts                            
i   fonts-nanum-coding                   - Nanum Coding fixed width Korean TrueType font 
i   fonts-nanum-eco                      - Nanum Eco Korean font                         
i   fonts-nanum-extra                    - Additional Nanum Korean fonts                 
i   fonts-nanum-gothic-light             - Nanum Gothic Light Korean font   

posted by citadel
C-x RET-f
Coding system for saving file (default nil): undecided-unix
C-x C-s

'Computer > linux' 카테고리의 다른 글

email forward by using .forward  (0) 2011.06.05
Convert DOS to unix in emacs  (0) 2011.05.03
autoconf with ROOT  (0) 2011.04.13
Intel® Threading Building Blocks (Intel TBB) for Open Source  (0) 2011.03.24
posted by citadel
  • Put Droid Sans Mono TTF font and other TTF fonts into /usr/share/fonts/ directory.

    See 2007/08/08 - [computer/linux] - How to use MS windows fonts and ttf in the Ubuntu Linux

  • Add the following lines into  ~/.emacs file

    더보기




  • References
    * http://www.gnu.org/software/emacs/manual/html_node/emacs/Input-Methods.html
    * http://kaisyu.springnote.com/pages/334404?print=1
    * http://rangshu.egloos.com/2605379



'Computer > linux' 카테고리의 다른 글

awk with a running average and sample deviation  (0) 2010.08.18
emacs 한글 폰트 및 한글 입력  (0) 2010.07.22
google code  (0) 2010.07.21
automake & autoconf  (0) 2010.06.26
posted by citadel