emacs: Make scrolling when dragging finger work
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 18 Apr 2016 06:38:28 +0000 (02:38 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 18 Apr 2016 06:38:28 +0000 (02:38 -0400)
packages/emacs/build.sh
packages/emacs/site-init.el

index e5f9075..21c7b07 100644 (file)
@@ -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"
index 064a308..f93baeb 100644 (file)
@@ -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)