Add example use of js to RC file: fix #548

This commit is contained in:
Oliver Blanthorn 2018-05-17 16:55:19 +01:00
parent da3a1fa84d
commit 303aec957d
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -1,4 +1,5 @@
" bovine3dom's dogfood
"
" Move this to $XDG_CONFIG_DIR/tridactyl/tridactylrc (that's
" ~/.config/tridactyl/tridactylrc to mere mortals) or ~/.tridactylrc and
@ -21,7 +22,8 @@ bind ;c hint -c [class*="expand"],[class="togg"]
" Misc settings
"
set editorcmd st vim
" set editorcmd to suckless terminal, or use the defaults on other platforms
js tri.browserBg.runtime.getPlatformInfo().then(os=>{const editorcmd = os!="linux" ? "st vim" : "auto"; tri.config.set("editorcmd", editorcmd)})
" Sane hinting mode
set hintfiltermode vimperator-reflow
@ -42,6 +44,5 @@ autocmd DocStart www.reddit.com urlmodify -t www old
" Mosquito nets won't make themselves
autocmd DocStart www.amazon.co.uk urlmodify -t www smile
" This will have to do until someone writes us a nice syntax file :)
" vim: set filetype=vim: