Powerful and simple solution to spell check code in command line.
Run below commands in shell,
# Ubuntu/Debian
sudo apt install -y emacs25 aspell aspell-en && git clone https://github.com/redguardtoo/jqcuo.git && #+end_src
One line to spell check all files in current directory,
emacs --batch -Q -l jqcuo/init.el --eval '(my-spell-check-directory ".")'
One line to spell check file,
emacs --batch -Q -l jqcuo/init.el --eval '(my-spell-check-file "src/hello.js")'
Open personal-dictionary.txt
. Make sure its header (the first line) has correct format. Then add your own words into this file.
You can also check init.el
to see how this dictionary is passed to aspell command line program.
Name | Supported |
---|---|
C | Yes |
Java | Yes |
Python | Yes |
C++ | Yes |
C# | Yes |
Visual Basic | Yes |
JavaScript | Yes |
PHP | Yes |
HTML | Yes |
CSS | Yes |
SCSS | Yes |
R | Yes |
SQL | Yes |
Go | Yes |
Swift | Yes |
Perl | Yes |
Assembly language | Yes |
Ruby | Yes |
MATLAB | No |
Octave | No |
Groovy | Yes |
Rust | Yes |
Objective-C | Yes |
Dart | Yes |
Logo | No |
SAS | Yes |
Scratch | No |
D | Yes |
Julia | Yes |
Pascal | Yes |
ABAP | No |
Scala | Yes |
Scheme | No |
COBOL | Yes |
Kotlin | Yes |
Lisp | Yes |
OpenEdge ABL | No |
Fortran | Yes |
Ada | Yes |
Lua | Yes |
LabVIEW | No |
prolog | Yes |
TypeScript | Yes |
VBScript | Yes |
Haskell | Yes |
Hack | No |
Apex | No |
PowerShell | Yes |
Bash | Yes |
Clojure | Yes |
Fountain | Yes |
VimScript | Yes |
CSV | Yes |
Yaml | Yes |
Verilog | Yes |
Org | Yes |
Markdown | Yes |