본문 바로가기
컴퓨터/이맥스(Emacs)·빔(Vim)

Emacs 설정

by All That Guy 2015. 5. 2.

Emacs 설정.

환경: Ubuntu 15.4, GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9)
of 2015-03-21 on kissel, modified by Debian.

이맥스는 자체 한글 입력기를 내장하고 있어서, 시스템 입력기를 쓰는 다른 프로그램과 달리 한글 입력 설정을 잘 해야 시스템 입력기와 충돌하지 않고 무리 없이 쓸 수 있다.

1. .emacs~/ 에 위치.


2. load-path.emacs에서 설정.


3. el 파일들 경로는 .emacs 안에서


(setq load-path (nconc ‘(“/home/allthatguy/.emacs.d/lisp”) load-path)) ;; load-path


등으로 설정.


4. *.el 파일들은 .emacs/lisp에 몰아 넣기.

5. 한글 설정은(세벌식 최종, .emacs에서 설정)


(set-language-environment “Korean”)    ;;; 한국어 설정
(prefer-coding-system ‘utf-8)    ;;; utf-8 사용
(setq default-input-method “korean-hangul3f”)    ;;; 한글 세벌식 최종으로 입력기 설정
(setq default-korean-keyboard “3f”)    ;;; 세벌식 최종으로 한글 기본 자판 설정
(global-set-key (kbd “<kana>”) ‘toggle-input-method)    ;;; 한영 글쇠로 한영 변환
(global-set-key (kbd “<S-kana>”) ‘toggle-input-method)    ;;; shlft-space 글쇠로 한영 변환



 
Copyright 2015. allthatguy. All rights reserved. Any contents of this blog cannot be used in any form without the author’s written permission.