Skip to content

Instantly share code, notes, and snippets.

@zhuzhonghua
Created January 21, 2019 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuzhonghua/cdeac8e1fa9c3e72b82e86a0522063bd to your computer and use it in GitHub Desktop.
Save zhuzhonghua/cdeac8e1fa9c3e72b82e86a0522063bd to your computer and use it in GitHub Desktop.
解决cpp中public/private/protected等的缩进问题
头文件进入c++-mode
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
access-label的缩进设置成--
((access-label . --))
C-x C-o 查看设置某行对应label的缩进值
C-x C-s 查看整体缩进值
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment