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 ...
随机推荐
- HeyWeGo第四周项目总结
HeyWeGo第四周项目总结 项目内容 使用java程序开发一款扫雷游戏 游戏项目规划: 确定游戏中方块格子的个数 确定游戏中地雷的个数(初始10个),完成布雷 计算每个方块周围的雷数,在方块周围本身 ...
- LSB含义
LSB(Least Significant Bit)最低有效位,对任何AD来说,量化后输出的数字信号值都是以1LSB的电压值步进的,介于1LSB之间的电压将按照一定的规则进行入位或舍弃,这个过程中造成 ...
- Window 常用系统变量
转载:http://www.slyar.com/blog/envionment-variables.html 转载:http://blog.csdn.net/wuliusir/article/deta ...
- CONFLICT (modify delete)冲突修复
Demo git:(test) git merge feature CONFLICT (modify/delete): path/to/path/config.inc.php deleted in H ...
- pip安装tensorflow-gpu好慢怎么办
答:为pip换源,如换成清华源 cat ~/.pip/pip.conf(没有此文件,自行创建即可,然后加入以下内容) [global]index-url = https://pypi.tuna.tsi ...
- The P4 Language Specification v1.0.2 Introduction部分
Introduction P4 is a declarative language for expressing how packets are processed by the pipeline o ...
- HDU 1503 Advanced Fruits(LCS+记录路径)
http://acm.hdu.edu.cn/showproblem.php?pid=1503 题意: 给出两个串,现在要确定一个尽量短的串,使得该串的子串包含了题目所给的两个串. 思路: 这道题目就是 ...
- POJ 1170 Shopping Offers(完全背包+哈希)
http://poj.org/problem?id=1170 题意:有n种花的数量和价格,以及m种套餐买法(套餐会便宜些),问最少要花多少钱. 思路:题目是完全背包,但这道题目不好处理的是套餐的状态, ...
- Django怎么获取get请求里面的参数
获取get请求里面参数的两种方法之三种写法一,当get网址是127.0.0.1:8000/info/?id=20&s_id=30这种类型的网址时 我们在urls的路由的urlpatterns里 ...
- git 撤销
在add之前撤回文件: git checkout src/com/jay/example/testforgit/MainActivity.java 已经add的,先取消添加,再撤回 git reset ...