Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattt-b/flycheck-odin
Emacs Flycheck integration for the Odin language
https://github.com/mattt-b/flycheck-odin
emacs flycheck odin-lang odin-programming-language
Last synced: 18 days ago
JSON representation
Emacs Flycheck integration for the Odin language
- Host: GitHub
- URL: https://github.com/mattt-b/flycheck-odin
- Owner: mattt-b
- License: unlicense
- Created: 2019-01-07T07:01:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-18T22:10:58.000Z (almost 4 years ago)
- Last Synced: 2023-02-26T22:29:22.811Z (almost 2 years ago)
- Topics: emacs, flycheck, odin-lang, odin-programming-language
- Language: Emacs Lisp
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-odin - Flycheck - b/flycheck-odin/blob/master/LICENSE) (Closed-Source Projects / Vendor)
- awesome-odin - Flycheck - b/flycheck-odin/blob/master/LICENSE) (Closed-Source Projects / Vendor)
README
# flycheck-odin
[Flycheck](https://www.flycheck.org/en/latest/) for [Odin](https://github.com/odin-lang/Odin)## Setup
```elisp
(eval-after-load 'flycheck
'(add-hook 'flycheck-mode-hook #'flycheck-odin-setup))
```#### Default behavior
This is a wrapper around `odin check $LOCATION -vet`. With no changes on the users' part, the default
behavior is is to run `odin check $CURRENT_DIRECTORY -vet` (where '$CURRENT_DIRECTORY' is the directory of the current buffer).#### Changing behavior
This exposes the following variables that can be customized globally or with [.dir-locals.el](https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html)*flycheck-odin-project-path*
Change the $LOCATION in `odin check $LOCATION -vet`. This can be a directory or a file.*flycheck-odin-error-filters*
A list of Emacs regexes of errors to ignore.*flycheck-odin-command-arguments*
A list of [compiler flags](https://github.com/odin-lang/Odin/wiki/Compiler-Flags). Defaults to `("-vet")`An example configuration might look something like this:
```
((odin-mode
(flycheck-odin-project-path . "~/code/project/src")
(flycheck-odin-error-filters . ("^[^[:blank:]]*/Odin/core/"
"^[^[:blank:]]*/Odin/shared/some_library/"
"foobar"))))```