资讯专栏INFORMATION COLUMN

ubuntu emacs not use fcitx input method

Songlcy / 1155人阅读

ubuntu linux emacs version 24 not use fcitx input method (write chinese word),

emacs24 default installed to "/usr/bin/" in this dir.

in this dir "/usr/local/bin/" created new a file,and file name "emacs"

command:"sudo touch emacs"

use vim modify this file "sudo vim emacs" and write the following content:

"#!/bin/bash
# Make Fcitx work in emacs
export LC_CTYPE=zh_CN.UTF-8;
/usr/bin/emacs "$@""

modify this file permission
sudo chmod ugo+rwx emacs

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,

in terminal called path is "/usr/local/bin" ,startup emacs from lanucher path is "/usr/bin"

now we moving to dir "/usr/share/applications" ,in here ,you see more ico,find to this file "emacs24.desktop"

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"

ok.now you whether in terminal startup emacs and startup emacs from lanucher,,you can be write chinese word.

finishing

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/7738.html

相关文章

  • ubuntu emacs not use fcitx input method

    ubuntu linux emacs version 24 not use fcitx input method (write chinese word), emacs24 default installed to /usr/bin/ in this dir. in this dir /usr/local/bin/ created new a file,and file name emacs ...

    Imfan 评论0 收藏0
  • ubuntu emacs not use fcitx input method

    ubuntu linux emacs version 24 not use fcitx input method (write chinese word), emacs24 default installed to /usr/bin/ in this dir. in this dir /usr/local/bin/ created new a file,and file name emacs ...

    NervosNetwork 评论0 收藏0
  • ubuntu emacs not use fcitx input method

    ubuntu linux emacs version 24 not use fcitx input method (write chinese word), emacs24 default installed to /usr/bin/ in this dir. in this dir /usr/local/bin/ created new a file,and file name em...

    Enlightenment 评论0 收藏0
  • chinese input method in emacs

    摘要:安装完后,运行如果出现就了这一步添加指令到文件中,不然输不上汉字,有可能连输入法都切不出来,如果在环境里汉字都是很奇怪火星字符。system: debian linux emacs version: emacs 23 话说debian linux是可定制比强的系统也真是那么回事,在你使用的过程中需要什么都是需要自己去手动安装的,不必要的东西,debian linux是不会为你自动安装的,...

    BothEyes1993 评论0 收藏0
  • Debian,从安装到喜欢

    摘要:前言经历了,从安装到放弃之后,我对那些所谓开箱即用的桌面彻底失去了信心。只安装基本系统。不需要的一些软件包,安装结束后,可酌情删减。使用安装时,会遇到包装不上的问题。现在的,已经不是年前穷得连一款像样的中文字体都没有的处境了。 前言 经历了「Fedora,从安装到放弃」之后,我对那些所谓「开箱即用」的 Linux 桌面彻底失去了信心。它们的确是开箱即用的,只不过对于我而言,它们开箱后很...

    everfly 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<