- 论坛徽章:
- 0
|
我想把上述两个软件整合 然后在Windoze下编写LINUX下的程序 然后上网查了很多资料 无论是官方的还是网友们的 可是为何就是老出错误呢
这是错误提示
An error has occurred while loading `d:/Fairy/.emacs':
Symbol's value as variable is void: <!DOCTYPE
这是我的.emacs
(setenv "PATH" (concat "D:/cygwin/bin;" (getenv "PATH")))
(setq exec-path (cons "D:/cygwin/bin/" exec-path))
(require 'cygwin-mount)
(cygwin-mount-activate)
(add-hook 'comint-output-filter-functions
'shell-strip-ctrl-m nil t)
(add-hook 'comint-output-filter-functions
'comint-watch-for-password-prompt nil t)
(setq explicit-shell-file-name "bash.exe")
;; For subprocesses invoked via the shell
;; (e.g., "shell -c command")
(setq shell-file-name explicit-shell-file-name)
(add-hook 'shell-mode-hook 'n-shell-mode-hook)
(defun n-shell-mode-hook ()
"12Jan2002 - sailor, shell mode customizations."
(local-set-key '[up] 'comint-previous-input)
(local-set-key '[down] 'comint-next-input)
(local-set-key '[(shift tab)] 'comint-next-matching-input-from-input)
(setq comint-input-sender 'n-shell-simple-send)
)
(defun n-shell-simple-send (proc command)
"17Jan02 - sailor. Various commands pre-processing before sending to
shell."
(cond
;; Checking for clear command and execute it.
((string-match "^[ \t]*clear[ \t]*$" command)
(comint-send-string proc "\n")
(erase-buffer)
)
;; Checking for man command and execute it.
((string-match "^[ \t]*man[ \t]*" command)
(comint-send-string proc "\n")
(setq command (replace-regexp-in-string "^[ \t]*man[ \t]*" ""
command))
(setq command (replace-regexp-in-string "[ \t]+$" "" command))
;;(message (format "command %s command" command))
(funcall 'man command)
)
;; Send other commands to the default handler.
(t (comint-simple-send proc command))
)
)
(require 'cedet)
(require 'ecb)
(setq semantic-idle-scheduler-idle-time 432000)
(global-set-key [f12] 'ecb-activate) ;;定义F12键为激活ecb
(global-set-key [C-f12] 'ecb-deactivate) ;;定义Ctrl+F12为停止ecb
(setq visible-bell t)
(setq inhibit-startup-message t)
(set-face-background 'default "LightYellow1")
(setq column-number-mode t)
(setq kill-ring-max 200)
(setq frame-title-format "emacs@%b")
(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.
'(ecb-gzip-setup (quote cons))
'(ecb-options-version "2.32")
'(ecb-tar-setup (quote cons))
'(ecb-wget-setup (quote cons)))
(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.
) |
|