2011년 11월 9일 수요일

[Emacs] 바이트컴파일 시 경고 숨기기

Emacs로 elisp 코드를 바이트컴파일 할 때 나오는 경고(Warning)를 숨기려면 다음 설정 코드를 초기화 스크립트(.emacs)에 추가하거나 바이트컴파일 전에 별도로 실행시키면 된다.

(setq byte-compile-warnings '(not nresolved
                                  free-vars
                                  callargs
                                  redefine
                                  obsolete
                                  noruntime
                                  cl-functions
                                  interactive-only
                                  ))

그런데 경고문 좀 보인다고 딱히 문제 나는 경우도 없고, 사실 경고도 무시하면 안되는 내용이 있는 터라 이런 설정이 필요할지는 의문이긴 하다. -_-

원문) http://tsengf.blogspot.com/2011/06/disable-byte-compile-warning-in-emacs.html

댓글 없음 :