关于编辑器emacs配置

wanghb1989 2012-07-17 10:35:38
最近配置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.
;; 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在哪里!大家帮个忙!谢谢啊
...全文
157 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanghb1989 2012-07-28
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 的回复:]

一般放到文件~/.emacs当中。
[/Quote]
.el文件需要编译吗?直接把配置目录写进.emacs就行了吗?
Joe112231 2012-07-26
  • 打赏
  • 举报
回复
是啊,我的也是放到~/.meacs里面.
如果家目录没有这个文件就自己写一个就行了.
Linux-Torvalds 2012-07-26
  • 打赏
  • 举报
回复
一般放到文件~/.emacs当中。
wanghb1989 2012-07-18
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

很久以前搞过emacs的配置,后来搞成个模板,直接拿来用了,所以对其中的细节一时记不得,下面是当初搞emacs时写的文章,给楼主参考一下:
http://www.latelee.org/embedded-linux/64-learning-elinux-4-my-emacs-i.html
http://www.latelee.org/embedded-linux/65-learning-el……
[/Quote]
我查过很多资料了,但是按照别人的做法,自己的emacs就是没有什么变化!不知到哪里出错了
李迟 2012-07-18
  • 打赏
  • 举报
回复
很久以前搞过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
wanghb1989 2012-07-17
  • 打赏
  • 举报
回复
知情人,能给点提示吗?

2,161

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧