mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Add example use of js
to RC file: fix #548
This commit is contained in:
parent
da3a1fa84d
commit
303aec957d
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue