I am using emacs from the 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?
I've gotten trackpad scrolling to work for emacs + iTerm2 following this SO solution. For brevity, added the following configs to my ~/.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))
Normally holding down the 'shift' key will let you do this on xterm and friends. See if that works. Also try M-x xterm-mouse-mode which should also yield some functionality. Note that these will prob only scroll the cursor but that should be good enough.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With