Touchpad Scrolling on Mac

I use emacs from a shell (not aquamacs) on a Mac laptop, however whenever I try to scroll up and down, it doesn't scroll the file. Is there any way to do this?

+4
source share
3 answers

I have a scroll trackpad for emacs + iTerm2 to work after this SO solution . For brevity, we added the following configurations to ~/.emacs :

 ;; mouse integration (require 'mouse) ;; needed for iterm2 compatibility (xterm-mouse-mode t) (global-set-key [mouse-4] '(lambda () (interactive) (scroll-down 1))) (global-set-key [mouse-5] '(lambda () (interactive) (scroll-up 1))) (setq mouse-sel-mode t) (defun track-mouse (e)) 
+8
source

Usually holding the shift key you can do this on xterm and friends. See if this works. Also try Mx xterm-mouse-mode, which should also give some functionality. Note that this will just scroll the cursor, but that should be good enough.

+1
source

I have not tried any of these solutions, but:

  • MouseTerm - passes mouse events to applications running in Terminal.app
  • iTerm - claims to support xterm mouse events.

(I doubt there is something in emacs to make it work.)

+1
source

Source: https://habr.com/ru/post/1306624/


All Articles