커서 변경
6307 단어 Emacs
한 Windows의 텍스트 편집기에서는 다음과 같은 세 가지 설정을 할 수 있습니다. Emacs에서는 어떻게 할 수 있습니까?



설정 방법
init.el
에서는 default-frame-alist
로 설정하기 쉽습니다. 이 변수는 프레임 (일반적인 GUI 용어에서 "창")의 초기화시 속성을 설정할 수 있습니다.(add-to-list 'default-frame-alist '(cursor-type . bar))
이 설정이 동작하는 것은 새로운 프레임을 작성 (
M-x make-frame
) 했을 때에 확인할 수 있습니다.
간단한 확인 방법
*scratch*
버퍼에 붙여넣고 이하 일행씩 C-x C-e
로 실행해 보는 것이 좋습니다.(set-frame-parameter (window-frame) 'cursor-type 'box)
(set-frame-parameter (window-frame) 'cursor-type 'bar)
(set-frame-parameter (window-frame) 'cursor-type 'hbar)
(set-frame-parameter (window-frame) 'cursor-type '(hbar . 10))
(set-frame-parameter (window-frame) 'cursor-type 'hollow)
(set-frame-parameter (window-frame) 'cursor-type nil)

설정 파일에 쓸 때는
set-frame-parameter
보다 먼저 쓴 (add-to-list 'default-frame-alist ...)
쪽이 추천입니다.문자 왼쪽에 세로 막대

(add-to-list 'default-frame-alist '(cursor-type . bar))
문자에 밑줄

(add-to-list 'default-frame-alist '(cursor-type . hbar))
문자 하단에 차단

이 설정에는 숫자를 그대로 써야 합니다. 원하는 숫자를 넣어주세요. 이미지는 대체로 글꼴 크기의 절반 정도입니다.
(add-to-list 'default-frame-alist '(cursor-type . (hbar . 10))
상자(기본값)

(add-to-list 'default-frame-alist '(cursor-type . box))
hollow(테두리)
(add-to-list 'default-frame-alist '(cursor-type . hollow))

덤 1: 커서를 깜박이지 않게 하려면?
(blink-cursor-mode -1)
덤 2 : 터미널에서 커서를 변경하는 방법?
실은 VT100에는 DECSCUSR—Set Cursor Style 되는 제어 순서가 있어, 한층 더 TeraTerm나 iTerm2등에서는 독자 확장해 세로 막대의 커서도 표시할 수 있게 되어 있습니다. vim의 제어 시퀀스 사용 예 등도 소개되고 있으므로, 뭔가 좋은 느낌으로 하면(Emacs 본체에 손을 넣으면) 커서 변경할 수 있지 않습니까. 나는 조사하지 않았다.
Reference
이 문제에 관하여(커서 변경), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/tadsan/items/f23d6db8efc0fcdcd225텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)