mirror of
https://github.com/irssi/irssi.git
synced 2025-04-25 04:21:22 -05:00
2
Emacs
ailin-nemui edited this page 2020-10-26 17:28:34 +01:00
Here is a basic .dir-locals.el
to configure simple indentation:
((c-mode . ((c-file-style . "linux")
(indent-tabs-mode . t)
(tab-width . 8)
(c-basic-offset . 8)
(fill-column . 100)
(clang-format+-context . 'modification)
)))
To integrate clang-format+ (auto-format on save), you can use these configs:
(require 'clang-format+)
(add-hook 'c-mode-common-hook #'clang-format+-mode)
If you want to use the clang-format-xs
wrapper included in the .github/workflows/clangformat/clang-format-xs
file, you can configure it like this:
(setq clang-format-executable "/path/to/src/irssi/.github/workflows/clangformat/clang-format-xs")