'emacs'에 해당되는 글 5건

  1. 2010.11.24 [Emacs] 실행 패스(exec-path) 설정
  2. 2010.08.24 [EMACS] Macro Record and Play
  3. 2010.03.25 Emacs Javascript
  4. 2010.01.21 emacs & cscope
  5. 2009.07.01 Emacs에서 ^M 제거

[Emacs] 실행 패스(exec-path) 설정

TIPs 2010. 11. 24. 00:05

설정값 보기

C-h v exec-path



설정 (PATH, exec-path)

(setenv "PATH" (concat (getenv "PATH") ":/opt/local/bin"))
(setq exec-path (append exec-path '("/opt/local/bin")))



General Variables 확인
M-: (info "(emacs)General Variables")
:

[EMACS] Macro Record and Play

TIPs 2010. 8. 24. 00:49
원문 : The Geek Stuff

High Level Steps to Record and Play inside Emacs
1. Start recording a macro by pressing ctrl+x (
2. Perform any actions inside the Emacs editor that you would like to record.
   
   High Level Steps for Naming and Saving emacs macro, and playing it later
   A. Press Ctrl+x Ctrl+k n
   B. Give name-of-macro, and press ENTER

3. Stop recording by pressing ctrl+x )

4. Play the last recorded macro by pressing ctrl+x e
or    
C. Run the named macro by pressing, M-x name-of-macro

:

Emacs Javascript

TIPs 2010. 3. 25. 10:50
참고 : Emacs 패키지 설치하기

download : http://www.emacswiki.org/emacs/JavaScriptMode
(setq load-path (cons (expand-file-name "~/.emacs.d") load-path))
(load-library "javascript")


:

emacs & cscope

TIPs 2010. 1. 21. 12:05
참조 :
KLDP
http://www.cs.cmu.edu/cgi-bin/info2www?(emacs)Find%20Tag
Ubuntu forums
Blog

ETAGS

tag 생성
$ find . -name '*.[csSh]' | etags -
$ find . -name '*.cc' -or -name '*.h' | etags -

M-. TAG        Find first definition of TAG (`find-tag').
M-*            Pop back to where you previously invoked `M-.' and friends.
C-u M-.        Find next alternate definition of last tag specified.
C-u - M-.      Go back to previous tag found.
C-M-. PATTERN  Find a tag whose name matches PATTERN (`find-tag-regexp').
C-u C-M-.      Find the next tag whose name matches the last pattern used.
C-x 4 . TAG    Find first definition of TAG, but display it in another window (`find-tag-other-window').
C-x 5 . TAG    Find first definition of TAG, and create a new frame to select the buffer (`find-tag-other-frame').



CSCOPE

cscope download : http://cscope.sourceforge.net/
emacs el package load : (require ‘xcscope)
xcscope.el : /usr/share/emacs/site-lisp
Database 생성 : cscope-index-files

C-c s s     Find symbol.
C-c s d     Find global definition.
C-c s g     Find global definition (alternate binding).
C-c s G     Find global definition without prompting.
C-c s c     Find functions calling a function.
C-c s C     Find called functions (list functions called from a function).
C-c s t     Find text string.
C-c s e     Find egrep pattern.
C-c s f     Find a file.
C-c s i     Find files #including a file.

:

Emacs에서 ^M 제거

TIPs 2009. 7. 1. 13:03
M-x replace-string C-q C-m RET
: