File: emacs-style

package info (click to toggle)
apache2 2.4.37-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 56,124 kB
  • sloc: ansic: 194,363; sh: 13,118; perl: 11,282; php: 1,316; awk: 748; makefile: 657; lex: 374; yacc: 161; python: 72; xml: 1
file content (12 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
(add-hook 'c-mode-hook
          (function (lambda ()
			(c-set-offset 'inclass' ++)
			(c-set-offset 'defun-block-intro' ++)
			(c-set-offset 'statement-block-intro' ++)
			(c-set-offset 'substatement' ++)
			(c-set-offset 'brace-list-intro' ++)
			(c-set-offset 'statement-case-intro' ++)
			(c-set-offset 'inextern-lang' 0)
			)))
(setq c++-mode-hook c-mode-hook)
(setq-default indent-tabs-mode nil)