I use Emacs in the terminal, either 23 or 24 depending on which machine I'm SSHed into, which are all Ubuntu / Mint. I also have the line alias emacs='emacsclient -a "" -t'
in my .bashrc file, if that matters. I've wanted to figure out how to be able to scroll with my mouse for months, but I can't seem to, even if I'm using Emacs locally.
Every time I open Emacs in a terminal, I have a scroll bar on the right, but it is not functional, because the part that you normally drag (that part that moves when you scroll) fills the entire height of the scroll bar, and is immovable.
I've seen many people suggest M-x mouse-wheel-mode
. When I begin to type it out, tab complete shows me the list of completions, and this isn't on it. The accepted answer here states it's included and on by default. If that's true, something else is wrong. Before finding this, I've also tried finding a .el
for it, and haven't succeeded in that either.
I've gotten (xterm-mouse-mode)
working. Which may only be related in that it's proof to Emacs that I have a mouse.
I don't know what to try next. Any ideas?
mouse-wheel-mode
is defined inmwheel.el
. It does not seem to be included in emacs 23 but only emacs 24. On emacs 24, on my machine, just using(xterm-mouse-mode)
works. What is yourTERM
environment variable before you launch emacs?