Переглянути джерело

Add setup for mice in console mode.

cray
Mitch Tishmack 11 роки тому
джерело
коміт
07db841a18
1 змінених файлів з 19 додано та 0 видалено
  1. +19
    -0
      emacs/.emacs.d/emacs.org

+ 19
- 0
emacs/.emacs.d/emacs.org Переглянути файл

@@ -466,6 +466,25 @@ Ah Fonts. Let me specify them for gui emacs.

#+END_SRC

** console setup

Enable mouse mode for the console and use the mousewheel if possible.

#+BEGIN_SRC emacs-lisp
(unless window-system
(require 'mouse)
(xterm-mouse-mode t)
(global-set-key [mouse-4] '(lambda ()
(interactive)
(scroll-down 1)))
(global-set-key [mouse-5] '(lambda ()
(interactive)
(scroll-up 1)))
(defun track-mouse (e))
)

#+END_SRC

* packages

All the packages I use.


Завантаження…
Відмінити
Зберегти