2011-07-26 2 views
1

탭, 공백 및 하드 공간 만 표시하려면 Emacs에서 공백 모드를 설정했습니다. 그러나, 나는 개행 문자를 제거 할 수 없습니다. 그들은 회색 색깔의 커서로 표시됩니다, 다음 스크린 샷을 참조하십시오Emacs 공백 모드에서 개행 문자를 표시하지 않는 방법

Screenshot

+3

당신은 그것을 대체하고 [공백] (http://www.emacswiki.org/emacs/WhiteSpace)에 대한 BlankMode을 교환하는 것이 좋습니다. – razlebe

+1

수퍼 유저로 마이그레이션하는 투표자 - [프로그래밍 도구는 SO 주제] (http://stackoverflow.com/faq#questions). –

답변

1

당신은 당신의 이맥스 설정 편집하는 데 필요한 blank-chars BlankMode 옵션에서 newline 요소를 제거하기 위해 (당신이 우리를 표시하지 않은!).

BlankMode documentation에 따르면 blank-chars 옵션은 BlankMode로 시각화 할 공백 문자를 결정합니다. blank-mode.el package에서 긴 문서에서

는 :

(defcustom blank-chars 
    '(tabs spaces trailing lines space-before-tab newline 
    indentation empty space-after-tab) 
    "*Specify which kind of blank is visualized. 

It's a list which element value can be: 

    trailing  trailing blanks are visualized. 

    tabs  TABs are visualized. 

    spaces  SPACEs and HARD SPACEs are visualized. 

    lines  lines whose have columns beyond 
      `blank-line-column' are highlighted. 
      Whole line is highlighted. 
      It has precedence over 
      `lines-tail' (see below). 

    lines-tail lines whose have columns beyond 
      `blank-line-column' are highlighted. 
      But only the part of line which goes 
      beyond `blank-line-column' column. 
      It has effect only if `lines' (see above) 
      is not present in `blank-chars'. 

    space-before-tab SPACEs before TAB are visualized. 

    newline  NEWLINEs are visualized. 

    indentation 8 or more SPACEs at beginning of line are 
      visualized. 

    empty  empty lines at beginning and/or end of buffer 
      are visualized. 

    space-after-tab 8 or more SPACEs after a TAB are visualized. 

Any other value is ignored. 
+0

그게 내 .emacs 파일에서, 탭과 공백 앞의 공백들만 볼 수 있어야 함을 의미하는 다음과 같은 것을 가지고있다. 그러나 공백 문자 (공백 문자 공백))) – mart1n

+0

공백으로 전환하면 문제가 해결됩니다. 고맙습니다! – mart1n

+0

이것을 사용 중지하는 방법, 파일에서 아무 곳이나 빈칸을 찾을 수 없습니다. – Siddharth

관련 문제