Differences between revisions 6 and 7
Revision 6 as of 2006-01-17 06:40:02
Size: 2777
Editor: hoxide
Comment: 添加maxima-mode
Revision 7 as of 2006-01-17 07:32:51
Size: 2866
Editor: helium
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
   * 现在python-mode已经包含在emacs里了,至少cvs-emacs是这样。 --helium

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

-- 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已经包含在emacs里了,至少cvs-emacs是这样。 --helium

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

Maxima Mode

  • 把Maxima嵌入到Emacs中 复制Maxima安装目录里emacs下的所有文件到Emacs的搜索路径中, 我是直接复制到 F:\emacs\site-lisp\maxima 下 添加以下内容到.emacs中

;;Maxima in Emacs
(load "f:/emacs/site-lisp/maxima/maxima.el")
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'maxima "maxima" "Maxima interaction" t)
(autoload 'maxima-minibuffer "maxima" "Maxima in a minibuffer" t)
(setq auto-mode-alist (cons '("\\.max" . maxima-mode) auto-mode-alist))
  • 由此可以是用maxima-mode了, 包括编辑.max的高亮, 和maxima的解释器. 再配合LaTeX-mode就完美了.

XEmacs

  • Xemacs的配置问题, 待补

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