emacs之配置2,UI基本设置
在~下建立目录emacsConfig,里面建立一些自己写的el脚本,下面是名字随便,我的
emacsConfig/ui-setting.el
;关闭Emacs的默认启动界面
(setq inhibit-startup-message t) ;关闭scratch消息提示
(setq initial-scratch-message nil) ;语法高亮
(global-font-lock-mode t) ;以y/n代表yes/no
(fset 'yes-or-no-p 'y-or-n-p) ;显示括号匹配
(show-paren-mode t)
(setq show-paren-style 'parentheses) ;禁止自动保存
(auto-save-mode ) ;显示日期
(setq display-time-day-and-date t) ;显示时间
(display-time) ;时间为24小时制
(setq display-time-24hr-format t) ;设置时间戳,标识出最后一次保存文件的时间。
(setq time-stamp-active t)
(setq time-stamp-warn-inactive t)
(setq time-stamp-format "%:y-%02m-%02d %3a %02H:%02M:%02S K.T") ;关闭出错时的提示声
(setq visible-bell t) ;设置标题栏显示文件的完整路径名
(setq frame-title-format
'("%s" (buffer-file-name "%f"
(dired-directory dired-directory "%b")))) ;一打开就起用 text 模式。
(setq default-major-mode 'text-mode) ;打开图片显示功能
(auto-image-file-mode t) ;显示列号
(column-number-mode t) ;显示行号
(global-linum-mode ) ;支持中键粘贴
(setq mouse-yank-at-point t) ;高亮显示要拷贝的区域
(transient-mark-mode t) ;支持emacs和外部程序的粘贴
(setq x-select-enable-clipboard t) ;不生成#F#文件
(setq auto-save-default nil) ;不要生成临时文件
(setq-default make-backup-files nil) ;防止页面滚动时跳动
(setq scroll-margin
scroll-conservatively ) ;设置颜色在单独的脚本里面,模仿sublime的风格 ;设置字体
(if (eq system-type 'darwin)
(set-default-font "Monaco-11")) (if (eq system-type 'gnu/linux)
(set-default-font "Monaco-10")) ;设置菜单栏
(if (eq system-type 'darwin)
(menu-bar-mode )) (if (eq system-type 'gnu/linux)
(menu-bar-mode )) ;去掉工具栏
(tool-bar-mode ) ;不显示滚动条
(scroll-bar-mode ) ;在状态条上显示当前光标在哪个函数体内部
(which-function-mode t) ; 用一个很大的kill ring. 这样防止我不小心删掉重要的东西
(setq kill-ring-max )
(setq max-lisp-eval-depth ) ;lisp最大执行深度
(setq max-specpdl-size ) ;最大容量
(setq undo-outer-limit ) ;撤销限制
(setq message-log-max t) ;设置message记录全部消息, 而不用截去
(setq eval-expression-print-length nil) ;设置执行表达式的长度没有限制
(setq eval-expression-print-level nil) ;设置执行表达式的深度没有限制
(setq global-mark-ring-max ) ;设置最大的全局标记容量
(setq history-delete-duplicates t) ;删除minibuffer的重复历史
emacs之配置2,UI基本设置的更多相关文章
- [daily][emacs][go] 配置emacs go-mode的编辑环境以及环境变量问题
1. 安装go 安装go-mode 使用emacs编辑go代码的时候,你需要有正常可运行的go环境. 并且有emacs的go-mode package https://www.emacswiki.or ...
- Emacs 安装配置使用教程
Emacs 安装配置使用教程 来源 https://www.jianshu.com/u/a27b97f900f7 序|Preface 先来一篇有趣的简介:Emacs和Vim:神的编辑器和编辑器之神 - ...
- ubuntu14.04 下emacs 24 配置
目的: 配置emacs 24 适合编程开发 主要参考JerryZhang的配置(Emacs 简易教程) http://www.perfect-is-shit.com/emacs-simple-tuto ...
- Emacs golang 配置
在配置前需要下载用到的包: godoc godef gocode oracle 在下载包之前需要设置好环境变量: # Golang export GOROOT=$HOME/go export GOPA ...
- php开发环境配置 web UI模板
web ui 能快速的整合进来?dwz? easyui? bootstrap 在Apache 中配置: 在http.conf中加入php的设置 #php5_startphpIniDir " ...
- CentOS编译安装emacs并配置
Liunxs中CentOS系列一向以稳定为目标,然而也会存在版本太旧的问题,emacs就是其中的一个,目前emacs都发行到25.2了,而CentOS上的emacs版本却还是23.1.所以需要下载源代 ...
- Emacs编辑器配置
以前总是用的vim编辑器,今天突然想换emacs 用下.折腾了很久终于搞定.使用的是windows测试环境 emacs下载地址http://ftp.gnu.org/gnu/emacs/windows/ ...
- Emacs考场配置
当年\(NOip\)考场配置不记得啦 存在这里搞事情 (set-background-color "gray15") (set-foreground-color "gra ...
- 我的emacs考场配置
豪华配置(复制的神犇的,已膜改) (global-set-key [f9] 'compile-file) (global-set-key [f10] 'gud-gdb) (global-set-key ...
随机推荐
- Git合并分支或者冲突
假设冲突文件是 test/TestCase.php 下面分5种情况讨论. 1.本地不变. 然后远程别人有更新. git pull 这种最简单,没有冲突,本地工作区直接更新 2.我本 ...
- luogu p3371 单源最短路径(dijkstral
本来我写的对的 我就多手写了个 ios::sync_with_stdio(false); 我程序里面用了cin 还有scanf 本来想偷偷懒 我就说 我查了半天错 根本找不到的啊... 后来交了几次 ...
- hdu 5687 Problem C trie树
Problem C Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Prob ...
- Socket编程理论
Socket理论 本地IP地址.本地端口号.外地IP地址.外地端口号组成一对套接字对. socket(套接字),就是 IP:端口号的形式. 一个完整的Socket有一个本地唯一的Socket号,由操作 ...
- SQL语言的增删改查
select(查), update(改), delete(删), insert into(增) select * from table_name 获取表中所有字段 select id, name, ...
- UVA-1612 Guess (贪心)
题目大意:考试共有三道题,n个人,每个人对每道题的可能得分已知,现在已知考后排名情况,问排名合不合理. 题目分析:贪心.贪心策略:每处理一个排名,都让他的得分尽量高. # include<ios ...
- 改变Vim保存文件路径
1. vim 有个cd命令.用来更改当前文件夹.:cd sth进入sth文件夹.这样新文件保存之后就在当前文件夹.不过如果你打开一个已经保存的文件后然后更改当前文件夹是不会改变保存路径的.你必须为:w ...
- 019PHP基础知识——函数(二)
<?php /** * 变量的作用范围 * 函数体内的变量只作用于函数体内. */ /*$bbs="bbs.blog.com"; function say(){ $bbs=& ...
- POJ 3087 Shuffle'm Up bfs
题目链接:Shuffle'm Up 除了英文题有点恶心.发现模拟 + bfs 就可以过的时候,就是水了. 一个bug 就是filp函数得到string s12失败了.恩.据大腿告知,string 并不 ...
- idea常用实用快捷键
Ctrl+Alt+方向键(左键,右键),返回上次查看的位置.(这个快捷键和window本身快捷键冲突,需要关闭windows 对应快捷键功能,参考博客:https://blog.csdn.net/u0 ...