https://github.com/sdm-lang/emacs-sdml-ispell
Adds ispell support for SDML source files.
https://github.com/sdm-lang/emacs-sdml-ispell
emacs sdml
Last synced: 4 months ago
JSON representation
Adds ispell support for SDML source files.
- Host: GitHub
- URL: https://github.com/sdm-lang/emacs-sdml-ispell
- Owner: sdm-lang
- License: apache-2.0
- Created: 2024-06-24T22:37:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-05T00:12:00.000Z (9 months ago)
- Last Synced: 2025-09-08T16:00:24.042Z (9 months ago)
- Topics: emacs, sdml
- Language: Emacs Lisp
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SDML mode spell-checking for Emacs

This package provides *selective* spell checking using [ispell](https://www.gnu.org/software/emacs/manual/html_node/emacs/Spelling.html) for SDML -
the [Simple Domain Modeling Language](https://github.com/johnstonskj/tree-sitter-sdml) buffers.
Following the behavior of `flyspell-prog-mode`, this mode only checks the nodes
corresponding to comments and strings.
## Installing
Install is easiest from MELPA, here's how with `use-package`. Note the hook clause
to ensure this minor mode is always enabled for SDML source files.
```elisp
(use-package sdml-ispell
:after (ispell sdml-mode)
:hook (sdml-mode . sdml-ispell-mode)
```
Or, interactively; `M-x package-install RET sdml-ispell RET`
## Bindings
- `C-c C-s s` -- spell check the item at point
- `C-c C-s C-s` -- spell check all items in the buffer
## Contributing
This package includes an [Eldev](https://github.com/emacs-eldev/eldev) file and the following MUST be run before
creating any PR.
- `eldev lint`
- `eldev doctor`
- `eldev package --load-before-compiling --stop-on-failure --warnings-as-errors`
- `eldev test`
- `eldev test --undercover auto,coveralls,merge,dontsent -U simplecov.json`
- `eldev release -nU 9.9.9`
The script [eldev-check.sh](https://gist.github.com/johnstonskj/6af5ef6866bfb1288f4962a6ba3ef418) may be useful to you if you do not have your own Eldev workflow.
## License(s)
The contents of this repository are made available under the following
licenses:
### Apache-2.0
> ```text
> Copyright 2025 Simon Johnston
>
> Licensed under the Apache License, Version 2.0 (the "License");
> you may not use this file except in compliance with the License.
> You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
> ```
See the enclosed file [LICENSE-Apache](https://github.com/sdm-lang/emacs-sdml-ispell/blob/main/LICENSE-APACHE).
### MIT
> ```text
> Copyright 2025 Simon Johnston
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the “Software”), to deal
> in the Software without restriction, including without limitation the rights to
> use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
> the Software, and to permit persons to whom the Software is furnished to do so,
> subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
> INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
> PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
> ```
See the enclosed file [LICENSE-MIT](https://github.com/sdm-lang/emacs-sdml-ispell/blob/main/LICENSE-MIT).
### Contributions
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.
## Changes
The `0.1.x` series are all pre-release and do not appear in ELPA/MELPA.