emacs基本配置

简介: If you are using Emacs as your default editor, you can use following setting for auto style checking.

If you are using Emacs as your default editor, you can use following setting for auto style checking. 

在~/.emacs 目录下配置文件  .emacs 此文件是隐藏文件  配置结束后不用source命令,直接emacs -nw filename 打开即可!

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(auto-compression-mode t nil (jka-compr))
 '(auto-save-default nil)
 '(case-fold-search t)
 '(current-language-environment "UTF-8")
 '(default-input-method "rfc1345")
 '(global-font-lock-mode t nil (font-lock))
 '(make-backup-files nil)
 '(show-paren-mode t nil (paren))
 '(transient-mark-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )
(setq-default indent-tabs-mode nil)
(add-hook 'c-mode-common-hook ( lambda() ( c-set-style "stroustrup" ) ) )
(add-hook 'c++-mode-common-hook ( lambda() ( c-set-style "stroustrup" ) ) )
(line-number-mode 1)
(column-number-mode 1)

目录
相关文章
封装httpclient工具类
httpclient远程调用工具封装使用
|
存储 缓存 负载均衡
《大型网站技术架构:核心原理与案例分析》读书笔记
《大型网站技术架构:核心原理与案例分析》读书笔记
|
Linux
Linux: 环境变量PATH设置错误的补救
Linux: 环境变量PATH设置错误的补救
98 0
|
Python
一起玩转树莓派(5)——让蜂鸣器播放音乐
一起玩转树莓派(5)——让蜂鸣器播放音乐
945 0
一起玩转树莓派(5)——让蜂鸣器播放音乐
|
Android开发
android各种提示Dialog 弹出框
android各种提示Dialog 弹出框
|
Java
Springboot中导入Excel
有时候我们需要导入Excel文件,并读取里面的数据 在springboot中我们通常使用POI读取解析Excel文件 在使用POI之前我们需要引入必要的依赖 org.
2021 0
单行子查询返回多个行
       大家是不是也经常碰到单行子查询返回多个行的错误提示。我已经碰到数次这种错误了,这种错误是基于数据存在的,开发人员也许在最初写这个查询语句的时候没有合适的数据,所以没有发现错误,当满足条件的数据出现后才会给出这种错误提示,特别是非常复杂的查询语句,排查原因变得非常困难。
2011 0