- Notifications
You must be signed in to change notification settings - Fork11
Extra highlighters for the Kakoune editor
License
kakoune-editor/kakoune-extra-filetypes
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository is a collection ofKakounehighlighters for file formats that are not supported out of the box.
The following will deploy all the highlighters to/usr/local/share/kakoune-extra-filetypes/rc by default:
# make installTweak the values of theDESTDIR andPREFIX variables according to yourneeds, e.g.:
$ make DESTDIR=/tmp/test PREFIX=/usrIf you’ve installed the extra highlighters through your distribution’spackage manager, they might be stored in a directory other than thedefault one (c.f. above).
The "autoload" method lets the editor load the entire collection.
If you don’t have anautoload directory already, you’ll need tocreate it, and make sure all the builtin scripts (provided by theKakoune editor) are loaded:
$ mkdir -p "${XDG_CONFIG_HOME:-${HOME}/.config}"/kak/autoload$ ln -s /usr/share/kak/rc "${XDG_CONFIG_HOME:-${HOME}/.config}"/kak/autoloadNote that your distribution might have installed the editor’s scripts ina directory that isn’t/usr/share/kak, you’ll have to modify this pathaccording if that’s the case.
Now create an additional symbolic link inautoload that points at theextra highlighters:
$ ln -s /usr/local/share/kakoune-extra-filetypes/rc "${XDG_CONFIG_HOME:-${HOME}/.config}"/kak/autoloadIf you don’t want to create anautoload directory, you can load all thehighlighters with the following code (to append to yourkakrc file):
evaluate-commands %sh{ find "${kak_runtime}"/../kakoune-extra-filetypes/rc -type f -name \*\\.kak -exec printf 'source %s\n' '{}' \;}You can also individually pick which highlighters to load in yourkakrcfile, with thesource command:
source %val{runtime}/../kakoune-extra-filetypes/rc/…About
Extra highlighters for the Kakoune editor
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.