The module was built with the idea to be able to make patches and check them as
quickly as possible for Linux kernel contributing. It doesn't do anything
too fancy. The modules uses the checkpatch.pl
script for checking if a patch is written correctly. It also builds a
Makefile if one doesn't exist near the source of the file being written for
The lexer is really only an alias to the
- lexer: straight alias to
ansi_clexer. Cannot get easier.
- module: checkpatch for compile, makefile build on save, and a good list of snippets to use.
- build: uses Makefile generated or in source to build.
- autocomplete: use autocomplete or reference to Linux kernel.
- lint: may change how checkpatch call works and instead use for before save check of a file to correct for Linux C compliant.
Clone the repository to your
cd ~/.textadept/modules hg clone https://bitbucket.org/a_baez/ta-linux linux
Then copy the
linux.lua lexer file into your
cp ~/.textadept/modules/linux/linux.lua ~/.textadept/lexers/linux.lua
Finally, append to your
~/.textadept/init.lua file the module through the
file extension. Need to do this, since the file type extension declares the
textadept.file_types.extensions.rs = 'linux'