2010-01-18 4 views
1

좋아요, 저는 .el 파일을 수정하는 새 단입니다. 다음로드 경로 설정에 변수 값 사용

및 부하에 이맥스 디렉토리에서 하위 디렉토리에 압정 : (SETQ 창 경로 "/ 문서 및 설정/cthiel/프로젝트/windows_setup/이맥스/C :") 내가 원하는 모두는 같은 것입니다 통로. 등 (이 루비에 어떻게 다)와 같은 뭔가 : (추가로 목록 '로드 경로 "# {창 경로}/외부") 재귀 적으로 추가 디렉토리에 대한 팁

답변

1
(setq windows-path "c:/Documents and Settings/cthiel/projects/windows_setup/emacs/" 
(add-to-list 'load-path (concat windows-path "external")) 

그 목표를 달성 하는가 :

난 당신이 뭔가를 할 생각?

문서 :

CONCAT는 ' `fns.c에 내장 된 기능입니다.

(CONCAT & 나머지 시퀀스)

연결하여 모든 인수 및 결과 문자열을합니다. 결과는 모든 요소가 인 요소 인 문자열입니다. 각 인수 은 자 (정수)의 문자열 또는 목록 또는 벡터 일 수 있습니다.

예 :

(concat "The answer to life, " "the universe " "and everything " "is " "42") 
    => "The answer to life, the universe and everything is 42" 
+0

트릭이 잘나요, 감사합니다! 쉬운 일이라는 것을 알았고, 무엇을 모르고 있었습니까. :} – bergyman

2

체크 아웃 EmacsWiki:LoadPath.

(setq windows-path "c:/Documents and Settings/cthiel/projects/windows_setup/emacs/") 

(if (fboundp 'normal-top-level-add-subdirs-to-load-path) 
    (let* ((my-lisp-dir windows-path) 
      (default-directory my-lisp-dir)) 
     (setq load-path (cons my-lisp-dir load-path)) 
     (normal-top-level-add-subdirs-to-load-path)))