2010-04-27 4 views

답변

2

정확한 등가 기능이 내장되어 있다고 생각하지 않습니다. hl-line-mode를 사용하여 현재 줄을 강조 표시하고 해당 모드를 사용자 정의하면 기본 다른 배경색보다는 밑줄이되도록 강조 표시를 설정할 수 있습니다. 그러나 밑줄은 창 가장자리까지 계속 이어지는 것이 아니라 줄 끝에있는 텍스트의 끝에서 멈 춥니 다. 당신의 이맥스에서

18

, 같은과, hl-line-mode의 얼굴을 사용자 정의 :

(global-hl-line-mode 1) 
(set-face-attribute hl-line-face nil :underline t) 

hl-line-facefacehl-line-mode의 이름을 저장하는 변수는 현재 행을 표시하기 위해 사용하는 것입니다. :foreground:background 및 다른 속성을 원하는대로 사용자 정의 할 수 있습니다. 문서 here을 확인하십시오.

global-hl-line-mode은 모든 버퍼의 현재 행을 강조 표시합니다. 버퍼에 넣고 싶다면 M-x hl-line-mode으로 설정하십시오.

12

이 주제에 대한 좋은 블로그 게시물이 있습니다 : 당신이 경우 배경 색상으로 RGB 코드 번호 (222)를 사용 (: M-x all-things-emacs

다음 코드 (또는 ~/이맥스가에 재치 M- 입력은) in 256-color mode!) 현재 행의 글꼴에 밑줄을 긋습니다. 전경색을 설정 해제하면 기본 색상이 사용됩니다 (예 : 강조 표시된 행에 C++ 색상을 보존합니다.

(global-hl-line-mode 1) 
(set-face-background 'highlight "#222") 
(set-face-foreground 'highlight nil) 
(set-face-underline-p 'highlight t) 
M-X와

당신이 highlight 또는 (AFAIK 이상) 변경할 필요 여부를 확인할 수 있습니다 hl-line과 :

describe-face <RET> highlight 
describe-face <RET> hl-line 

이 명령은 당신에게 현재 행을 강조 표시에 사용되는 글꼴의 모든 설정을 보여줍니다. 다음과 같은 결과를 얻으실 수 있습니다 :

Face: highlight (sample) (customize this face) 
Documentation: 
Basic face for highlighting. 

     Family: unspecified 
     Foundry: unspecified 
     Width: unspecified 
     Height: unspecified 
     Weight: unspecified 
     Slant: unspecified 
    Foreground: unspecified 
    Background: #222 
    Underline: t 
     Overline: unspecified 
Strike-through: unspecified 
      Box: unspecified 
     Inverse: unspecified 
     Stipple: unspecified 
      Font: unspecified 
     Fontset: unspecified 
     Inherit: unspecified 
관련 문제