emacs "find file" default path setup

Emacs 2015. 11. 18. 15:37 posted by CecilDeSK
반응형

emacs "find file" default path setup 

(이맥스 find file 기본 디렉토리 설정)


emacs에서 find file 키입력시 디폴트 디렉토리 설정하려면 바로가기 아이콘의 속성에서 시작위치에 해당 디렉토리를 입력하여 실행하는 방법도 있기는 하나 바로가기를 클릭하여 실행하여야 해서 불편하고 command 로 실행할때는 적용되지 않는다.


Windows 상에서는 몇몇 기존 알려진 방법으로 되지 않는 경우도 있다.


.emacs 에 아래와 같이 입력하도록 한다.


(global-set-key (kbd "C-x C-f")  (lambda () (interactive)

                                     (cd "d:/project/")             <--- 여기에 해당디렉토리 입력 (디렉토리에 '/' 사용)

                                     (call-interactively 'find-file)))





emacs find file



반응형