시작은 여기 였었다. 스크린캐스트를 보자
스크린캐스트에 나오는 환경을 구성하는 것은 다음 페이지를 참조하면 된다.
http://platypope.org/blog/2006/9/8/i-need-a-cool-european-accent
위 동영상을 보다보면 ECB 환경과 IDO 가 제일 눈에 들어왔다. Aquaemacs 에도 위 환경을 구축해 보자.
cedet-1.0pre4
.emacs에 아래 내용 추가.
ecb-2.3.2
.emacs에 아래 내용 추가.
실행 : Tools 메뉴에서 Start Code Browser (ECB) 선택
M-x ecb-customize-most-important 실행해서 환경 설정하기.
단축키 설정 (창간의 이동을 쉽게) : .emacs 파일에 아래와 같이 추가하자. (참고 : http://xeraph.com/emacs/emacs-code-browser)
;; customize the keys for ECB
(define-key ecb-mode-map (kbd "M-1") 'ecb-goto-window-directories)
(define-key ecb-mode-map (kbd "M-2") 'ecb-goto-window-sources)
(define-key ecb-mode-map (kbd "M-3") 'ecb-goto-window-methods)
(define-key ecb-mode-map (kbd "M-4") 'ecb-goto-window-histories)
(define-key ecb-mode-map (kbd "M-5") 'ecb-goto-window-compilation)
(define-key ecb-mode-map (kbd "M-0") 'ecb-goto-window-edit1)
링크 : http://www.cua.dk/ido.html#install
설치는 심플하다 load-path 상에 위 링크에서 받은 ido.el 파일을 넣고나서 (대략 ~/.emacs.d/ 디렉토리에다 두면 된다) .emacs 파일에 다음과 같이 추가한다.
단축키 : C-x b
위와 같이 단축키를 입력하면 버퍼 리스트가 주욱 나온다. 버퍼에 있는 파일명을 타이핑하고 엔터 하면 해당 파일을 보여준다.
Tip : C-x C-r (Open Recent) 도 유용하게 쓸 수 있다.
aquaemacs 는 기본적으로 파일들이 새로운 프레임에 열린다. 계속 새창이 뜬다는 얘기. 좀 짜증나는데 기본적으로 뜨지 않도록 하려면 .emacs 파일 같은데다가
(one-buffer-one-frame-mode nil)
와 같이 추가해서 기본적으로 false로 만들어 버리자. 혹은 Options 메뉴에서 "Display Buffers in Separate Frames"를 언체크하면 된다.
이맥스를 알게되는 순서대로 그냥 기술한 페이지, 내용이 좀 모이게되면 categorized 시켜야지..
[emacs] 실행하다
[C-x, C-f] 파일을 열다
[C+x,C+s] 저장
[C+x,C+c] 끝내기
[C+s,ENTER,C+w] 단어찾기 (전진탐색)
[C+r,ENTER,C+w] 단어찾기 (후진탐색)
[C+x,2] 화면 수평분할
[C+x,o] 다른 화면으로 이동
[C+x,0] 분할된 화면 닫기
[C+x,C+x] 버퍼 목록 보기
[esc,x,dir] 디렉토리 관리 실행
[esc,x,calendar] 달력보기
[C+x,m] 메일작성기실행
[C+c,C+c] 작성된 메일 발송
[C+c,C+s] 메일 버퍼에 기록후 발송
[esc,x,browse-url] 입력받은 url 을 디폴트 브라우저로 실행
[esc,x,text-mode] text-mode 실행
http://svn.ruby-lang.org/repos/ruby/trunk/misc/
여기에 있는 파일들을 내려받아서 /opt/local/share/emacs/22.0.50/site-lisp 디렉터리에 때려 넣는다.
http://dima-exe.ru/rails-on-emacs
(22.x 버젼 이상에서 동작한다) 따라서 macport 로 emacs 를 설치하는 경우 port install emacs-devel 을 설치한다.
위 내용을 참조해서 emac-rails 관련 설정을 하고 , 파일을 내려받는다.
.emacs 파일에 다음과 같이 추가한다.
마지막으로 rails 모드에서 필요한 라이브러리를 다운로드 받는다. 위치는 site-lisp 폴더에다가...
For use with Internet Explorer -- http://www.gnu.org/software/emacs/windows/faq3.html
You can use Emacs as the editor for composing mail for mailto: links, reading news for news: links, and editing HTML files in Internet Explorer. You first need to install the gnuserv utilities above,
and then modify or create the following registry entries using regedit: Mail Key: HKEY_CLASSES_ROOT\mailto\shell\open\command(Default) Value: gnudoit -q (message-mail (substring \"%1\" 7))
News Key: HKEY_CLASSES_ROOT\news\shell\open\command(Default) Value: gnudoit -q (gnus-fetch-group (substring \"%1\" 5))
Edit HTML Key: HKEY_CLASSES_ROOT\htmlfile\shell\edit\command(Default) Value: gnuclientw %1
기본값 : "C:\Program Files\Microsoft Office\OFFICE11\msohtmed.exe" %1