﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-游世集-随笔分类-Emacs</title><link>http://www.cnitblog.com/xlmo/category/266.html</link><description>遨游人世，累文一集
</description><language>zh-cn</language><lastBuildDate>Tue, 04 Oct 2011 04:43:06 GMT</lastBuildDate><pubDate>Tue, 04 Oct 2011 04:43:06 GMT</pubDate><ttl>60</ttl><item><title>Emacs Time Line</title><link>http://www.cnitblog.com/xlmo/archive/2005/09/04/2508.html</link><dc:creator>xlmo</dc:creator><author>xlmo</author><pubDate>Sun, 04 Sep 2005 11:30:00 GMT</pubDate><guid>http://www.cnitblog.com/xlmo/archive/2005/09/04/2508.html</guid><wfw:comment>http://www.cnitblog.com/xlmo/comments/2508.html</wfw:comment><comments>http://www.cnitblog.com/xlmo/archive/2005/09/04/2508.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/xlmo/comments/commentRss/2508.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/xlmo/services/trackbacks/2508.html</trackback:ping><description><![CDATA[1976    TECMAC and TMACS
        a pair of "TECO-macro realtime editors."
        by Guy Steele, Dave Moon, Richard Greenblatt,
        Charles Frankston, et al.
          |
          |
1976    EMACS
        by Richard Stallman, Guy Steele,       EINE (EINE Is Not EMACS)
        and Dave Moon.                         by Dan Weinreb.
        Merger of TECMAC and TMACS, plus       for MIT Lisp Machine.
        a dynamic loader and Meta-key cmds.    First Emacs written in Lisp.
        Ran on ITS and TWENEX (Tops-20)                |
        written in TECO and PDP 10 assembly.           |
                                                       |
                                                       |
1978    Multics Emacs                         ZWEI (ZWEI Was EINE Initially)
        by Bernie Greenberg.                  by Dan Weinreb and Mike McMahon.
        written in MacLisp;                            |
        also used Lisp as its                          |
        extension language.                            |
1980                                         ZMACS (direct descendant of ZWEI)
                                             on Symbolics LM-2, LMI LispM,
                                             and later, TI Explorer (1983-1989)
1981               Gosling Emacs                       :
                   by James Gosling                    :
                   written in C; with "Mocklisp"
                   as its extension language.
                       /      |
1983                  /       |                           Hemlock (early 83)
                     /        |                           by Rob MacLachlan,
                    /    Unipress Emacs (6-may-83)        Skef Wholey, et al.
                   /     $395 commercial product.         written in Spice Lisp
                  /                                       (CMU Common Lisp)
1985  GNU Emacs 13.0? (20-mar-85)
      by Richard Stallman.
      initial public release?
             |
      GNU Emacs 15.10 (11-apr-85)
             |
      GNU Emacs 15.34 (07-may-85)
             |
      GNU Emacs 16.56 (15-jul-85)
      (Gosling code expunged
      for copyright reasions)
             |
             |
      GNU Emacs 16.60 (19-sep-85)
      (contained first patches from
      the net, including preliminary
      SYSV support)
             |
             |
      GNU Emacs 17.36 (20-dec-85)
      (included TeX manual; first
      version that worked on SYSV
      out of the box)
             |
             |
1986  GNU Emacs 18.24 beta (02-oct-86)
             |
1987  GNU Emacs 18.41 (22-mar-87)
             |
      GNU Emacs 18.45 (02-jun-87)
             |
      GNU Emacs 18.49 (18-sep-87)
             |
1988  GNU Emacs 18.50 (13-feb-88)
             |
      GNU Emacs 18.51 (07-may-88)
             |
      GNU Emacs 18.52 (01-sep-88)
             |
1989  GNU Emacs 18.53 (24-feb-89)
             |   \
             |    \________________________________________________
             |                                                     \
      GNU Emacs 18.54 (26-apr-89)                                   \
             |                                                       \
      GNU Emacs 18.55 (23-aug-89)                                     |
             |    |    \                                              |
             |    |     \________________________________________     |
             |    |                                              \    |
             |    |                                       Epoch 1.0 (14-dec-89)
             |    |                                       by Simon Kaplan,
             |    |                                       Chris Love, et al.
             |    |                                                   |
             |    |                                       Epoch 2.0 (23-dec-89)
             |    |                                                   |
             |    |                                                   |
1990         |    |                                       Epoch 3.1 (06-feb-90)
             |    \                                                   |
             |     \                                                  |
             |      \                                     Epoch 3.2 (11-dec-90)
             |       \                                                |
             |        \____ (sporadic work on                         |
             |               GNU Emacs 19 begins)                     |
             |                     |                                  |
             |                     |                      Epoch 4.0 (27-aug-90)
             |                     |                                  |
1991  GNU Emacs 18.57 (??-jan-91)  |                                  |
             |                     |                                  |
      GNU Emacs 18.58 (??-???-91)  |                                  |
             |                     |____                              |
             |                     |    \                             |
             |                     |     \                            |
1992         |                     |   Lucid Emacs 19.0 (??-apr-92)   |
             |                     |   by Jamie Zawinski et al.       |
             |                     |      |                           |
             |                     |   Lucid Emacs 19.1 (04-jun-92)   |
             |                     |      |                           |
      GNU Emacs 18.59 (31-oct-92)  |   Lucid Emacs 19.2 (19-jun-92)   |
             |                     |      |                           |
             |                    /    Lucid Emacs 19.3 (09-sep-92)   |
             |                   /        |                           |
1993         |                  /      Lucid Emacs 19.4 (21-jan-93)   |
             |   ______________/          |                           |
             |  /                      Lucid Emacs 19.6 (09-apr-93)   |
             | /                          |                           |
      GNU Emacs 19.7 beta (22-may-93)     |                          /|
      first public v19 beta               |                         / |
             |                            |                        /  |
      GNU Emacs 19.8 beta (27-may-93)     |                       /   |
             |        \                   |                      /    |
             |         \________________  |  ___________________/     |
             |                          \ | /                         |
             |                         Lucid Emacs 19.8 (06-sep-93)   |
             |                         (Epoch merger, preliminary     |
             |                          I18N support)                 |
             |                            |                           |
      GNU Emacs 19.22 beta (28-nov-93)    |                           |
             |                            |                           |
1994         |                         Lucid Emacs 19.9 (12-may-94)  /
             |                         (scrollbars, Athena)         /
             |                            |                        /
      GNU Emacs 19.23 beta (17-may-94)    |                       /
             |            \               |                      /
             |             \____________  |  ___________________/
             |                          \ | /
             |                         Lucid Emacs 19.10 (27-may-94)
             |                         last JWZ release.
             |                            |
      GNU Emacs 19.24 beta (16-may-94)    |
             |                            |
             |                         XEmacs 19.11 (13-sep-94)
             |                         Lucid Emacs -> XEmacs renaming.
             |                         now maintained by Chuck Thompson
             |                         and Ben Wing.
             |                            |
      GNU Emacs 19.27 beta (14-sep-94)    |
             |                            |
      GNU Emacs 19.28 (01-nov-94)         |
      first official v19 release.         |
             |                            |
1995         |                         XEmacs 19.12 (23-jun-95)
             |                         (tty support)    \
      GNU Emacs 19.29 (21-jun-95)         |              \
             |                            |        (work on 20.x begins)
      GNU Emacs 19.30 (24-nov-95)         |               :
             |           \                |               :
             |            \_____________  |
             |                          \ |
             |                         XEmacs 19.13 (01-sep-95)
1996  GNU Emacs 19.31 (25-may-96)         |
             |                         XEmacs 19.14 (23-jun-96)
      GNU Emacs 19.34 (21-aug-96)         |                   \
1997         |                         XEmacs 20.0 (09-feb-97) \
             |                         now maintained by        \
             |                         Steve Baur.               |
             |                            |           XEmacs 19.15 (26-mar-97)
             |                            |                      |
             |                         XEmacs 20.1 (15-apr-97)   |
             |                            |                      |
             |                         XEmacs 20.2 (16-may-97)   |
      GNU Emacs 20.1 (17-sep-97)          |                      |
             |                            |                      |
      GNU Emacs 20.2 (20-sep-97)          |                      |
             |                            |           XEmacs 19.16 (31-oct-97)
             |                            |   
             |                         XEmacs 20.3 (21-nov-97)
             |                            |
             |                            |
1998         |                         XEmacs 20.4 (28-feb-98)
             |                         first reasonably stable
             |                         release with MULE support.
             |                         XEmacs "core" and "packages"
             |                         now packaged separately.
             |                            |
             |                            |
             |                         XEmacs 21.0-pre5 (18-jul-98)
             |                         Numbering scheme goes wonky due to
             |                         switch to stable + unstable branches.
      GNU Emacs 20.3 (19-aug-98)          |
             |                            |
             |                         XEmacs 21.0.60 (10-dec-98)
             |                           /  \___________________
             |                          /                       \
1999         |                         /             XEmacs 21.2.9 (03-feb-99)
             |                        /              (trunk / unstable branch)
             |                       /                           |
             |                XEmacs 21.1.3 (26-jun-99)          |
             |                (stable / maintenance branch)      |
             |                maintained by Vin Shelton.         |
             |                       |                           |
      GNU Emacs 20.4 (12-jul-99)     |                           |
             |                       |                           |
2000         |                       |               XEmacs 21.2.27 (18-jan-00)
             |                       |                           |
             |                XEmacs 21.1.9  (13-feb-00)         |
             |                       |                           |
      GNU Emacs 21.1 (20-oct-01)     |               XEmacs 21.2.36 (04-oct-00)
             |                       |                           |
2001         |                XEmacs 21.1.14 (27-jan-01)         |
             |                (branch retired)                   |
             |                                       XEmacs 21.2.40 (08-jan-01)
             |                             ____________________/ |
             |                            /                      |
             |                           /           XEmacs 21.5.0  (18-apr-01)
             |                          /            (trunk / unstable branch)
             |                         /                         |
             |                XEmacs 21.4.0  (16-apr-01)         |
             |                (stable / maintenance branch)      |
             |                Maintained by Stephen Turnbull.    |
             |                Shipped by Red Hat, Debian,        |
             |                Mandrake, etc.                     |
             |                        |                          |
2002  GNU Emacs 21.2 (16-mar-02)      |              XEmacs 21.5.6  (05-apr-02)
             |                        |                          |
             |                XEmacs 21.4.7  (04-may-02)         |
             |                        |                          |
2003         |                XEmacs 21.4.12 (15-jan-03)         |
             |                first "stable" 21.4                |
             |                        |                          |
      GNU Emacs 21.3 (19-mar-03)      |                          |
                                      |                          |
                              XEmacs 21.4.13 (25-may-03)         |
                              maintained by Vin Shelton.         |
                                                                 |
                                                     XEmacs 21.5.14 (01-jun-03)<img src ="http://www.cnitblog.com/xlmo/aggbug/2508.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/xlmo/" target="_blank">xlmo</a> 2005-09-04 19:30 <a href="http://www.cnitblog.com/xlmo/archive/2005/09/04/2508.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>我的dotEmacs文件（2005－9－03）</title><link>http://www.cnitblog.com/xlmo/archive/2005/09/03/2478.html</link><dc:creator>xlmo</dc:creator><author>xlmo</author><pubDate>Sat, 03 Sep 2005 05:38:00 GMT</pubDate><guid>http://www.cnitblog.com/xlmo/archive/2005/09/03/2478.html</guid><wfw:comment>http://www.cnitblog.com/xlmo/comments/2478.html</wfw:comment><comments>http://www.cnitblog.com/xlmo/archive/2005/09/03/2478.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/xlmo/comments/commentRss/2478.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/xlmo/services/trackbacks/2478.html</trackback:ping><description><![CDATA[;; .emacs<br>
;;;load-path;;;;设置默认的load目录，以后emacs首先从这个目录搜索。<br>
(setq load-path (append load-path (list "/home/xlmo/myelfiles/")))<br>
;(setq load-path (cons "/home/xlmo/myelfiles/" load-path)<br>
;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;default mode;;;;;;;;<br>
(setq default-major-mode 'text-mode)<br>
(add-hook 'text-mode-hook 'turn-on-auto-fill)<br>
;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;tabbar-mode;;;<br>
;; (require 'tabbar)<br>
;; (tabbar-mode)<br>
;;;;;;;;;;;;;;;;<br>
<br>
;;;;;ido-mode;;;;;;;;;;由于每次退出的时候都要求选择编码，所以在找到解决办法之前暂时不用。<br>
;; (require 'ido)<br>
;; (ido-mode t)<br>
;;;;;;;;;;;;;;;<br>
<br>
;;;ibuffer;;;;;;;;;;<br>
(require 'ibuffer)<br>
;;;;;;;;;;;;;;;<br>
<br>
;;;setnu;;;;;;;;显示行号。<br>
(require 'setnu)<br>
;(add-hook 'text-mode-hook 'turn-on-setnu-mode)<br>
;;;;;;;;;;;;;;;<br>
<br>
;;;;;thumbs;;;;;;;;;;<br>
;; (require 'thumbs)<br>
;; (thumbs-mode)<br>
;;;;;;;;;;;;;;;<br>
<br>
;;;;;table;;;;<br>
(require 'table)<br>
;;;;;;;;;;;;;;<br>
<br>
;;;;;display-time;;;;<br>
(setq display-time-24hr-format t)<br>
(setq display-time-day-and-date t)<br>
(display-time)<br>
;;;;;;;;;;;;;;;;;;;<br>
<br>
;;; uncomment this line to disable loading of "default.el" at startup<br>
;; (setq inhibit-default-init t)<br>
<br>
;; turn on font-lock mode<br>
(when (fboundp 'global-font-lock-mode)<br>
&nbsp;(global-font-lock-mode t))<br>
;;;;;;;;;;;;;;;;;<br>
<br>
;; enable visual feedback on selections<br>
;(setq transient-mark-mode t)<br>
<br>
;; default to better frame titles<br>
;(setq frame-title-format<br>
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (concat&nbsp; "%b - emacs@" system-name))<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
<br>
;; default to unified diffs<br>
&nbsp;(setq diff-switches "-u")<br>
&nbsp;<br>
(custom-set-variables<br>
&nbsp; ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!<br>
&nbsp; ;; Your init file should contain only one such instance.<br>
&nbsp;'(auto-compression-mode t nil (jka-compr))<br>
&nbsp;'(case-fold-search t)<br>
&nbsp;'(current-language-environment "Chinese-GB")<br>
&nbsp;'(default-input-method "chinese-py-punct")<br>
&nbsp;'(global-font-lock-mode t nil (font-lock))<br>
&nbsp;'(show-paren-mode t nil (paren))<br>
&nbsp;'(transient-mark-mode t))<br>
&nbsp;<br>
(custom-set-faces<br>
&nbsp; ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!<br>
&nbsp; ;; Your init file should contain only one such instance.<br>
&nbsp;)<br>
<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;page jump 页面跳转。<br>
(setq scroll-margin 3<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scroll-conservatively 10000)<br>
;;;;;;;;;;;;;;;<br>
<br>
;;mouse leave from cursor 当光标移动到鼠标指针所在位置时，鼠标指针自动移开。<br>
(mouse-avoidance-mode 'animate)<br>
;;;;;;;;;;;;;<br>
<br>
;;buffer name in title 设置buffer的name显示在标题栏。<br>
(setq frame-title-format "emacs@%b")<br>
;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;display pictours direct<br>
(auto-image-file-mode)<br>
;;;;;;;;;;;;;;;;;<br>
<br>
;;My information;;;;;;;;;;;;<br>
(setq user-full-name "Mo Xiaolong")<br>
(setq user-mail-address "moxiaolong@gmail.com")<br>
;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;recursion copy in dired-mode ,make dired can copy and delete directory在dired模式中时允许递归的拷贝和删除目录。<br>
(setq dired-recursive-copies 'top)<br>
(setq dired-recursive-deletes 'top)<br>
;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;disable the welcome screen;;;;;;;关闭“开机”画面。<br>
;(setq inhibit-startup-message t)<br>
;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;pop mail;;;;;;;;;<br>
(setenv "pop.gmail.com")<br>
(setq rmail-primary-inbox-list'("po:moxiaolong@gmail.com"))<br>
(setq rmail-pop-password-required t)<br>
;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;un-display the tool bar and menu bar;;;;;;;;对菜单条，工具栏，滚动条的可见设置。<br>
;(menu-bar-mode nil)<br>
(tool-bar-mode nil)<br>
;(scroll-bar-mode nil)<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;ecb+cedet;;;;;;;;;;;<br>
;;(load-file "/home/xlmo/myelfiles/cedet-1.0pre3/common/cedet.el")<br>
;; (semantic-load-enable-code-helpers)<br>
;; (add-to-list 'load-path<br>
;; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "/home/xlmo/myelfiles/ecb-2.32")<br>
;; (require 'ecb-autoloads)<br>
;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;;;;;color-theme;;;;;;;;;;;;;;<br>
(require 'color-theme)<br>
;(color-theme-classic)<br>
(color-theme-gnome2)<br>
;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;;;mmm-mode;;;;;;;;;;;;;;;;;;<br>
;(require 'mmm-auto)<br>
;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;;backup files;;;;;;;;;;;;;;;;<br>
<br>
;; (setq kept-old-versions 2)<br>
;; (setq kept-new-versions 5)<br>
;; (setq delete-old-versions t)<br>
;; (setq backup-directory-alist '(("." . "~/mybackupfiles")))<br>
;; (setq backup-by-copying t)<br>
(setq make-backup-files t)<br>
(setq version-control t)<br>
(setq kept-old-versions 2)<br>
(setq kept-new-versions 5)<br>
(setq delete-old-versions t)<br>
(setq backup-directory-alist '(("" . "~/mybackupfiles")))<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
<br>
;;;;Setting for Chineses;;;;;;;;;;;;;;;;<br>
(set-language-environment 'Chinese-GB)<br>
;(create-fontset-from-fontset-spec <br>
; "-isas-fangsong ti-medium-r-normal-*-*-160-*-*-c-*-gb2312.1980-0" t)<br>
(set-keyboard-coding-system 'chinese-iso-8bit)<br>
(set-clipboard-coding-system 'chinese-iso-8bit)<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;emacs-wiki;;;;;;;;;;;;;;;<br>
(require 'emacs-wiki)<br>
(setq emacs-wiki-directories '("~/wiki/source/webpage"))<br>
(setq emacs-wiki-publishing-directory "~/wiki/publish/webpage")<br>
(setq emacs-wiki-maintainer "mailto:moxiaolong@gmail.com")<br>
(setq emacs-wiki-charset-default "GBK")<br>
(setq emacs-wiki-coding-default "GBK")<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;;mpg123;;;;;;;;;;;;;;;;;<br>
;(autoload 'mpg123 "mpg123" "A Front-end to mpg123" t)<br>
;(setq mpg123-default-dir "~/music")<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;;Emacs-w3m;;;;;;;;;;;;;;<br>
;(require 'w3m-load)<br>
;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
;;;;;;;;;mpg321;;;;;<br>
(setq mp3play-dirlist '("~/music")<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;; I want to see the remaining time<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mp3play-show-timing 1<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;; This because I use a patched mpg321 to control the gain<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mp3play-use-remote-gain t<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;; Initially, set the gain to 50%<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mp3play-initial-gain 50<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;; Where to store the info about the song playing to resume later<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mp3play-resume-file "~/.mp3play-resume")<br>
(load "mp3play")<br>
;; M-\ go to the mp3play buffer<br>
(define-key global-map [(meta \\)] 'mp3play)<br>
<br>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br>
<br>
<br>
<img src ="http://www.cnitblog.com/xlmo/aggbug/2478.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/xlmo/" target="_blank">xlmo</a> 2005-09-03 13:38 <a href="http://www.cnitblog.com/xlmo/archive/2005/09/03/2478.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Emacs Tips(2005-7-16)</title><link>http://www.cnitblog.com/xlmo/archive/2005/07/08/816.html</link><dc:creator>xlmo</dc:creator><author>xlmo</author><pubDate>Fri, 08 Jul 2005 03:33:00 GMT</pubDate><guid>http://www.cnitblog.com/xlmo/archive/2005/07/08/816.html</guid><wfw:comment>http://www.cnitblog.com/xlmo/comments/816.html</wfw:comment><comments>http://www.cnitblog.com/xlmo/archive/2005/07/08/816.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/xlmo/comments/commentRss/816.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/xlmo/services/trackbacks/816.html</trackback:ping><description><![CDATA[<STRONG>如何设置emacs的初始目录？</STRONG><BR><FONT style="BACKGROUND-COLOR: #f5f5dc">&nbsp;(setq default-directory "/workspace/")</FONT> <BR><BR><STRONG>emacs中如何改变一个emacs的变量</STRONG> <BR><FONT style="BACKGROUND-COLOR: #f5f5dc">(setq comment-multi-line nil)</FONT> <BR><BR><STRONG>怎么让emacs可以和别的程序互相复制粘贴文本？</STRONG><BR>&nbsp;看mule-gbk的安装说明，是这么一句： <BR><FONT style="BACKGROUND-COLOR: #f5f5dc">(mule-gbk-selection-setup) <BR></FONT><BR><STRONG>emacs 怎样设置行号?</STRONG> <BR><FONT style="BACKGROUND-COLOR: #f5f5dc">M-x setnu-mode</FONT> <BR><BR><STRONG>想要知道您可以使用哪些输入法</STRONG><BR>您可以键入 C-x RET C-\ SPC ， 接著 Emacs 会出现一个所有多国语文的输入法列表窗格。然后您就 可以在其中键入您所使用的输入法名称了。 设定预设的输入法，将下面这一行加入到 ~/.emacs 档案中：<BR>&nbsp;<FONT style="BACKGROUND-COLOR: #f5f5dc">(custom-set-variables '(default-input-method "chinese-array30")) <BR></FONT>这样子在启动 Emacs 后，您就可以直接以 C-\ 指令在英文输入和行列输入法之间切换了。<BR><BR><BR>
<P><STRONG>在装了w3m的情况下怎么在Emacs中运行？</STRONG><BR><BR>将下列代码加入 ~/.emacs 中, 就应该可以了.</P>
<P><FONT style="BACKGROUND-COLOR: #f5f5dc">;; w3m<BR>(require 'w3m)<BR>(setq w3m-use-mule-ucs t)<BR>(setq w3m-use-toolbar t)<BR>(setq w3m-use-cookies t)<BR>(setq w3m-display-inline-image t)<BR>(setq w3m-bookmark-file-coding-system 'chinese-iso-8bit)<BR>(setq w3m-coding-system 'chinese-iso-8bit)<BR>(setq w3m-default-coding-system 'chinese-iso-8bit)<BR>(setq w3m-file-coding-system 'chinese-iso-8bit)<BR>(setq w3m-file-name-coding-system 'chinese-iso-8bit)<BR>(setq w3m-terminal-coding-system 'chinese-iso-8bit)<BR>(setq w3m-input-coding-system 'chinese-iso-8bit)<BR>(setq w3m-output-coding-system 'chinese-iso-8bit)<BR>(setq w3m-tab-width 8)<BR>;(setq w3m-home-page "Your homepage")<BR>(setq w3m-view-this-url-new-session-in-background t)<BR>;(require 'mime-w3m)<BR>(add-hook 'w3m-fontify-after-hook 'remove-w3m-output-garbages)<BR>(defun remove-w3m-output-garbages ()<BR>(interactive)<BR>(let ((buffer-read-only))<BR>(setf (point) (point-min))<BR>(while (re-search-forward "[\200-\240]" nil t)<BR>(replace-match " "))<BR>(set-buffer-multibyte t))<BR>(set-buffer-modified-p nil))</FONT><FONT style="BACKGROUND-COLOR: #ffffff"><BR><BR><STRONG>将Emacs的备份文件放置到一个特定目录</STRONG><BR><SPAN class=postbody><FONT size=2><BR><FONT style="BACKGROUND-COLOR: #f5f5dc">(setq backup-directory-alist (quote (("." . "~/.backups"))))<BR><BR><BR><FONT style="BACKGROUND-COLOR: #ffffff"><STRONG><FONT size=3>不产生备份文件</FONT></STRONG><BR><BR><FONT style="BACKGROUND-COLOR: #f5f5dc">(setq make-backup-files nil)</FONT><BR><BR><SPAN class=postbody><STRONG>一般我的emacs启动后都是去/usr/share/emacs/site-lisp下面找扩展程序 <BR>请问这个目录是否可以指定？ <BR></STRONG><BR>在.emacs最前头加一条<BR><BR><FONT style="BACKGROUND-COLOR: #f5f5dc">(setq load-path (cons "/home/bleem1998/.emacs-site-lisp/" load-path))</FONT> <BR><BR>然后把所有的扩展包都丢去<BR>"/home/bleem1998/.emacs-site-lisp/"<BR>就可以了 <BR></SPAN><SPAN class=postbody><BR><SPAN class=postbody><STRONG>如何设置Emacs的背景颜色？</STRONG><BR><FONT style="BACKGROUND-COLOR: #f5f5dc">&nbsp;M-x set-background-color</FONT> <BR>可以写到 .emacs里打开emacs就设置： <BR><BR><FONT style="BACKGROUND-COLOR: #f5f5dc">(set-face-background 'default "azure")</FONT> </SPAN><BR></SPAN><BR><BR><STRONG>Emacs 查看C库函数说明？<BR><BR></STRONG></P>
<DIV>你可以在 ~/.<SPAN class=highlight><FONT color=#ff0000>emacs</FONT></SPAN> 加入：<BR><FONT style="BACKGROUND-COLOR: #f5f5dc">(global-sey-key '[f3] 'man)</FONT><BR>这样就可以按下 f3 得到man了<BR><BR>或者查看 libc <BR>C-h i m libc [Enter]</DIV>
<P><BR></FONT><BR></FONT></FONT></SPAN><BR></FONT><FONT style="BACKGROUND-COLOR: #f5f5dc"><BR></FONT><FONT style="BACKGROUND-COLOR: #f5f5dc"><BR></P></FONT><img src ="http://www.cnitblog.com/xlmo/aggbug/816.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/xlmo/" target="_blank">xlmo</a> 2005-07-08 11:33 <a href="http://www.cnitblog.com/xlmo/archive/2005/07/08/816.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>A major mode to play mp3</title><link>http://www.cnitblog.com/xlmo/archive/2005/07/08/815.html</link><dc:creator>xlmo</dc:creator><author>xlmo</author><pubDate>Fri, 08 Jul 2005 03:26:00 GMT</pubDate><guid>http://www.cnitblog.com/xlmo/archive/2005/07/08/815.html</guid><wfw:comment>http://www.cnitblog.com/xlmo/comments/815.html</wfw:comment><comments>http://www.cnitblog.com/xlmo/archive/2005/07/08/815.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/xlmo/comments/commentRss/815.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/xlmo/services/trackbacks/815.html</trackback:ping><description><![CDATA[<H1>&nbsp; A major mode to play mp3s under emacs</H1>
<P>I am an intensive emacs user and I hate fancy GUIs à la xmms. Hence, I wrote this major mode front-end to <A class=external href="http://mpg321.sourceforge.net/"><FONT color=#000080>mpg321.</FONT></A> You can get the source here: <A href="http://diwww.epfl.ch/~fleuret/files/mp3play.el"><FONT color=#000080><CODE>mp3play.el</CODE>.</FONT></A> It displays your list of mp3 in a buffer and allows you to control mpg321 and organise sequences of mp3 to play. You can check this <A href="http://diwww.epfl.ch/~fleuret/pics/ss-mp3play.png"><FONT color=#000080>impressive screenshot.</FONT></A> Note that to control the gain, mp3play can either use <A class=external href="http://www.jpj.net/~trevor/aumix.html"><FONT color=#000080>aumix,</FONT></A> or directly control the gain of mpg321 if you use the <A href="http://diwww.epfl.ch/~fleuret/softs.html#patch-mpg321"><FONT color=#000080>patch below.</FONT></A></P>
<P>I have the following in my <CODE>.emacs</CODE></P>
<DIV class=code><FONT style="BACKGROUND-COLOR: #f5f5dc">(setq mp3play-dirlist '("~/mp3")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;; I want to see the remaining time<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mp3play-show-timing 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;; This because I use a patched mpg321 to control the gain<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mp3play-use-remote-gain t<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;; Initially, set the gain to 50%<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mp3play-initial-gain 50<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;; Where to store the info about the song playing to resume later<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mp3play-resume-file "~/.mp3play-resume")<BR><BR>(load "mp3play")<BR><BR>;; M-\ go to the mp3play buffer<BR>(define-key global-map [(meta \\)] 'mp3play)<BR>;; C-x C-m C-s stops the current mp3<BR>(define-key global-map [(control x) (control m) (control s)] 'mp3play-stop)<BR>;; C-x C-m C-p pauses it<BR>(define-key global-map [(control x) (control m) (control p)] 'mp3play-pause)<BR>;; C-x C-m C-i shows mp3 informations<BR>(define-key global-map [(control x) (control m) (control i)] &nbsp;&nbsp;'mp3play-show-current-information)<BR></FONT><BR>这个太cool了！<BR>下载链接<A href="http://diwww.epfl.ch/~fleuret/files/mp3play.el"><FONT color=#000080>http://diwww.epfl.ch/~fleuret/files/mp3play.el</FONT></A></DIV><img src ="http://www.cnitblog.com/xlmo/aggbug/815.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/xlmo/" target="_blank">xlmo</a> 2005-07-08 11:26 <a href="http://www.cnitblog.com/xlmo/archive/2005/07/08/815.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>