Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exclusions config option to exclude things like temp files #62

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

spacebat
Copy link
Contributor

@spacebat spacebat commented May 22, 2024

Various editors create junk files that wake up exsync, in particular a mix format on save feature in emacs will create a copy of a file for mix format to operate on:
foo_bar.ex => foo_bar-emacs-elixir-format.ex

Seeing this, exsync kicks off the elixir compiler and there is an error about a module being defined in 2 different files.

Being able to exclude files matching ~r/-emacs-elixir-format/ solves this issue.

Various editors create junk files that wake up exsync, in particular a
mix format on save feature in emacs will create a copy of a file for
mix format to operate on:
foo_bar.ex => foo_bar-emacs-elixir-format.ex

Seeing this, exsync kicks off the elixir compiler and there is an
error about a module being defined in 2 different files.

Being able to exclude files matching ~/-emacs-elixir-format/ solves
this issue.
Copy link
Collaborator

@axelson axelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution! ❤️

Generally config :exsync, exclusions: [~r/#/] shouldn't be needed to exclude Emacs temporary files because emacs default temporary files (e.g. #exsync.ex#) don't match the default file extension checks.

But this does seem like a generally useful piece of configuration.

@axelson axelson merged commit d95d5bd into falood:main Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants