Emacs
emacs 설정
houdinist
2010. 1. 4. 20:43
-----------------------------------------------------------------------------------------------------------------
.emacs
(setq load-path (cons (expand-file-name "~/.emacs.d/") load-path))
(load "~/.emacs.d/myCustomSetting.el")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(gdb-many-windows t)
'(grep-find-use-grep-r nil)
'(grep-highlight-matches (quote auto-detect))
'(gud-gdb-command-name "gdb --annotate=3")
'(show-paren-mode t)
'(w32shell-msys-bin "C:/_GNU_/msys/1.0/bin")
'(w32shell-shell (quote msys)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
-----------------------------------------------------------------------------------------------------------------
~/.emacs.d/myCustomSetting.el
;; theme
(require 'etheme)
;(etheme-apply-theme "cinsk")
(etheme-apply-theme "darkblue")
(setq default-tab-width 4)
;; windows size
(set-frame-width (selected-frame) 140)
(set-frame-height (selected-frame) 48)
(set-frame-position (selected-frame) 10 10)
;; Font Setting
(set-default-font "Consolas")
;(set-default-font "fixed")
;; no splash
(setq inhibit-splash-screen t)
;emacs 외부에서 파일 변경시 현재 버퍼 자동으로 다시 읽게 하기
(global-auto-revert-mode 1)
;; Language Setting
(set-language-environment "Korean")
;C 들여쓰기 기본 스타일 설정
;(setq c-default-style "k&r")
; (setq c-default-style "cc-mode")
; (setq c-default-style "gnu")
; (setq c-default-style "bsd")
(setq c-default-style "stroustrup")
; (setq c-default-style "whitesmith")
;emacs tab 설정
(setq c-basic-offset 4
tab-width 4
indent-tabs-mode t)
; 탭 대신 공백 넣기
(setq-default indent-tabs-mode nil)
-----------------------------------------------------------------------------------------------------------------
이맥스 시작 옵션에 -g 140x48 추가해서 140글자 48줄로 시작하기
.emacs
(setq load-path (cons (expand-file-name "~/.emacs.d/") load-path))
(load "~/.emacs.d/myCustomSetting.el")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(gdb-many-windows t)
'(grep-find-use-grep-r nil)
'(grep-highlight-matches (quote auto-detect))
'(gud-gdb-command-name "gdb --annotate=3")
'(show-paren-mode t)
'(w32shell-msys-bin "C:/_GNU_/msys/1.0/bin")
'(w32shell-shell (quote msys)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
-----------------------------------------------------------------------------------------------------------------
~/.emacs.d/myCustomSetting.el
;; theme
(require 'etheme)
;(etheme-apply-theme "cinsk")
(etheme-apply-theme "darkblue")
(setq default-tab-width 4)
;; windows size
(set-frame-width (selected-frame) 140)
(set-frame-height (selected-frame) 48)
(set-frame-position (selected-frame) 10 10)
;; Font Setting
(set-default-font "Consolas")
;(set-default-font "fixed")
;; no splash
(setq inhibit-splash-screen t)
;emacs 외부에서 파일 변경시 현재 버퍼 자동으로 다시 읽게 하기
(global-auto-revert-mode 1)
;; Language Setting
(set-language-environment "Korean")
;C 들여쓰기 기본 스타일 설정
;(setq c-default-style "k&r")
; (setq c-default-style "cc-mode")
; (setq c-default-style "gnu")
; (setq c-default-style "bsd")
(setq c-default-style "stroustrup")
; (setq c-default-style "whitesmith")
;emacs tab 설정
(setq c-basic-offset 4
tab-width 4
indent-tabs-mode t)
; 탭 대신 공백 넣기
(setq-default indent-tabs-mode nil)
-----------------------------------------------------------------------------------------------------------------
이맥스 시작 옵션에 -g 140x48 추가해서 140글자 48줄로 시작하기