🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.os.linux
Article #10367

ERC chinese solution !!

#10367
From: It's me FKtPp ;)
Date: Sun, 20 Jul 2003 05:51
110 lines
5216 bytes
What's ERC ?

  erc is a irc client run within emacs ;) and it's powerful and
  wonderful!

Why ERC ?

  Cuz I love Emacs and Emacs LISP ;) and I love communicate with people
  in irc ;)

How to Install ?

  Just copy and paste :) and optional byte-compile for better speed.

What now ?

  Hack for sending Chinese character ;) Sorry I'm not good at at Emacs
  Lisp so hard coded %)

��������8���ˣ���Ҫ�������ˡ������濪ʼ���������Ѿ������е�erc-*.el��
ERC-*.el�����������load-path���档����������emacs��erc.el��һ��
process-coding��������raw-text�����滻Ϊchinese-iso-8bit�����档Ȼ����
��erc-compact.el�����е�ctext�滻Ϊchinese-iso-8bit�����档��������
�����.emacs����������³�ʼ�����ƣ�
--8<---------------cut here---------------start------------->8---
;; The simplest way to load ERC is to add something like this to your
;; ~/.emacs file:
(require 'erc)

;; 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
--8<---------------cut here---------------end--------------->8---

�����������Emacs��Ȼ����ᷢ��tools�˵��������һ��erc������������
�����������erc�ˡ��ò˵�����M-x erc-select <RET>Ȼ��ش�erc������ͺ�
�ˡ�

���Ե�������ԣ�

irc server: irc.linuxfire.com
port: 6667

irc server: irc.linuxfans.org
channel: #linuxfans #linuxer
port: 6667

irc server: irc.pchome.net
channel: #geekbone #unix
port: 6667

�����Ժ����˵�� hi room :) ���ڲ���erc���ģ����� :) <-- can u see my
chinese ?

ף����ercing ;)
-- 
English literature's performing flea.
		-- Sean O'Casey on P.G. Wodehouse
Technical Details
Message-ID: <86ptk5ycdk.fsf@yahoo.com.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!news.bylinux.net!news.cn99.com!news.yaako.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB
X-Google-Thread: 10b277,9ee37a30cd793778,start
X-Google-Attributes: gid10b277,public
X-Google-ArrivalTime: 2003-07-19 22:54:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!news.bylinux.net!news.cn99.com!news.yaako.com!not-for-mail
From: "It's me FKtPp ;)" <m_pupil@yahoo.com.cn>
Newsgroups: cn.comp.os.linux
Subject: ERC chinese solution !!
Date: Sun, 20 Jul 2003 13:51:19 +0800
Organization: Bentium Ltd. (CN99)
Lines: 110
Message-ID: <86ptk5ycdk.fsf@yahoo.com.cn>
NNTP-Posting-Host: 218.11.80.15
Mime-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
X-Trace: news.yaako.com 1058680280 28178 218.11.80.15 (20 Jul 2003 05:51:20 GMT)
X-Complaints-To: usenet@news.yaako.com
NNTP-Posting-Date: Sun, 20 Jul 2003 05:51:20 +0000 (UTC)
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)