|
|
发表于 2009-7-23 06:05:42
|
显示全部楼层
Post by 杨珂;2008596
- (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.
- '(column-number-mode t)
- '(indicate-empty-lines t)
- '(inhibit-startup-screen 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.
- )
- (put 'upcase-region 'disabled nil)
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;; All backup files move to a backup directory
- ;;
- (setq backup-directory-alist (quote (("." . "~/.emacs_backups"))))
- (setq version-control t)
- (setq kept-old-versions 2)
- (setq kept-new-versions 5)
- (setq delete-old-versions t)
- (setq backup-directory-alist '(("." . "~/.emacs_backups")))
- (setq backup-by-copying t)
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;; cperl-mode is preferred to perl-mode ;;; "Brevity is the soul of wit" <foo at acm.org>
- (defalias 'perl-mode 'cperl-mode)
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;; swi-prolog mode
- (autoload 'run-prolog "prolog" "Start a Prolog sub-process." t)
- (autoload 'prolog-mode "prolog" "Major mode for editing Prolog programs." t)
- (autoload 'mercury-mode "prolog" "Major mode for editing Mercury programs." t)
- (setq prolog-system 'swi)
- (setq auto-mode-alist (append '(("\\.pl$" . prolog-mode)
- ("\\.m$" . mercury-mode))
- auto-mode-alist))
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;; Standard ML - .ml as postfix
- (setq auto-mode-alist (append '(("\\.ml$" . sml-mode))
- auto-mode-alist))
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
复制代码
我的.emacs只有一些语言配置为了区分prolog和perl的.pl文件啊什么的
为了使用auto-complete
http://www.emacswiki.org/emacs/AutoComplete
我加了下面两句
就是加上后才有这个提示
(require 'auto-complete)
(global-auto-complete-mode t)
字体只是警告,错误是auto-complete ,它所在的目录是否加入了,还有就是重新下载auto-complete |
|