summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/ert.el
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-02-15 21:05:37 +0100
committerTheodor Thornhill <theo@thornhill.no>2023-02-16 19:52:06 +0100
commitf1f571e72ae10285762d3a941e56f7c4048272af (patch)
tree2c4015f070ba1653918a9c9d368044518ca08af7 /lisp/emacs-lisp/ert.el
parent83af806ab7cce7f9d9e184410a9c6921aa5de936 (diff)
downloademacs-f1f571e72ae10285762d3a941e56f7c4048272af.tar.gz
emacs-f1f571e72ae10285762d3a941e56f7c4048272af.tar.bz2
emacs-f1f571e72ae10285762d3a941e56f7c4048272af.zip
Add electric indent for preproc directives
It looks like there are few if no other cases where we get this particular error in the AST than with insertion of '#'. Consider: ``` int main() { | } ``` If we only add '#' the AST yields (ERROR (ERROR)), which we can exploit to hook onto electric indent. The end result should be the hashtag anchored to column 0. * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): New rule. (c-ts-base-mode): Add # to electric-indent-chars.
Diffstat (limited to 'lisp/emacs-lisp/ert.el')
0 files changed, 0 insertions, 0 deletions