ubuntu linux emacs version 24 not use fcitx input method (write chinese word),linux
emacs24 default installed to "/usr/bin/"
in this dir.ubuntu
in this dir "/usr/local/bin/"
created new a file,and file name "emacs"
vim
command:"sudo touch emacs"
bash
use vim modify this file "sudo vim emacs"
and write the following content:app
"#!/bin/bash # Make Fcitx work in emacs export LC_CTYPE=zh_CN.UTF-8; /usr/bin/emacs "$@""
modify this file permissionsudo chmod ugo+rwx emacs
this
ok,now you can be in terminal run "emacs"
command. started emacs ,you can be use fcitx input method ,write chinese word.
if you use ubuntu linux and in lanucher has emacs ico,,at the moment from lanucher start emacs not write chinese word.here startup emacs and in terminal is different,,those called different path for emacs,code
in terminal called path is "/usr/local/bin"
,startup emacs from lanucher path is "/usr/bin"
ci
now we moving to dir "/usr/share/applications"
,in here ,you see more ico,find to this file "emacs24.desktop"
terminal
we use vim editing it " sudo vim emacs24.desktop"
,
in file find to this line "Exec=/usr/bin/emacs24 %F"
instead it as "Exec=/usr/local/bin/emacs %F"input
ok.now you whether in terminal startup emacs and startup emacs from lanucher,,you can be write chinese word.
finishing