본문 바로가기

망각/Etc

[EMACS] OSX 터미널에서 이맥스에 마우스 이벤트 먹게 하기

* 환경: Mac OS X 10.9


터미널에서 이맥스 사용시 마우스 이벤트가 전달되지 않는대, 아래 2가지를 설치해서 해결할 수 있다.

(마우스 클릭은 잘 되는데, 드래그로 텍스트 선택이 안된다ㅜ)


MouseTerm(https://bitheap.org/mouseterm/)

SIMBL(http://www.culater.net/software/SIMBL/SIMBL.php)


설치 후, 환경설정을 해 줘야한다는 것. 아래 설정들은 MouseTerm 사이트에 나와 있는 것이다.


* Emacs

(unless window-system
  (xterm-mouse-mode 1)
  (global-set-key [mouse-4] '(lambda ()
                               (interactive)
                               (scroll-down 1)))
  (global-set-key [mouse-5] '(lambda ()
                               (interactive)
                               (scroll-up 1))))


* VI


if has("mouse")
    set mouse=a
endif