diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-03-14 17:03:30 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-03-14 17:03:30 -0400 |
| commit | d1b1bff0ac771da4f2431f7570e4e77749cc595e (patch) | |
| tree | dd60025f4f5ebcd0891bead9a20020bd6f5153e5 | |
| parent | 6f4cfc33030c8d9c1cb85dfa848a942ebeb324da (diff) | |
Add editor-specific instructions
| -rw-r--r-- | editors/README.txt | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/editors/README.txt b/editors/README.txt index dea05d49..772816a9 100644 --- a/editors/README.txt +++ b/editors/README.txt @@ -3,9 +3,6 @@ performed with a backslash prefix by default, using the layout illustrated at the top of the file ./bqn . To type an actual backslash, hit the backslash key twice. -Currently Vim and Kakoune are supported; if you'd like to contribute -files for another editor I'd gladly accept them! - The file bqn is for configuring XKB on Linux. I haven't tried this but others have it working. See: - https://en.wikipedia.org/wiki/X_keyboard_extension @@ -14,3 +11,24 @@ others have it working. See: The file inputrc can be copied or appended to ~/.inputrc to enable backslash input in bash, command-line dzaima/BQN, and other software that uses GNU Readline. + +For Vim: +Copy or symlink all files into the corresponding directories in ~/.vim . +Add the following two lines to ~/.vim/filetype.vim : + au! BufRead,BufNewFile *.bqn setf bqn + au! BufRead,BufNewFile * if getline(1) =~ '^#!.*bqn$' | setf bqn | endif +Include "syntax on" in your .vimrc for syntax highlighting and +"filetype plugin on" for keyboard input. + +For Emacs: +Add the following two lines to init.el (usually ~/.emacs.d/init.el), +replacing the path appropriately. +(add-to-list 'load-path "/path/to/BQN/editors/emacs") +(require 'gnu-apl-mode) + +For Kakoune: +Copy or symlink kak/autoload/filetype/bqn.kak into autoload/filetype in +your Kakoune config directory (probably .config/kak/). + +If you'd like to contribute files for another editor I'd gladly accept +them! |
