google-c-stype for emacs
来源:互联网 发布:百度网络北京有限公司 编辑:程序博客网 时间:2024/06/09 22:44
first download
https://github.com/google/styleguide
copy google-c-stype.el to ~/.emacs.d/lisp
mine
(add-to-list 'load-path "~/.emacs.d/lisp")
(require 'google-c-style)
(add-hook 'c-mode-common-hook 'google-set-c-style)
(defun my-c-mode-hook ()
(setq c-basic-offset 4 ;; tab for C
default-tab-width 8)) ;; default tab
(add-hook 'c-mode-hook 'my-c-mode-hook)
;;Lines numbers
(global-linum-mode 1) ;; always show line numbers
(setq linum-format "%d| ") ;; set format
(setq column-number-mode t) ;; show column numbers
(set-language-environment 'Chinese-GB) ;; Menu Chinese
https://github.com/google/styleguide
copy google-c-stype.el to ~/.emacs.d/lisp
mine
(add-to-list 'load-path "~/.emacs.d/lisp")
(require 'google-c-style)
(add-hook 'c-mode-common-hook 'google-set-c-style)
(defun my-c-mode-hook ()
(setq c-basic-offset 4 ;; tab for C
default-tab-width 8)) ;; default tab
(add-hook 'c-mode-hook 'my-c-mode-hook)
;;Lines numbers
(global-linum-mode 1) ;; always show line numbers
(setq linum-format "%d| ") ;; set format
(setq column-number-mode t) ;; show column numbers
(set-language-environment 'Chinese-GB) ;; Menu Chinese
阅读全文
0 0
- google-c-stype for emacs
- emacs使用google-c-style
- Virtual Box for ubuntu+emacs for c/c++ IDE
- Emacs for All, All for Emacs
- Google搜索客户端API for C/C++
- MFC Dialog stype
- Duilib msg.sType类型
- common lisp for emacs
- emacs configuration for Linux
- Emacs Mode for GDB
- emacs for windows
- ruby mode for emacs
- Emacs IDE for Python
- Emacs Mode for GDB
- setup emacs for windows
- emacs-for-python
- Emacs For Python
- Emacs for PHP
- python3大端、小端(Big Endian、LittleEndian)编码
- jsoup 抓取网页数据
- fiddler网络调试神器(前端)——擦肩而过
- LeetCode#445 Add Two Numbers II (week15)
- 反射 : getGenericSuperclass
- google-c-stype for emacs
- Cookie、session和localStorage、以及sessionStorage之间的区别
- 视频手术刀 video bistoury(一) -- first blood
- Ubuntu 16.04 零环境搭建LAMP部署DVWA
- 记录一下一些服务器的安全配置(随时更新)
- 数据库简繁转换
- 彻底解决 Intellij IDEA 卡顿 优化笔记
- B
- Android_7.1.1_r6源码编译