在~下建立目录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基本设置的更多相关文章

  1. [daily][emacs][go] 配置emacs go-mode的编辑环境以及环境变量问题

    1. 安装go 安装go-mode 使用emacs编辑go代码的时候,你需要有正常可运行的go环境. 并且有emacs的go-mode package https://www.emacswiki.or ...

  2. Emacs 安装配置使用教程

    Emacs 安装配置使用教程 来源 https://www.jianshu.com/u/a27b97f900f7 序|Preface 先来一篇有趣的简介:Emacs和Vim:神的编辑器和编辑器之神 - ...

  3. ubuntu14.04 下emacs 24 配置

    目的: 配置emacs 24 适合编程开发 主要参考JerryZhang的配置(Emacs 简易教程) http://www.perfect-is-shit.com/emacs-simple-tuto ...

  4. Emacs golang 配置

    在配置前需要下载用到的包: godoc godef gocode oracle 在下载包之前需要设置好环境变量: # Golang export GOROOT=$HOME/go export GOPA ...

  5. php开发环境配置 web UI模板

    web ui 能快速的整合进来?dwz? easyui?  bootstrap 在Apache 中配置: 在http.conf中加入php的设置 #php5_startphpIniDir " ...

  6. CentOS编译安装emacs并配置

    Liunxs中CentOS系列一向以稳定为目标,然而也会存在版本太旧的问题,emacs就是其中的一个,目前emacs都发行到25.2了,而CentOS上的emacs版本却还是23.1.所以需要下载源代 ...

  7. Emacs编辑器配置

    以前总是用的vim编辑器,今天突然想换emacs 用下.折腾了很久终于搞定.使用的是windows测试环境 emacs下载地址http://ftp.gnu.org/gnu/emacs/windows/ ...

  8. Emacs考场配置

    当年\(NOip\)考场配置不记得啦 存在这里搞事情 (set-background-color "gray15") (set-foreground-color "gra ...

  9. 我的emacs考场配置

    豪华配置(复制的神犇的,已膜改) (global-set-key [f9] 'compile-file) (global-set-key [f10] 'gud-gdb) (global-set-key ...

随机推荐

  1. leetcode刷题吧

    排列 从排序的数组中删除重复项 /** * @param {number[]} nums * @return {number} */ var removeDuplicates = function(n ...

  2. LeetCode——Rotate Image

    1. Question You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees ( ...

  3. [place recognition]NetVLAD: CNN architecture for weakly supervised place recognition 论文翻译及解析(转)

    https://blog.csdn.net/qq_32417287/article/details/80102466 abstract introduction method overview Dee ...

  4. ZOJ 2314 Reactor Cooling(无源汇上下界网络流)

    http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2314 题意: 给出每条边流量的上下界,问是否存在可行流,如果存在则输出. ...

  5. HDU 1166 敌兵布阵(线段树 or 二叉索引树)

    http://acm.hdu.edu.cn/showproblem.php?pid=1166 题意:第一行一个整数T,表示有T组数据. 每组数据第一行一个正整数N(N<=50000),表示敌人有 ...

  6. 日志_测试代码_Delphi7

    1. 2.Delphi (Windows API 文件尾部添加) function LogFile(_str :string) :integer; var hFile :THandle; strFil ...

  7. node+websocket创建简易聊天室

    关于websocket的介绍太多,在这就不一一介绍了,本文主要实现通过websocket创建一个简易聊天室,就是90年代那种聊天室 服务端 1.安装ws模块,uuid模块,ws是websocket模块 ...

  8. hdu1850nim博弈输出问题

    和之前一道题是类似的,输出第一步走的方法,遍历数组找到a[i]^s<a[i]的那个数a[i]-a[i]^s就是要取的数 #include<map> #include<set&g ...

  9. UVA-1336 Fixing the Great Wall(区间DP)

    题目大意:长城(视作x正半轴)有n处破损.有一个智能修复机器人,它的初始位置和移动速度已知.每处破损处都有一组参数(x,c,d),x表示位置,c.d表示在时间t后再修复该处破损的花费为d*t+c.求用 ...

  10. 微任务、宏任务与Event-Loop

    首先,JavaScript是一个单线程的脚本语言.所以就是说在一行代码执行的过程中,必然不会存在同时执行的另一行代码,就像使用alert()以后进行疯狂console.log,如果没有关闭弹框,控制台 ...