Skip to content

Instantly share code, notes, and snippets.

@cldotdev
Created February 15, 2014 07:27
Show Gist options
  • Select an option

  • Save cldotdev/9015681 to your computer and use it in GitHub Desktop.

Select an option

Save cldotdev/9015681 to your computer and use it in GitHub Desktop.
Support Chinese input method (hime) in Emacs
#
# ~/.xprofile
#
# sourced by /etc/lxdm/Xsession
#
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval "$(dbus-launch --sh-syntax --exit-with-session)"
fi
# Environment variables
#
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
# Support Emacs
export LC_CTYPE=zh_TW.UTF-8
export XMODIFIERS="@im=hime"
export GTK_IM_MODULE=hime
export QT_IM_MODULE=hime
hime &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment