summaryrefslogtreecommitdiff
path: root/java/org/gnu/emacs/EmacsView.java
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 /java/org/gnu/emacs/EmacsView.java
parent83af806ab7cce7f9d9e184410a9c6921aa5de936 (diff)
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 'java/org/gnu/emacs/EmacsView.java')
0 files changed, 0 insertions, 0 deletions