From: Simon Ruderich Date: Fri, 26 Apr 2024 15:26:49 +0000 (+0200) Subject: shell: set GOTOOLCHAIN=local X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=HEAD;hp=7eefe68ca1e53cf7e7a5ec3c49f681650daac71e shell: set GOTOOLCHAIN=local --- diff --git a/multimedia/mpv/mpv.conf b/multimedia/mpv/mpv.conf index 15936e1..fdb610c 100644 --- a/multimedia/mpv/mpv.conf +++ b/multimedia/mpv/mpv.conf @@ -76,5 +76,7 @@ prefetch-playlist=yes # --secondary-sid is used on the command line (mpv only saves settings with a # different value). watch-later-options-append=secondary-sid +# Also keep play/pause state (necessary since 0.37). +watch-later-options-append=pause # vim: ft=mplayerconf diff --git a/multimedia/yt-dlp/config b/multimedia/yt-dlp/config index 92012b4..d455b89 100644 --- a/multimedia/yt-dlp/config +++ b/multimedia/yt-dlp/config @@ -8,6 +8,8 @@ --write-subs +--write-description + --embed-subs --embed-chapters diff --git a/shell/shell/env b/shell/shell/env index 8313a41..83810b1 100644 --- a/shell/shell/env +++ b/shell/shell/env @@ -164,6 +164,9 @@ export GOPROXY # Same for https://sum.golang.org/ GOSUMDB=off export GOSUMDB +# Don't automatically download and execute other version of the Go toolchain +GOTOOLCHAIN=local +export GOTOOLCHAIN # Tell `ip -color` to use colors suitable for a dark terminal. Not sure if # this variable is also used by other programs. diff --git a/vim/vimrc b/vim/vimrc index 86c1e70..84813d9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -920,11 +920,10 @@ if has('eval') endif " Settings for securemodelines. - " Only allow items I need (also includes spl which is not enabled by - " default). + " Only allow items I need if v:version >= 700 " need lists let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm', - \ 'sw', 'sts', 'noet'] + \ 'ts', 'sw', 'sts', 'noet'] endif " Settings for gnupg. @@ -1082,8 +1081,9 @@ if has('autocmd') autocmd FileType vimperator setlocal commentstring=\"%s " Use TeX compiler for (La)TeX files. autocmd FileType tex compiler tex -" Go always uses tabs for indentation. - autocmd FileType go call UseTabs() +" Go always uses tabs for indentation; use BufRead so modelines can overwrite +" settings like 'tabstop' + autocmd BufRead,StdinReadPost *.go call UseTabs() " FTDETECT AUTO COMMANDS