;; no emacs start-up message
(setq inhibit-startup-message t)
(setq-default ispell-program-name "aspell")
(setq-default ispell-local-dictionary "english")
(global-set-key (kbd "") 'ispell-complete-word)
;; fontification font-lock.el much better than the default hilit19.el
;***************************** (for coloring)
;;automatic Font Lock mode in TeX mode
;(add-hook 'tex-mode-hook 'turn-on-font-lock)
;;if Font Lock necessary for other than .tex files, uncomment following
(global-font-lock-mode t)
;; load default lisp file (.el) for improved LaTeX mode
;; all settings are located in tex-site, hence
;**************************************************************
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(add-to-list 'load-path "d:/software/emacs/site-lisp/auctex/")
(load "tex-site")
(require 'tex-mik)
;; Initialize CEDET.
(load-file (expand-file-name "D:/software/emacs/site-lisp/cedet/common/cedet.el"))
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
;; (setq defer-loading-jde t)
;;
(add-to-list 'load-path (expand-file-name "D:/software/emacs/site-lisp/jde/lisp"))
(add-to-list 'load-path (expand-file-name "D:/software/emacs/site-lisp/cedet/semantic"))
(add-to-list 'load-path (expand-file-name "D:/software/emacs/site-lisp/cedet/speedbar"))
(add-to-list 'load-path (expand-file-name "D:/software/emacs/site-lisp/elib"))
(add-to-list 'load-path (expand-file-name "D:/software/emacs/site-lisp/cedet/eieio"))
(add-to-list 'load-path (expand-file-name "D:/software/emacs/site-lisp/cedet/common"))
;; Initialize CEDET.
(load-file (expand-file-name "D:/software/emacs/site-lisp/cedet/common/cedet.el"))
;; If you want Emacs to defer loading the JDE until you open a
;; Java file, edit the following line
(setq defer-loading-jde nil)
;; to read:
;;
;; (setq defer-loading-jde t)
;;
(if defer-loading-jde
(progn
(autoload 'jde-mode "jde" "JDE mode." t)
(setq auto-mode-alist
(append
'(("\.java\'" . jde-mode))
auto-mode-alist)))
(require 'jde))
;; Sets the basic indentation for Java source files
;; to two spaces.
(defun my-jde-mode-hook ()
(setq c-basic-offset 2))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(jde-compiler (quote ("javac" "")))
'(jde-jdk-registry (quote (("1.5.0" . "C:/Program Files/Java/jdk1.6.0/"))))
'(language-info-custom-alist nil)
'(preview-image-type (quote dvipng))
'(safe-local-variable-values (quote ((TeX-master . t)))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
没有评论:
发表评论