'emacs'에 해당되는 글 2건

  1. 2010.01.04 emacs 설정 1
  2. 2009.12.29 맥 터미널에서 이맥스를 쓸떄 PgUp, PgDown 키 설정하기
Emacs2010. 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줄로 시작하기



Posted by houdinist
Mac2009. 12. 29. 14:13
string Pause = "\032"
string Macro = "\003" # Break (Shift-Pause)
string Home = "\033[1~"
string Insert = "\033[2~"
string Remove = "\033[3~" # Delete
string End = "\033[4~"
string PageUp = "\033[5~"
string PageDown = "\033[6~"


컴플리션 버퍼로 이동할때 사용하는 PgUp을 터미널에서 사용하는 단축키가 아닌 원래 것처럼 사용.

'Mac' 카테고리의 다른 글

사용하지 않는 포트 삭제하기  (0) 2011.02.21
Posted by houdinist