2014-09-25 7 views
1

에 cpp 개발을 위해 EMACS로 전환 중입니다. 예 ..이맥스 홈 디렉토리를 재설정하는 방법

하지만 PATH의 끝에 ; 퍼팅에서 C:\ABC;

오래된 습관 경로 변수에 HOME 그것을 설정 및 설정에 대한 튜토리얼을 읽고 있었다.

이제 이맥스가 ABC; 디렉토리를 만들고 모든 것이 작동합니다.

하지만 나에게 잘 보이지 않는이 ... 그래서 내가 C:\ABCHOME 환경 변수를 재설정하고 ABC; 폴더를 삭제.

이멕스 대신 ABC을 작성하면 ABC;에 대해 불평하기 시작합니다.

레지스트리를 조사했지만 어떤 GNU 키도 찾지 못했습니다. 나는 또한 %appdata을 보았지만 emacs 폴더는 보지 않았다.

다시 HOME 디렉토리를 이맥스에서 다시 설정할 수 있습니까?

답변

2

정보 파일 노드 (emacs)Top > Emacs Invocation > Environment > MS-Windows Registry을 인용하면됩니다. 세 번째 섹션이 당신에게 가장 관련이 있다고 생각합니다.

아직 맞춤 설정을 했습니까? 그렇다면 emacs -Q을 사용해 사용자 정의하지 않고 emacs를 사용해보십시오. 당신이 환경에서 HOME 변수를 설정하면이 레지스트리에 나타나지 않습니다

C.4.3 The MS-Windows System Registry 
------------------------------------ 

On MS-Windows, the installation program `addpm.exe' adds values for 
`emacs_dir', `EMACSLOADPATH', `EMACSDATA', `EMACSPATH', `EMACSDOC', 
`SHELL' and `TERM' to the `HKEY_LOCAL_MACHINE' section of the system 
registry, under `/Software/GNU/Emacs'. It does this because there is 
no standard place to set environment variables across different 
versions of Windows. Running `addpm.exe' is no longer strictly 
necessary in recent versions of Emacs, but if you are upgrading from an 
older version, running `addpm.exe' ensures that you do not have older 
registry entries from a previous installation, which may not be 
compatible with the latest version of Emacs. 

    When Emacs starts, as well as checking the environment, it also 
checks the System Registry for those variables and for `HOME', `LANG' 
and `PRELOAD_WINSOCK'. 

    To determine the value of those variables, Emacs goes through the 
following procedure. First, the environment is checked. If the 
variable is not found there, Emacs looks for registry keys by that name 
under `/Software/GNU/Emacs'; first in the `HKEY_CURRENT_USER' section 
of the registry, and if not found there, in the `HKEY_LOCAL_MACHINE' 
section. Finally, if Emacs still cannot determine the values, 
compiled-in defaults are used. 

    In addition to the environment variables above, you can also add many 
of the settings which on X belong in the `.Xdefaults' file (*note X 
Resources::) to the `/Software/GNU/Emacs' registry key. 

참고. 환경에서 다시 설정해야합니다. 정보 파일의 관련 섹션 :

You can override this default value of `HOME' by explicitly setting 
the environment variable `HOME' to point to any directory on your 
system. `HOME' can be set either from the command shell prompt or from 
`Properties' dialog of `My Computer'. 
+0

질문하기 전에 HOME 환경 변수를 변경했지만 작동하지 않았습니다. 한 번 다시 시작해야합니까? –

+1

@AshishNegi'HOME'이'cmd.exe'에서 시도 할 수있는 문제인지 확인하고 싶다면. 예 : 첫 번째 입력 :'set HOME = c : \ ABC' 두번째 입력 :''c : \ Program Files (x86) \ emacs-24.3 \ bin \ runemacs.exe '-Q' 이맥스에서는'Mx getenv ' – Tobias

+0

나는 나쁜 명령을했다. 이전 명령 프롬프트에서 runemacs를 시작했다. 오래된 설정 .. 창문이 있었는데 ... –

관련 문제