File: emacs-style

package info (click to toggle)
apache2 2.4.41-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 57,628 kB
  • sloc: ansic: 197,789; perl: 11,325; sh: 5,907; php: 1,316; awk: 749; makefile: 665; lex: 374; yacc: 161; python: 72; xml: 1
file content (12 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (12)
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)