Variable: c-file-offsets

c-file-offsets is a buffer-local variable defined in cc-vars.el.gz.

Documentation

Variable interface for setting offsets via File Local Variables.

In a file's Local Variable section, you can set this variable to an association list similar to the values allowed in c-offsets-alist. When the file is visited, CC Mode will institute these offset settings automatically.

Note that file offset settings are applied after file style settings as designated in the variable c-file-style.

Probably introduced at or before Emacs version 20.3.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-vars.el.gz
;;;###autoload(put 'c-file-style 'safe-local-variable 'string-or-null-p)

(defvar c-file-offsets nil
  "Variable interface for setting offsets via File Local Variables.
In a file's Local Variable section, you can set this variable to an
association list similar to the values allowed in `c-offsets-alist'.
When the file is visited, CC Mode will institute these offset settings
automatically.

Note that file offset settings are applied after file style settings
as designated in the variable `c-file-style'.")