manywaypark's Blog
개발, 검색, 함수

[TIP] Emacs와 Qt Creator 연동?

emacs 2010. 3. 25. 12:03 by manywaypark
Windows에서는,
Qt Creator에서 Tools > Options... > Environment > General 선택 후
External Editor: path\to\emacsclientw.exe -n +%l:%c %f
로 설정하고,
현재 파일을 emacs에서 편집하고자 한다면, Edit > Advanced > Open in External Editor (Alt+V, Alt+I) 하면 된다.

몇몇 참고 사항:
emacsclientw.exe --help 는 emacs의 명령행 옵션을 알려준다.
Qt의 External Editor 설정 오른쪽의 물음표(?)를 누르면 외부 편집기 실행시 대치가능한 변수를의 목록을 볼 수 있다.

2011-06-13: Qt Creator 2.2(현재 최신)에서는, Tools > Options... > Environment > External Tools 선택 후 text 선택후 Add 버튼을 누른 후 적당한 이름(Edit in THE Editor) 입력한 다음,
Description: Opens the current file in Emacs
Executable: /path/to/runemacs.exe
Arguments: +%{CurrentDocument:Row}:%{CurrentDocument:Column} "%{CurrentDocument:FilePath}"
Working Directory:  %{CurrentDocument:Path}
로 설정.

happy hackin'
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

03-30 00:06