From d46df2d834b6b4e53bdde14325a15b8c73377a99 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 20 Oct 2023 09:09:20 +0200 Subject: [PATCH 1/4] multimedia: yt-dlp: also write video description --- multimedia/yt-dlp/config | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.2 From c282b1a7e828b5d9244d1ba0e8afb6134f818984 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 24 Oct 2023 07:30:47 +0200 Subject: [PATCH 2/4] vim: support modelines in Go which change 'tabstop' I've used Go with the default setting of eight spaces per tab for a long time but the lines do indeed get very long. So permit using a modeline to switch back to four spaces per tab. --- vim/vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.43.2 From ec8e8f5e2f28686e14e809c8c6a79e1689d643bc Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 9 Dec 2023 17:39:05 +0100 Subject: [PATCH 3/4] multimedia: mpv: restore watch-later behavior for pause --- multimedia/mpv/mpv.conf | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.2 From d8c73cc9564b151cf61f9e45f8367655e7b04e7f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 26 Apr 2024 17:26:49 +0200 Subject: [PATCH 4/4] shell: set GOTOOLCHAIN=local --- shell/shell/env | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.43.2