Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extra highlighters for the Kakoune editor

License

NotificationsYou must be signed in to change notification settings

kakoune-editor/kakoune-extra-filetypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a collection ofKakounehighlighters for file formats that are not supported out of the box.

Installation

The following will deploy all the highlighters to/usr/local/share/kakoune-extra-filetypes/rc by default:

# make install

Tweak the values of theDESTDIR andPREFIX variables according to yourneeds, e.g.:

$ make DESTDIR=/tmp/test PREFIX=/usr

Usage

If 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).

Autoload

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/autoload

Note 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/autoload

Individual loading

If 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp