我的emacs配置:.emacs
2015-10-03 15:23
239 查看
(tool-bar-mode 0)
(menu-bar-mode 0)
(blink-cursor-mode 0)
;;(set-scroll-bar-mode nil)
;;(global-linum-mode 0)
(set-default-font "16")
;;(fringe-mode 1)
;;-----color setting---------
;; (set-background-color "#000")
;; (set-foreground-color "white")
;; (set-face-foreground 'highlight "green")
;; (set-face-background 'highlight "blue")
;; (set-face-background 'region "red")
;; (set-face-foreground 'region "yellow")
;; (setq global-font-lock-mode t)
(setq frame-title-format "@%b")
;;在标题栏显示buffer的名字,而不是 emacs@wangyin.com 这样没用的提示。
;;启动设置
(setq default-frame-alist
'(
(top . 100)
(left . 380)
;(width . 90)
;(height . 30)
(tool-bar-lines . 0)
(menu-bar-lines . 0)))
(setq inhibit-startup-message t)
;;关闭emacs启动时的画面
(setq make-backup-files nil)
;; 设定不产生备份文件
;;(setq auto-save-mode nil)
;;自动保存模式
(setq-default make-backup-files nil)
;; 不生成临时文件
(setq speedbar-show-unknown-files t)
;;可以显示所有目录以及文件
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(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.
)
;; add php-mode
(add-to-list 'load-path "/usr/share/emacs/site-lisp")
(require 'php-mode)
(add-to-list 'auto-mode-alist '("\\.php[34]?\\'\\|\\.phtml\\'" . php-mode))
;; add emmet-mode
(add-to-list 'load-path "/usr/share/emacs/site-lisp")
(require 'emmet-mode)
(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
(add-hook 'html-mode-hook 'emmet-mode) ;; Auto-start on html
(add-hook 'css-mode-hook 'emmet-mode) ;; enable Emmet's css abbreviation.
;; set auto indent
(global-set-key (kbd "RET") 'newline-and-indent)
(fset 'yes-or-no-p 'y-or-n-p)
;; 改变 Emacs 固执的要你回答 yes 的行为。按 y 或空格键表示 yes,n 表示 no。
(menu-bar-mode 0)
(blink-cursor-mode 0)
;;(set-scroll-bar-mode nil)
;;(global-linum-mode 0)
(set-default-font "16")
;;(fringe-mode 1)
;;-----color setting---------
;; (set-background-color "#000")
;; (set-foreground-color "white")
;; (set-face-foreground 'highlight "green")
;; (set-face-background 'highlight "blue")
;; (set-face-background 'region "red")
;; (set-face-foreground 'region "yellow")
;; (setq global-font-lock-mode t)
(setq frame-title-format "@%b")
;;在标题栏显示buffer的名字,而不是 emacs@wangyin.com 这样没用的提示。
;;启动设置
(setq default-frame-alist
'(
(top . 100)
(left . 380)
;(width . 90)
;(height . 30)
(tool-bar-lines . 0)
(menu-bar-lines . 0)))
(setq inhibit-startup-message t)
;;关闭emacs启动时的画面
(setq make-backup-files nil)
;; 设定不产生备份文件
;;(setq auto-save-mode nil)
;;自动保存模式
(setq-default make-backup-files nil)
;; 不生成临时文件
(setq speedbar-show-unknown-files t)
;;可以显示所有目录以及文件
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(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.
)
;; add php-mode
(add-to-list 'load-path "/usr/share/emacs/site-lisp")
(require 'php-mode)
(add-to-list 'auto-mode-alist '("\\.php[34]?\\'\\|\\.phtml\\'" . php-mode))
;; add emmet-mode
(add-to-list 'load-path "/usr/share/emacs/site-lisp")
(require 'emmet-mode)
(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
(add-hook 'html-mode-hook 'emmet-mode) ;; Auto-start on html
(add-hook 'css-mode-hook 'emmet-mode) ;; enable Emmet's css abbreviation.
;; set auto indent
(global-set-key (kbd "RET") 'newline-and-indent)
(fset 'yes-or-no-p 'y-or-n-p)
;; 改变 Emacs 固执的要你回答 yes 的行为。按 y 或空格键表示 yes,n 表示 no。
相关文章推荐
- Unity Shader编程(2)Unity Shader初步
- Android Studio经验积累
- HTML5 Form Data 对象的使用-jQuery
- Java中外部类访问内部类的方法
- UIScrollView与NSTimer计时器、分页指示器控件的使用
- C#学习日记06---数据类型 之 浮点数类型
- struct 大小计算
- 玩转vsftpd服务器的四大高级配置
- Marr的视觉计算理论
- 矩阵的加法运算
- 给出一个十六进制的数0xFF 0x80 (只有2“位”) 将其转换成有符号的一字节的十进制整数
- 项目32.1输出小星星
- Linux内核中的进程组及会话 http://blog.csdn.net/daniel_h1986/article/details/6067685
- CentOS 7安装配置FTP服务器
- 机房收费系统文档
- C++学习笔记之多态(虚函数)
- 4、Hibernate三种状态的讲解
- 微网站|手机端html弹窗、弹层、提示框、加载条
- hadoop 环境搭建要点
- Linux 命令 - id: 显示用户的身份标识