免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1468 | 回复: 1
打印 上一主题 下一主题

安了cedet-1.0pre3的,小弟需要你们的.emacs!!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-05 22:08 |只看该作者 |倒序浏览
如题

论坛徽章:
0
2 [报告]
发表于 2006-03-05 23:16 |只看该作者
原帖由 nick811125 于 2006-3-5 22:08 发表
如题


这是我的。emacs文件:

  1. (custom-set-variables
  2.   ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  3.   ;; Your init file should contain only one such instance.
  4. '(auto-insert-mode t nil (autoinsert))
  5. '(auto-show-mode t t)
  6. '(c++-mode-hook nil)
  7. '(c-indent-comments-syntactically-p t)
  8. '(c-tab-always-indent t)
  9. '(case-fold-search t)
  10. '(column-number-mode t)
  11. '(cpp-known-writable t)
  12. '(current-language-environment "Chinese-GB")
  13. '(default-input-method "chinese-wbx-gb")
  14. '(dired-recursive-copies t)
  15. '(dired-recursive-deletes t)
  16. '(facemenu-add-face-function nil)
  17. '(facemenu-keybindings (quote ((default . "d") (bold . "b") (italic . "i") (bold-italic . "l") (underline . "u"))))
  18. '(facemenu-new-faces-at-end t)
  19. '(facemenu-unlisted-faces (quote (modeline region secondary-selection highlight scratch-face "^font-lock-" "^gnus-" "^message-" "^ediff-" "^term-" "^vc-" "^widget-" "^custom-" "^vm-")))
  20. '(global-font-lock-mode t nil (font-lock))
  21. '(global-hl-line-mode t nil (hl-line))
  22. '(hl-line-face (quote highlight))
  23. '(html-mode-hook (quote (html-autoview-mode)))
  24. '(java-mode-hook nil)
  25. '(mark-holidays-in-calendar t t)
  26. '(nxml-attribute-indent 8)
  27. '(nxml-auto-insert-xml-declaration-flag t)
  28. '(nxml-child-indent 4)
  29. '(nxml-outline-child-indent 4)
  30. '(nxml-prefer-utf-16-to-utf-8-flag nil)
  31. '(nxml-sexp-element-flag t)
  32. '(nxml-slash-auto-complete-flag t)
  33. '(php-mode-force-pear t)
  34. '(php-mode-speedbar-open nil)
  35. '(php-speedbar-config nil)
  36. '(sgml-mode-hook nil)
  37. '(sgml-name-8bit-mode t)
  38. '(sgml-slash-distance 2000)
  39. '(show-paren-mode t nil (paren))
  40. '(standard-indent 8)
  41. '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify)))
  42. '(transient-mark-mode t))
  43. (custom-set-faces
  44.   ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  45.   ;; Your init file should contain only one such instance.
  46. '(default ((t (:stipple nil :background "white" :foreground "black" :inverse-video nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98 :width normal :family "outline-courier new"))))
  47. '(highlight ((((class color) (background light)) (:background "lightgreen" :foreground "black" :underline t))))
  48. '(nxml-heading-face ((t (:background "lightgreen" :foreground "blue" :weight bold :height unspecified))))
  49. '(rng-error-face ((t (:underline "red")))))
  50. ;;the setnu.el used in the source code viewing the lines
  51. (require 'setnu)
  52. (setnu-mode t)
  53. (setq appt-issue-message t)
  54. (setq display-time-24hr-format t)
  55. (setq display-time-day-and-date t)
  56. (display-time)

  57. ;;the xref tools can be use viewing and compile editing the java source code forlearning the source code
  58. (setq exec-path (cons "d:/apptools/xref" exec-path))
  59. (setq load-path (cons "d:/apptools/xref/emacs" load-path))
  60. (load "xrefactory")

  61. ;;erc-pcomlete mode
  62. (add-hook 'erc-mode-hook
  63.               '(lambda ()
  64.                (require 'erc-pcomplete)
  65.                   (pcomplete-erc-setup)
  66.                  (erc-completion-mode 1)))
  67. (put 'downcase-region 'disabled nil)

  68. ;;php-mode use
  69. (require 'php-mode)
  70. (add-hook 'php-mode-user-hook 'turn-on-font-lock)
  71. (add-hook 'php-mode-user-hook
  72.           '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))


  73. ;; emacs all.el use
  74. (autoload 'all "all" nil t)

  75. ;; emacs flyspell-1.7e.el use
  76. (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checking" t)
  77. (autoload 'global-flyspell-mode "flyspell" "On-the-fly spelling" t)

  78. ;; emacs template use
  79. (setq load-path (cons (expand-file-name "d:/apptools/emacs-21.3/site-lisp")
  80.                       load-path))
  81. (require 'template)
  82. (template-initialize)

  83. ;; emacs wb-line-number.el use:
  84. (set-scroll-bar-mode nil)   ; no scroll bar, even in x-window system
  85. (require 'wb-line-number)

  86. ;; emacs gnuserv.el usage:
  87. (require 'gnuserv)
  88. (gnuserv-start)

  89. ;; emacs psgml setup
  90. (setq load-path (append (list nil "d:/apptools/emacs-21.3/site-lisp/psgml-1.2.5") load-path))
  91. ;; use PSGML for sgml and xml major modes.
  92. (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
  93. (autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

  94. ;; emacs nxml-mode use:
  95. (load "d:/apptools/emacs-21.3/site-lisp/nxml-mode-20041004/rng-auto.el") ;; get things automatically loaded each time when starting emacs
  96. ;; with an extension of xml, xsl, rng or xhtml in all nxml-mode files in automatically uses:
  97. (setq auto-mode-alist
  98.         (cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode)
  99.               auto-mode-alist))

  100. ;; emacs html-helper-mode use:
  101. (setq load-path (cons "d:/apptools/emacs-21.3/site-lisp/html-helper-mode.el " load-path))
  102. (autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
  103. (setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist))
  104. (setq auto-mode-alist (cons '("\\.phtml$" . html-helper-mode) auto-mode-alist))

  105. ;; emacs session use:
  106. (require 'session)
  107. (add-hook 'after-init-hook 'session-initialize)

  108. ;; emacs ispell use:
  109. (setq-default ispell-program-name "aspell")
  110.     (setq-default ispell-local-dictionary "american")
  111.     (global-set-key (kbd "") 'ispell-complete-word)

  112. ;; emacs python-mode use:
  113. (setq auto-mode-alist (cons '("\\.py$" . python-mode) auto-mode-alist))
  114. (setq interpreter-mode-alist (cons '("python" . python-mode)
  115.                                    interpreter-mode-alist))
  116. (autoload 'python-mode "python-mode" "Python editing mode." t)

  117. ;; emads pymacs used in Win32:
  118. (autoload ' pymacs-load "pymacs" nil t)
  119. (autoload ' pymacs-eval "pymacs" nil t)
  120. (autoload ' pymacs-apply "pymacs")
  121. ;;(autoload ' pymacs-call "pymacs")
  122. (eval-after-load "pymacs"
  123. ' (add-to-list ' pymacs-load-path "d:/apptools/emacs-21.3/site-lisp/Pymacs-0.22"))

  124. ;; emacs generic mode use:
  125. (require ' generic)
  126. (require ' generic-x)

  127. ;; emacs dired-signle mode use:
  128. (require 'dired-single)


复制代码

还有关于CEDET的使用说明。

  1. CEDET: Collection of Emacs Development Enviromnent Tools

  2. CEDET is a top-level project containing several individual package for Emacs,
  3. includeing:

  4.    EIEIO - CLOS layer for Emacs Lisp
  5.    Semantic - Parser Infrastructure for Emacs
  6.    Speedbar - Everything browser
  7.    EDE - File manager/ Makefile generator
  8.    COGRE - Connected Graph Editor

  9. You can install all these packagees at once with the CEDET build and
  10. install scripts:

  11. 1) Copy source files somewhere.

  12. 2) Byte compile

  13.    a) make

  14.    -OR-

  15.    b) make EMACS=<your favorite emacs>

  16.   You might also have trouble with makeinfo.  If you need to upgrade
  17.   makeinfo, you can do this:

  18.   c) make MAKEINFO=/usr/local/bin/makeinfo

  19.   Note: For speedbar, you may also need to byte-compile the version
  20.   of INFO and RMAIL that come with your version of emacs.

  21.   d) make MAKEINFO=echo

  22.   To skip making the doc.

  23. 2.1) Build Issues

  24.   If running MAKE fails due to other issues such as bad load def
  25.   files, custom-autoload, incomprehensible run time errors during a byte
  26.   compilation, try these steps, then go back to step 2.

  27.   a) make clean-autoloads
  28.   b) make clean-all

  29. 3) Install load hooks into your .emacs file.

  30. -----------
  31. ;; Load CEDET
  32. (load-file "~/cedet-VERSION/common/cedet.el")

  33. ;; Enabling various SEMANTIC minor modes.  See semantic/INSTALL for more ideas.
  34. ;; Select one of the following
  35. (semantic-load-enable-code-helpers)
  36. ;; (semantic-load-enable-guady-code-helpers)
  37. ;; (semantic-load-enable-excessive-code-helpers)

  38. ;; Enable this if you develop in semantic, or develop grammars
  39. ;; (semantic-load-enable-semantic-debugging-helpers)
  40. -----------

  41.   Some items in the contrib directory may need additional study or
  42.   installation.  Read contrib/INSTALL for specifics on those extra
  43.   packages.

  44. 4) Configuration:

  45. You can configure how the individual packages load in the above example
  46. by adding settings in the comment section.  Please read individual
  47. INSTALL files for each package for details on configuring them.
  48. See the texinfo manuals for details on more specific configurations.

  49. 5) To send bug reports, or participate in discussions on these
  50.    packages, choose a mailing list:

  51.    For Semantic use the mailing list cedet-semantic@sourceforge.net
  52.    via the URL:

  53.    http://lists.sourceforge.net/lists/listinfo/cedet-semantic

  54.    For EIEIO use the mailing list cedet-eieio@sourceforge.net
  55.    via the URL:

  56.    http://lists.sourceforge.net/lists/listinfo/cedet-eieio

  57.    For general discussions on development of these tools, use the
  58.    mailing list cedet-devel@sourceforge.net via the URL:

  59.    http://lists.sourceforge.net/lists/listinfo/cedet-devel


复制代码

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP