LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 6180|回复: 20

兄弟们!!sid里的erc很爽啊,试试用erc上irc吧!!

[复制链接]
发表于 2003-8-30 17:11:29 | 显示全部楼层 |阅读模式
由于erc的文档不是很全,又没有info可以看,所以,以前俺用erc都要对它动粗的(修改代码)

昨天仔细看了看cvs版本的erc的发送编码部分,发现可以通过配制文件搞定发送中文的问题诶!!

这下,使用erc就非常简单了!!

apt-get install erc


装好以后,只要在.emacs里面添加如下东东:
--8<---------------cut here---------------start------------->8---
;; To prevent ERC from loading at startup, you may use auto-load in
;; your ~/.emacs file. Here is an example:
(autoload 'erc-select "erc" "IRC client." t)

;; This will add it to the Tools menu. It uses EasyMenu.
(require 'easymenu)
(easy-menu-add-item  nil '("tools")
                     ["IRC" erc-select t])
--8<---------------cut here---------------end--------------->8---

然后在~/下面建立有如下内容的.ercrc.el文件
--8<---------------cut here---------------start------------->8---
;; Add dcc support
(require 'erc-dcc)

;; ;; To prevent ERC from loading at startup, you may use auto-load in
;; ;; your ~/.emacs file. Here is an example:
;; (autoload 'erc-select "erc" "IRC client." t)

;; Filling is disabled by default.  To enable it, add erc-fill to the
;; hooks that modify the display of incoming and outgoing text:
(require 'erc-fill)
(add-hook 'erc-insert-modify-hook 'erc-fill)
(add-hook 'erc-send-modify-hook 'erc-fill)
;; (setq erc-fill-prefix "    ")
(setq erc-timestamp-format "[%H:%M] ")
(setq erc-fill-prefix "      + ")

;; ERC Highlighting primitives can be found in the module
;; 'erc-match. Use the following in your ~/.emacs to activate it.
(require 'erc-match)
(erc-match-mode 1)
(setq erc-current-nick-highlight-type 'nick)

;; ;; This will add it to the Tools menu. It uses EasyMenu.
;; (require 'easymenu)
;; (easy-menu-add-item  nil '("tools")
;;                      ["IRC" erc-select t])

;; erc-notify.el allows you to keep track of the online status of
;; certain people.Use (require 'erc-notify) in your .emacs or M-x
;; load-library RET erc-notify RET to activate it.
(require 'erc-notify)

;; Channel tracking is defined as global minor mode in
;; erc-track.el. Use `M-x erc-track-modified-channels-mode RET' to
;; activate it. This interactive function is auto-loaded, so you don't
;; need to (require 'erc-track).
(require 'erc-track)
(erc-track-mode 1)
;; Join #emacs and #emdummy. Then /leave #emdummy, but don't kill its
;; buffer. #emacs would continue showing up as #ema in the
;; modeline. Puzzled? Kill the #emdummy. buffer and #emacs will again
;; become #e. Also consider setting the variable
;; `erc-track-shorten-aggressively' to 'max, and looking at its
;; documentation.

;; using ProgrammableCompletion, in erc-pcomplete.el. To have
;; pcomplete work automatically, try this:
(add-hook 'erc-mode-hook
          '(lambda ()
             (require 'erc-pcomplete)
             (pcomplete-erc-setup)
             (erc-completion-mode 1)))

;; Likewise, messages will land in the server buffer by default. To
;; cause new messages to automatically open up a query buffer with the
;; sender, add the following form to your startup files:
(setq erc-auto-query t) ; open a query window when someone messages me

(setq erc-encoding-default 'chinese-iso-8bit)
--8<---------------cut here---------------end--------------->8---

之后重新启动你的emacs就可以使用erc了,快试试最新的erc吧!! ;)

--
Someone is speaking well of you.
发表于 2003-8-31 11:08:09 | 显示全部楼层
阿不咔嚓,偶现在好惨,没有宽带了,我的极云飞瀑内猫好象linux也不支持,只能先装个win2k凑合,又中了冲击波,KAO,除了linuxsir和个别论坛能正常打开网页外别的网站都不能访问了,复制粘贴也没有了,想下个补丁居然要100多兆。。。。。
发表于 2003-8-31 13:01:56 | 显示全部楼层
没有那么大吧,有专杀补丁的。去金山的下个吧。
我现在也没有宽带了。
一直在公司里混。
erc 是什么啊。
能发送文件。?
fktpp 真强改代码了。:)
向你学习。
发表于 2003-8-31 13:21:50 | 显示全部楼层
老兄,erc跟xchat比,有哪些优点啊?
介绍一下沙
发表于 2003-8-31 17:16:05 | 显示全部楼层
用emacs快有两星期了吧,说下初步的印象

emacs里的东东,好像都有两个特点
1,可完全键盘操作,理论上来说非常迅捷,但要掌握熟练,不容易
2,无所不包的配置,各种功能,全在用户掌握,但基本上都需要手工添加语句,看N多的英文DOC

如果不是在console下,不需要总在EMACS下,
个人感觉就不如用xchat,足以了
发表于 2003-8-31 17:46:27 | 显示全部楼层
偷偷透露一下,        FKtPp兄其实也是用xchat的
他是嫌mirc不爽,所以在windows版的emacs里用erc
不过,听他说,好象erc不支持dcc

呵呵 ...
发表于 2003-8-31 19:16:41 | 显示全部楼层
5555555,如果自己在Windows下,肯定用mirc改造的palbot xp
提醒功能很不错

自己只试验过两三次DCC,Win(palbot)/Linux(xchat)都做过,没有一次成功
-__-
发表于 2003-8-31 21:41:57 | 显示全部楼层
好象防火墙会档住dcc的说
发表于 2003-9-1 00:39:48 | 显示全部楼层
不,都没有网络防火墙,个人不喜欢那东东,感觉不需要的说 ^___^
才开始怀疑是非internet ip的事情,后来找了一个MM,两人都是Internet IP仍然不成……………………

牛人们呐,emacs什么时候支持GBK的说???写一个patch吧,5555555555
我的系统,除了没有gbk的 Freebsd 4-STABLE,全是GBK
@$……$……&&
 楼主| 发表于 2003-9-1 20:45:35 | 显示全部楼层
;; Add dcc support
(require 'erc-dcc)


cvs版本里面的erc是带有dcc功能模块的,不过。。。。。。俺到现在还是搞不定。。。。惭愧!!

erc的好处有很多!用emacs,又喜欢聊天的同学们一定要试一试啊!

carlos兄~~现在俺全面转向erc了,当然有时候要用用bitchx或者xchat的dcc功能和/exec命令,hoho
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表