From 0d25a03f1129c0949f0d7d3ab6dd98651d802b4a Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 18 Apr 2016 02:38:28 -0400 Subject: [PATCH] emacs: Make scrolling when dragging finger work --- packages/emacs/build.sh | 2 +- packages/emacs/site-init.el | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/emacs/build.sh b/packages/emacs/build.sh index e5f9075fe..21c7b07b8 100644 --- a/packages/emacs/build.sh +++ b/packages/emacs/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/emacs/ TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor-and more" TERMUX_PKG_VERSION=25.0.92 -TERMUX_PKG_BUILD_REVISION=6 +TERMUX_PKG_BUILD_REVISION=7 TERMUX_PKG_SRCURL=ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_DEPENDS="ncurses, gnutls, libxml2" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--without-x --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --without-gconf --without-gsettings --with-gnutls --with-xml2" diff --git a/packages/emacs/site-init.el b/packages/emacs/site-init.el index 064a308b4..f93baebab 100644 --- a/packages/emacs/site-init.el +++ b/packages/emacs/site-init.el @@ -1,2 +1,4 @@ ; Enable terminal mouse events: (xterm-mouse-mode 1) +(global-set-key [mouse-4] 'scroll-down-line) +(global-set-key [mouse-5] 'scroll-up-line)