- 论坛徽章:
- 0
|
本帖最后由 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!)")))
|
|