Differences between revisions 4 and 5
Revision 4 as of 2005-01-19 17:18:03
Size: 1964
Editor: EddyXu
Comment:
Revision 5 as of 2005-07-31 16:40:03
Size: 2121
Editor: HackGou
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
~/目录在windows下是%HOME%变量来控制的,设置一个这个系统或者用户变量比如(%HOME%=E:\My Documents),Emacs就能够就能够用了

含有章节索引的中文 文章模板

-- hoxide [DateTime(2004-08-15T04:57:08Z)] TableOfContents

emacs配置问题集

简述

windows下~/在什么地方

  • 默认在c:/,也就是说.emacs应该放在c:/.emacs,至于是否有环境变量可以设置~/的位置,暂时还不清楚.
  • 在系统环境PATH中设置相应的目录也是可以的。 --EddyXu

~/目录在windows下是%HOME%变量来控制的,设置一个这个系统或者用户变量比如(%HOME%=E:\My Documents),Emacs就能够就能够用了

python-mode

  • 很遗憾emacs默认不包含python-mode.这可能和目前python-mode还不稳定有关,我在使用时就发现了一些小问题,但瑕不掩瑜python-mode是很好的东西.

python-mode的安装

  • 下载python-mode.el,鉴于用google搜所也要定时间我直接把代码贴到["python-mode.el"],拷贝粘帖就可以了. 把下载的python-mode.el放在任何一个你喜欢的地方,我选择d:/emacs/site-lisp, 然后把

 (load "d:/emacs/site-lisp/python-mode.el")
 (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))

粘帖到.emacs文件的最后. 另外为了让emacs可以自动高亮显示,也要设置一下,可以用options菜单下的选项,然后save有关的设置就自动保存在.emacs里了,我就是这样的. 或者吧下面的代码贴到.emacs

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(case-fold-search t)
 '(current-language-environment "Chinese-GB")
 '(default-input-method "chinese-py-punct")
 '(global-font-lock-mode t nil (font-lock))
 '(show-paren-mode t nil (paren))
 '(transient-mark-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )

经过上面的设置emacs自动将.py的文件设置到python-mode,如果想手动进入python模式,按M-x python-mode

XEmacs

  • Xemacs的配置问题, 待补

EmacsConfig (last edited 2009-12-25 07:16:15 by localhost)