[原创]Emacs 常见问题及其解决方法。

Vim、Emacs配置和使用
duoxing
帖子: 122
注册时间: 2005-12-20 21:26

#16

帖子 duoxing » 2006-06-24 18:24

sybase2008 写了:lz,我用的是ubuntu510,按照你这个改的
duoxing@smartfish:~$ cat /etc/environment
LANGUAGE="en_CN:en_US:en_GB:en"

LANG=en_US

LC_CTYPE=zh_CN.GBK

用C-space可以调用scim,但是scim是英文/欧洲,还是只能输入英文阿!

确保你scim里面安装了你喜欢的输入法,比如拼音,五笔等,同时在emacs里面确保设置正确。

PS:你可以先试试在全中文环境下看有没有问题。
sybase2008
帖子: 109
注册时间: 2006-01-23 16:41

#17

帖子 sybase2008 » 2006-06-24 22:17

中文环境下没有问题,输入法的安装是按照新手指南上装的!
ubuntu_jonathan
帖子: 8
注册时间: 2006-10-03 23:31

#18

帖子 ubuntu_jonathan » 2006-10-04 14:36

拜托能不能说清楚一些呢?这些代码应该加到那个文件中呢?

(set-language-environment 'Chinese-GB)
(set-keyboard-coding-system 'euc-cn)
(set-clipboard-coding-system 'euc-cn)
(set-clipboard-coding-system 'cn-gb-2312)
(set-terminal-coding-system 'euc-cn)
(set-buffer-file-coding-system 'euc-cn)
(set-selection-coding-system 'euc-cn)
;(set-selection-coding-system 'chinese-iso-8bit-with-esc)
(set-selection-coding-system 'cn-gb-2312)
(set-default-coding-systems 'euc-cn)
(setq locale-coding-system 'euc-cn)
(modify-coding-system-alist 'process "*" 'euc-cn)
(setq default-process-coding-system
'(euc-cn . euc-cn))
(setq-default pathname-coding-system 'euc-cn)
moonchild
帖子: 116
注册时间: 2005-12-25 20:44

#19

帖子 moonchild » 2006-10-14 14:43

.emacs文件
fengboli
帖子: 24
注册时间: 2006-11-06 7:55

#20

帖子 fengboli » 2006-11-16 9:54

真好! 新手在这里谢了!
honeydog
帖子: 24
注册时间: 2006-12-04 23:06

#21

帖子 honeydog » 2007-01-11 23:12

.emacs文件在哪個目錄裏呀,,新手接著問?
honeydog
帖子: 24
注册时间: 2006-12-04 23:06

#22

帖子 honeydog » 2007-01-12 12:15

頂上,樓主解決下~~~~
jake
帖子: 40
注册时间: 2006-09-16 22:32

#23

帖子 jake » 2007-01-14 17:47

新手就多看看文档吧,老是问一些让人吐血的问题不好的
duoxing
帖子: 122
注册时间: 2005-12-20 21:26

#24

帖子 duoxing » 2007-01-31 15:10

.emacs在你用户的主文件下面,比如你有个账号是:ubuntu,那么你的.emacs文件的路径就是:/home/ubuntu/.emacs,如果没有你自己就新建一个就可以了。
明天的明天我们还会用linux。
头像
forrid
帖子: 659
注册时间: 2007-04-23 17:40

#25

帖子 forrid » 2007-11-12 23:56


吾生也有涯,而知也无涯,以有涯随无涯,SB啊~~~~~~~~~~
头像
天浩
帖子: 146
注册时间: 2007-04-14 0:41
来自: 武汉
联系:

#26

帖子 天浩 » 2007-11-24 1:13

刚刚学emacs, 看不太懂, 不过过段时间就懂了, 谢谢楼主!
scupan
帖子: 2
注册时间: 2006-11-17 21:34

#27

帖子 scupan » 2007-12-02 19:26

ftfont.c: In function ‘ftfont_open’:
ftfont.c:738: error: ‘struct ftfont_info’ has no member named ‘maybe_otf’
ftfont.c:739: error: ‘struct ftfont_info’ has no member named ‘otf’
make[2]: *** [ftfont.o] Error 1
make[2]: Leaving directory `/home/scupan/emacs/src'
make[1]: *** [bootstrap-build] Error 2
make[1]: Leaving directory `/home/scupan/emacs'
make: *** [bootstrap] Error 2


64bit 编译出现的 错误
谁能帮忙看下 ,谢谢
头像
linuxier
帖子: 317
注册时间: 2008-05-27 10:45
联系:

Re: [原创]Emacs 常见问题及其解决方法。

#28

帖子 linuxier » 2010-03-08 11:55

在 debian testing 上 emacs23 也要 mule-ucs 来使用 scim。看下面的提示包含下面一行:

install/mule-ucs: Byte-compiling for emacs23 ...This will take a while ... done.

可以看到还是要 mule-ucs 支持中文的。当然还是要在命令前加环境变量。
在论坛上搜索文章,很少提到 mule-ucs 的,唉,搞的人很郁闷。

总的来说,emacs 输入法有三种
1,M-x set-input-method 回车,然后选一个,如 chinese-py。因为我用五笔,而里面没有五笔,因此要装一个。下面的地址有 wubi 的安装和配置。
http://daiyuwen.freeshell.org/gb/index.html
注:
1:上面的网址有些时间没有更新了,关于它的命令也都变也了 wubi 开头的了。你可以 M x wubi TAB 来看到它们。
2:启动 chinese-wubi 后在五笔字形上点右鍵会出来帮助,包括五笔的一份说明和快捷键列表。
3:自定义词组很简单,只要一个词组一行就可以了。然后用上面网址给出的命令来生成,注意词组文件是 gb 编码。在 en_US.UTF-8 的 locale 下还要把生成的 wubi-rules.el 改成 utf8 编码。编码转换可以用 autogb 来完成,十分方便。

2,安装 sicm-bridge,怎么配置看那个 .el 文件,最后虽然把 scim 弄出来了但不矢道怎么切换,而那个网頁居然是日文的。记得有看到一篇文章里说想学好 emacs 就要把英文和日文学好,看来一点都不假。

3,安装 mule-ucs。debian testing 里会自动加裁, ubuntu 不知道。
但在 xfce 的 launcher 中直接输入
LANG=zh_CN.UTF-8 不起作用。没关系,我们可以在 /usr/local/bin 中写入一个 xemacs 文件,然后把图标指向它。
echo 'LANG=zh_CN.UTF-8 emacs $*' > /usr/local/bin/xemacs
chmod +x /usr/local/bin/xemacs

下面这个命令是我在删掉 mule-ucs 后测试 emacs 不能使用 scim 输入法后重新安装上它时用的。
$sudo aptitude remove mule-ucs+
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
mule-ucs
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/728kB of archives. After unpacking 4,927kB will be used.
Writing extended state information... Done
Selecting previously deselected package mule-ucs.
(Reading database ... 306540 files and directories currently installed.)
Unpacking mule-ucs (from .../mule-ucs_0.85~0.20061127-3_all.deb) ...
Setting up mule-ucs (0.85~0.20061127-3) ...
install/mule-ucs: Byte-compiling for emacs23 ...This will take a while ... done.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
blog: http://sxpspace.blogspot.com , http://hi.baidu.com/sxpspace
amd 5000+ /nvidia 8500gt
debian testing amd64/xfce4
#nvidia 官方驱动真是越来越垃圾了,无语。
xfq
帖子: 10
注册时间: 2012-11-03 16:04

Re: [原创]Emacs 常见问题及其解决方法。

#29

帖子 xfq » 2013-03-17 15:15

news.cn99.com貌似连不上。。
回复