emacs: Assume UTF-8 keyboard input for emacsclient

This commit is contained in:
Tee KOBAYASHI 2021-12-05 17:01:56 +09:00 committed by Henrik Grimler
parent d9a6c35a65
commit 697977c0b1
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Extensible, customizable text editor-and more"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=27.2
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/emacs/emacs-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=b4a7cc4e78e63f378624e0919215b910af5bb2a0afc819fad298272e9f40c1b9
TERMUX_PKG_DEPENDS="ncurses, gnutls, libxml2, libjansson"

View File

@ -1,4 +1,9 @@
; Enable terminal mouse events:
;; Enable terminal mouse events:
(xterm-mouse-mode 1)
(global-set-key [mouse-4] 'scroll-down-line)
(global-set-key [mouse-5] 'scroll-up-line)
;; Assume UTF-8 keyboard input for emacsclient:
(add-hook 'server-visit-hook
'(lambda ()
(set-keyboard-coding-system 'utf-8-unix)))