Compare commits

..

3 Commits

Author SHA1 Message Date
Peter J. Holzer fd023493d4 Merge branch 'master' into wsr 2020-03-27 10:46:14 +01:00
Peter J. Holzer 9a3b1f0b9b Handle .ts and .html files
Recognize .ts files as javascript (its really typescript but I don't
have syntax highlighting for that). Set sw for javascript and html.
2020-03-26 14:55:30 +01:00
Peter J. Holzer c20b8fce3c Make lightbg lighter
The three-digit color codes in xtermcontrol work differently than in
CSS. #EEE is equivalent to #E0E0E0, not #EEEEEE.
2020-03-26 12:09:42 +01:00
2 changed files with 6 additions and 1 deletions

5
.vimrc
View File

@ -42,3 +42,8 @@ autocmd FileType perl syntax on
autocmd FileType go set sw=8 autocmd FileType go set sw=8
autocmd FileType go set tw=79 autocmd FileType go set tw=79
autocmd FileType go set noexpandtab autocmd FileType go set noexpandtab
autocmd BufRead,BufNewFile *.ts set filetype=javascript
autocmd FileType javascript set sw=2
autocmd FileType html set sw=2

2
.zshrc
View File

@ -28,7 +28,7 @@ then
alias ack=$ack alias ack=$ack
fi fi
alias darkbg='xtermcontrol --bg "#000" --fg "#FFF" --highlight="#00F"; export BG=dark' alias darkbg='xtermcontrol --bg "#000" --fg "#FFF" --highlight="#00F"; export BG=dark'
alias lightbg='xtermcontrol --bg "#EEE" --fg "#000" --highlight="#0FF"; export BG=light' alias lightbg='xtermcontrol --bg "#F0F0F0" --fg "#000" --highlight="#0FF"; export BG=light'
alias defaultbg='. ~/.zxtermcolors' alias defaultbg='. ~/.zxtermcolors'
alias ag='ag --color-path "34;47"' alias ag='ag --color-path "34;47"'