setting inline-open in modeline in emacs -
i have in .emacs:
(c-set-offset 'inline-open 0)
is there way "unset" inline-open in modeline files inline-open cause indentation?
thanks.
you can accomplish file variables suspect. either @ top, or @ bottom.
to @ top, add:
// -*- eval: (setq c-offsets-alist (assq-delete-all 'inline-open c-offsets-alist)) -*-
at top of file.
alternatively, can add @ end of file in different format.
// local variables: // eval: (setq c-offsets-alist (assq-delete-all 'inline-open c-offsets-alist)) // end:
note: emacs ask first time open file kind of trickery, , if answer !, emacs automatically add code list of things considered "safe" in file local variables. set safe-local-variable-values
in .emacs.customization.el
file.
note 2: snippets of code using c++ style comments, adjust appropriately if need c comments, or other comment scheme.
Comments
Post a Comment