当前位置: 技术问答>linux和unix
关于编辑器emacs配置
来源: 互联网 发布时间:2017-03-06
本文导语: 最近配置emacs,在自己的目录下面.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. ;; Y...
最近配置emacs,在自己的目录下面.emacs写一些自己定制的配置,但是emacs一点反应都没有!
这是我的配置单,我相关.el文件应经放到/usr/share/emacs/site-lisp/目录中了。
我的emacs版本是23.2.1。我不知到我的emacs默认load-path在哪里!大家帮个忙!谢谢啊
(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.
)
(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.
)
;;(setq user-full-name"WHB")
;;;; CC-mode配置 http://cc-mode.sourceforge.net/
(load-file"/usr/share/emacs/site-lisp/session.el")
(require'session)
(add-hook'after-init-hook'session-initialize)
(require'english-menu)
(require'chinese-menu)
(require'mule-menu)
(set-background-color "black")
(set-foreground-color "white")
(set-face-foreground 'region' "green")
(set-face-backgroud 'region' "blue")
这是我的配置单,我相关.el文件应经放到/usr/share/emacs/site-lisp/目录中了。
我的emacs版本是23.2.1。我不知到我的emacs默认load-path在哪里!大家帮个忙!谢谢啊
|
很久以前搞过emacs的配置,后来搞成个模板,直接拿来用了,所以对其中的细节一时记不得,下面是当初搞emacs时写的文章,给楼主参考一下:
http://www.latelee.org/embedded-linux/64-learning-elinux-4-my-emacs-i.html
http://www.latelee.org/embedded-linux/65-learning-elinux-4-my-emacs-ii.html
http://www.latelee.org/embedded-linux/64-learning-elinux-4-my-emacs-i.html
http://www.latelee.org/embedded-linux/65-learning-elinux-4-my-emacs-ii.html
|
一般放到文件~/.emacs当中。
|
是啊,我的也是放到~/.meacs里面.
如果家目录没有这个文件就自己写一个就行了.
如果家目录没有这个文件就自己写一个就行了.