免费注册 查看新帖 |

Chinaunix

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

[其他] emacs加入一句配置后M-x eval-buffer有效果,重启后反而没效果 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-18 18:19 |只看该作者 |倒序浏览
本帖最后由 cheng_bingyuan 于 2013-06-18 18:21 编辑

我在.emacs中加入下面的一句配置后执行M-x eval-buffer后有效果,会在标题栏中显示路径,但重启emacs后就没有效果了,不知道怎么回事?

(setq frame-title-format "yoursaf@-->%f");在标题栏显示文件完整路径


我的整个.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.
'(text-mode-hook (quote (text-mode-hook-identify))))
(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.
)
;;ABING inition
(setq frame-title-format "yoursaf@-->%f");在标题栏显示文件完整路径   !!!!!就是加入的这句配置

(tool-bar-mode nil)
(menu-bar-mode nil)
(setq inhibit-startup-screen t)
(setq initial-frame-alist '((top . 0) (left . 0) (width . 175) (height . 70)))
;;LOAD_PATH
(add-to-list'load-path "~/Documents/emacs/myconfig/my-site-start.d/")
;;Color-theme
(require'color-theme)

(color-theme-bharadwaj-slate)        
;;(color-theme-dark-laptop)
;;(color-theme-pok-wob)

;;Linum
(require 'linum)
(global-linum-mode 1)

;;Xcscope
(require 'xcscope)
;;Emacs-w3m
;;(require 'w3m-load)
;;(setq w3m-home-page "http://www.google.com.hk")
;;(setq w3m-default-display-inline-images  t)

;;Org-mode
(add-to-list 'auto-mode-alist '("\\.org\\'". org-mode))
(add-hook 'org-mode-hook 'turn-on-font-lock);not needed when global-font-lock-mode is on
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswithcb)

;;Auto-complete
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
;(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
(add-to-list 'ac-dictionary-directories "~/.emacs.d/dict")
(ac-config-default)

;;copy to extern program
(setq x-select-enable-clipboard t)
;(global-set-key "\C-c\C-c" 'clipboard-kill-ring-save)
;(global-set-key "\C-c\C-v" 'clipboard-yank)

;;enable ibuffer
(global-set-key (kbd "C-x C-b") 'ibuffer)

;;goto-line
(global-set-key (kbd "<f2>") 'goto-line)

;; org-mode
(setq org-todo-keywords
      '((sequence "TODO" "DOING" "HANGUP" "|" "DONE" "CANCEL")))
(setq org-todo-keywords
      '((sequence "TODO(t)" "DOING(i!)" "HANGUP(h!)" "|" "DONE(d!)" "CANCEL(c!)")))

论坛徽章:
0
2 [报告]
发表于 2013-07-05 14:00 |只看该作者
还是用vi更好点

论坛徽章:
12
辰龙
日期:2013-10-23 11:06:312015年迎新春徽章
日期:2015-03-04 09:50:28拜羊年徽章
日期:2015-03-03 16:15:43戌狗
日期:2014-12-22 14:49:17申猴
日期:2014-05-14 17:25:17狮子座
日期:2014-04-26 18:50:20双子座
日期:2014-04-04 12:32:31巨蟹座
日期:2014-03-13 00:04:36技术图书徽章
日期:2014-03-12 17:50:42白羊座
日期:2014-02-28 23:46:54丑牛
日期:2013-11-15 05:36:11CU十四周年纪念徽章
日期:2016-01-18 04:54:01
3 [报告]
发表于 2014-11-19 21:26 |只看该作者
357749340 发表于 2013-07-05 14:00
还是用vi更好点


vi和emacs各自不同哇
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP