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)

目录
相关文章
|
Linux 开发工具 C++
【Linux环境基础开发工具】编辑器-vim(一)
【Linux环境基础开发工具】编辑器-vim(一)
127 0
|
IDE Linux Shell
【Linux环境基础开发工具】编辑器-vim(二)
【Linux环境基础开发工具】编辑器-vim(二)
81 0
|
XML 人工智能 Go
VSCode 中使用 vim 操作
为什么要使用 Vim 呢?因为真的很高效啊!!!我已经在代码编辑器和浏览器中都安装了类 Vim 插件来提搞我的操作效率。当熟练使用 Vim 命令之后,真的可以扔掉鼠标了。
1032 0
|
JSON NoSQL 关系型数据库
vscode环境配置文件生成
vscode环境配置文件生成
|
IDE 开发工具
让Vim打造成强大的IDE,附_vimrc的配置和使用
让Vim打造成强大的IDE,附_vimrc的配置和使用
|
IDE 编译器 开发工具
vim配置IDE,下载压缩包即拥有轻巧且强大的文本编辑器
vim配置IDE,下载压缩包即拥有轻巧且强大的文本编辑器
|
IDE 开发工具 C语言
vim:打造自己的ide
vim:打造自己的ide
289 0
|
Web App开发 移动开发 Ubuntu
【Ubuntu安装后基本配置】
【Ubuntu安装后基本配置】
278 0
|
开发工具 机器学习/深度学习 Perl