分页: 1 / 1

关于emacs的小问题

发表于 : 2007-07-17 19:21
w_crow
个人简介:新手,学习需要学习emacs

在ubuntu下面装了emacs21,初来乍到,问题不少,先问两个简单的:
1。emacs默认背景是白色,怎么改成黑色?
2。上面的问题和.emacs文件有关的话,请问那个文件在哪儿?如果自己创建应该放在那个目录下?

发表于 : 2007-07-17 19:32
suncanoe
.emacs文件在用户主目录下面,没有的话可以自己创建。
下面的是我的.emacs文件你参考一下

代码: 全选

(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.
 '(nil nil 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.
 '(default ((t (:stipple nil :background "black" :foreground "grey85" :inverse-video     nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight      normal :height 180 :width normal :family "adobe-courier"))))
 '(bold ((t (:foreground "deep sky blue" :weight bold))))
 '(bold-italic ((t (:foreground "blue violet" :slant italic :weight bold))))
 '(border ((t (:background "black"))))
 '(cursor ((t (:background "red" :foreground "red"))))
 '(custom-set-face ((((class color)) (:inherit default :foreground "blue"))) t)
 '(font-lock-builtin-face ((((class color) (background light)) (:foreground "Orchid" :   weight bold))))
 '(font-lock-comment-face ((t (:background unspecified :foreground "Firebrick"))))
 '(font-lock-constant-face ((((class color) (background light)) (:foreground             "CadetBlue4" :weight bold))))
 '(font-lock-function-name-face ((t (:foreground "LightSkyBlue" :weight bold))))
 '(font-lock-keyword-face ((t (:foreground "Cyan" :weight bold))))
 '(font-lock-string-face ((((class color) (background light)) (:foreground               "DarkGreen"))))
 '(font-lock-type-face ((((class color) (background light)) (:foreground "ForestGreen" : weight bold))))
 '(highlight ((t (:background "grey20"))))
 '(html-tag-face ((t (:foreground "deep sky blue" :weight bold))))
 '(isearch ((((class color) (background light)) (:background "LightCyan"))))
 '(menu ((((type x-toolkit)) nil)))
 '(mode-line ((t (:inherit default :background "grey50" :foreground "black" :height 0.   8))))
 '(mode-line-inactive ((t (:inherit mode-line :height 0.8))))
 '(mouse ((t nil)))
 '(tool-bar ((((type x w32 mac) (class color)) (:inherit default))))
 '(tooltip ((((class color)) (:inherit default)))))