이맥스에서 상단 탭 목록 표시하기 리눅스

이맥스(Emacs)에서 이클립스(Eclipse)나 불여우 스타일의 탭 목록을 이용해 보자.
아직 이맥스(23.1) 내에는 이 기능이 포함되지 않았고, 별도의 EL 파일을 다운받아야 한다.
(이하 내용은 대부분 http://habib.posterous.com/tabbar-for-emacs 의 도움을 받은 것이다.)

1. EMHACKS 프로젝트에서 tabbar 최신버전(1.3)을 다운받는다. 압축을 풀면 tabbar.el 파일이 나온다.
2. 이맥스를 실행한 다음, M-x byte-compile-file 을 실행한 뒤 tabbar.el 파일의 경로를 지정해준다.
   제대로 지정했으면 tabbar.elc 파일이 생성된다.
3. 이맥스 설치 경로에 tabbar.elc 파일을 넣는다.
    emacs : /usr/share/emacs/VERSION/lisp
    emacs-w32 : C:\Program Files\Emacs\emacs\lisp
4. .emacs 파일에 다음 내용을 추가한다.
    (require 'tabbar)
    (tabbar-mode)
    ;; 탭을 그룹으로 나누지 않고 모든 탭을 한 화면에 표시 (http://www.emacswiki.org/cgi-bin/wiki/TabBarMode 참고)
    (setq tabbar-buffer-groups-function
        (lambda (b)
            (list "All")))
    ;; 컨트롤-탭, 시프트-컨트롤-탭 으로 탭간 전환
    (global-set-key [(control tab)] 'tabbar-forward-tab)
    (global-set-key [(control shift tab)] 'tabbar-backward-tab)
    ;; 모양 변경 (http://amitp.blogspot.com/2007/04/emacs-buffer-tabs.html 참고)
  (set-face-attribute
   'tabbar-default-face nil
   :background "gray60")
  (set-face-attribute
   'tabbar-unselected-face nil
   :background "gray85"
   :foreground "gray30"
   :box nil)
  (set-face-attribute
   'tabbar-selected-face nil
   :background "#f2f2f6"
   :foreground "black"
   :box nil)
  (set-face-attribute
   'tabbar-button-face nil
   :box '(:line-width 1 :color "gray72" :style released-button))
  (set-face-attribute
   'tabbar-separator-face nil
   :height 0.7)
5. 이맥스를 재시작한다.

Tag :
, , , ,

Leave Comments