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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -