我的emacs配置部分
2024-10-20 08:35:48
考场必记8行
(global-set-key (kbd "RET") 'newline-and-indent)//换行
(global-set-key (kbd "C-a") 'mark-whole-buffer)//Ctrl-A全选
(set-background-color "grey15")//背景颜色
(set-foreground-color "grey")//字体颜色
(setq default-cursor-type 'bar)//设置光标为条状
(setq c-basic-offset 2)//设置tab为两个空格的宽度
(setq c-default-style "awk")//设置c++编译颜色风格
(set-frame-parameter (selected-frame) 'alpha (list 85 50))//设置屏幕透明
使用这些配置之后,打开任意一个文件,你的emacs会变成这个样子
其实许多选项都可以在\(emacs\)内部解决问题
关掉一开始烦人的显示屏
看到下面高亮的字没,勾掉右边那个框框,然后点下左边的字
显示括号匹配
CUA 撤销/剪切/复制/粘贴什么的就可以用了
光标停止闪烁
不然晃眼睛
隐藏上方并没有什么用的工具栏
设置字体
显示不出??不重要啊,把已有的字体调大就可以啦,舒服一些
记得保存
然后你的配置就会多上下面这一大段东西
(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.
'(blink-cursor-mode nil)
'(cua-mode t nil (cua-base))
'(inhibit-startup-screen t)
'(show-paren-mode t)
'(tool-bar-mode nil))
(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.
'(default ((t (:family "Ubuntu Mono" :foundry "DAMA" :slant normal :weight normal :height 143 :width normal)))))
省了一大段要背的东西很好不是么
最新文章
- 升级Dell的R810固件版本
- clean之后R文件消失
- 数据导入读取read.table函数详解,如何读取不规则的数据(fill=T)
- Java性能优化权威指南-读书笔记(二)-JVM性能调优-概述
- c++ 一个类使用另外一个类的变量或方法
- JqueryEasyUI 增加选项卡
- Eval()和DataBinder Eval(Container DataItem,)的区别及用法
- PHP问题Parse error: syntax error, unexpected end of file in
- iOS开发之Runtime函数
- GridView添加事件监听和常用属性解析
- iOS中 Swift初级入门学习(三)
- 【题解】Luogu P4121 [WC2005]双面棋盘
- day27 多继承 super 详细用法
- ECharts公共组件:title详解、 tooltip详解、toolbox详解、legend详解、dataZoom详解、visualMap全解
- typescript接口的概念 以及属性类型接口
- 20155206赵飞 基于《Arm试验箱的国密算法应用》课程设计个人报告
- Java异常的优势与缺陷,及其处理原则
- English trip V1 - 8.What's in My Bag? 我的包里面有什么? Teacher:Corrine Key: plular(复数) and singular(单数)
- POI2010题解
- 编写一个程序,将 a.txt 文件中的单词与 b.txt 文件中的单词交替合并到 c.txt 文件中,a.txt 文件中的单词用回车符分隔,b.txt 文件中用回车或空格进行分隔。