
나는 Emacs(24.3)와 Zsh(5.0.2)의 최신 안정 버전을 가지고 있습니다.
터미널(예: ITerm2)에서 아무 문제 없이 Zsh를 실행할 수 있지만 터미널에서 실행하려고 하면 M-x ansi-term
오류가 발생합니다.
Emacs ansi-term with zsh: error in process filter. Invalid face: unspecified
M-x ansi-term
시작한 bash
후 로 전환하려고 해도 마찬가지입니다 zsh
.
이 모든 일은 Mac OS X에서 발생합니다. 이 문제의 원인과 이를 극복하는 방법에 대한 아이디어가 있습니까?
답변1
WSL에서도 똑같은 문제가 있습니다.
@Gilles님의 댓글을 토대로 emacs -q
테스트해본 결과 문제가 없음을 확인했습니다. 이후 custom-set-variables
Emacs가 자동으로 저장한 sexp를 찾아 unspecified
보니 ansi-term-color-vector
.
방금 전체 ansi-term-color-vector
sexp를 삭제하고 전체 구성으로 Emacs를 다시 시작했습니다. 이전에 문제가 있었던 애플리케이션이 이제 emacs 터미널에서 정상적으로 실행됩니다.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-faces-vector
[default bold shadow italic underline bold bold-italic bold])
'(ansi-term-color-vector
[unspecified "#272822" "#f92672" "#a6e22e" "#f4bf75" "#66d9ef" "#ae81ff" "#66d9ef" "#f8f8f2"] t))