0

I'm looking for a mode or hook that automatically opens a generated in read-only and auto-revert-mode mode alongside an associated with a source file. For instance when calling dmd -vgc-ast on a .d-file or calling the C preprocessor (cpp) on a .c file.

The mode should be configured via a set of mappings between source file name regexps and generated file regexps.

2
  • How are you calling dmd and cpp? M-x compile? Something different? Please add details. Commented Aug 20, 2022 at 11:18
  • I'm calling dmd via flycheck. I haven't thought about cpp yet but probably triggered via a flycheck options popup menu for flycheck in C/C++ mode. Commented Aug 20, 2022 at 20:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.