免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1207 | 回复: 0
打印 上一主题 下一主题

.emacs [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-21 12:52 |只看该作者 |倒序浏览

               
               
                ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;Name:     .Emacs
;;
;;Subject:   My .Emacs configuraton file
;;
;;Date:     08 13 2005
;;
;;Email:     hailongchang@hotmail.com
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;显示中文
(set-language-environment 'Chinese-GB)
(set-buffer-file-coding-system 'cn-gb-2312)
(set-keyboard-coding-system 'cn-gb-2312)
(set-terminal-coding-system 'cn-gb-2312)
(setq-default enable-multibyte-characters t)
(prefer-coding-system 'cn-gb-2312)
(set-selection-coding-system 'cn-gb-2312)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;与X程序之间进行拷贝
(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;进行语法加亮显示
(global-font-lock-mode t)
;;用来显示行号
(setq line-number-mode t)
;;显示列号
(setq column-number-mode t)
;;无论在什么样的主模式下都打开auto-fill模式  
(setq-default auto-fill-function 'do-auto-fill)
;;设置Emacs的前景色和背景色
(setq default-frame-alist
'(
  (foreground-color . "Wheat")
  (background-color . "DarkSlateGray")
  (cursor-color   . "green1")
  )              ls
  
)
;;设置自动显示图片
(auto-image-file-mode)  
;;设置标题栏
(setq frame-title-format "%b - GNU emacs for Princeton University")
;;括号匹配时显示另外一边的括号
(show-paren-mode t)
(setq show-paren-style 'parentheses)
;;跳到某一行绑定到 C-x i
(global-set-key "\C-xi"     'goto-line)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/33029/showart_344117.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP