diff --git a/.dir-locals.el b/.dir-locals.el index df2c4f6..4920a14 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1 +1,7 @@ -((nil . ((indent-tabs-mode . nil)))) +((nil . ((indent-tabs-mode . nil))) + ;; thanks to Mohammed Sadiq, see https://source.puri.sm/Librem5/calls/-/merge_requests/332#note_159469 + (c-mode . ((c-macro-names-with-semicolon + . ("G_BEGIN_DECLS" "G_END_DECLS" "G_DECLARE_FINAL_TYPE" "G_DEFINE_QUARK" + "G_DECLARE_DERIVABLE_TYPE" "G_DECLARE_INTERFACE" "G_DEFINE_TYPE" + "G_DEFINE_TYPE_WITH_PRIVATE" "G_DEFINE_ABSTRACT_TYPE" + "G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE")))))