aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chezmoi.toml.censored1
-rw-r--r--crontab6
-rw-r--r--dot_emacs23
-rw-r--r--dot_local/bin/executable_sbuild-experimental2
-rw-r--r--dot_local/lib/sbuild/executable_update-chroots.sh37
5 files changed, 62 insertions, 7 deletions
diff --git a/chezmoi.toml.censored b/chezmoi.toml.censored
index 2d258f3..a4e7a2a 100644
--- a/chezmoi.toml.censored
+++ b/chezmoi.toml.censored
@@ -1,3 +1,4 @@
+encryption = "gpg"
[gpg]
recipient = "4E469519ED677734268FBD958F7BF8FC4A11C97A"
[data]
diff --git a/crontab b/crontab
index d049afc..1b0650c 100644
--- a/crontab
+++ b/crontab
@@ -23,13 +23,13 @@
# m h dom mon dow command
0 * * * * zsh -c "rkinits" >/dev/null 2>&1
0 0 * * * TEXMFHOME=${HOME}/.texmf updmap -user > /dev/null
-0 0 * * * /home/rak/bin/Internet.m3u.sh
+0 0 * * * ${HOME}/.local/bin/Internet.m3u.sh
0 0 * * sun mount | grep -q /media/t && /media/t/Archives/irc-logs/backup.sh
0 2 * * * mount | grep -q /media/t && /media/t/Archives/email/rak.ac/backup.sh
30 2 * * * mount | grep -q /media/t && /media/t/Archives/git.rak.ac/backup.sh
-0 4 * * * /home/rak/bin/borg-home.sh > /dev/null
+0 4 * * * ${HOME}/.local/bin/borg-home.sh > /dev/null
30 4 * * * mount | grep -q /media/t && /media/t/borg-tosh.sh > /dev/null
-0 23 1,15 * * /home/rak/bin/borg-check.sh
+0 23 1,15 * * ${HOME}/.local/bin/borg-check.sh
35 23 * * * recollindex >/dev/null 2>&1
0 * * * * ${HOME}/Documents/papers/commit-push.sh >/dev/null 2>&1
0 0 * * * /usr/sbin/tmpreaper --mtime-dir 30d ~/Downloads
diff --git a/dot_emacs b/dot_emacs
index 1ca6acb..3e5d42b 100644
--- a/dot_emacs
+++ b/dot_emacs
@@ -237,7 +237,7 @@ Extended Format date in the date field and return it as a string obeing
:straight t
;; Bind prefix keymap providing all Cape commands under a mnemonic key.
;; Press C-c p ? to for help.
- :bind ("C-c p" . cape-prefix-map) ;; Alternative key: M-<tab>, M-p, M-+
+ :bind ("M-+" . cape-prefix-map) ;; Alternative key: M-<tab>, M-p, M-+
;; Alternatively bind Cape commands individually.
;; :bind (("C-c p d" . cape-dabbrev)
;; ("C-c p h" . cape-history)
@@ -374,7 +374,13 @@ Extended Format date in the date field and return it as a string obeing
(use-package erc
:straight t
:custom
- (erc-hide-list '("JOIN" "PART" "QUIT" "353"))
+ (erc-hide-list '("JOIN" "PART" "QUIT"
+ ;; https://www.rfc-editor.org/rfc/rfc2812.txt
+ "305" ; ":You are no longer marked as being away"
+ "306" ; ":You have been marked as being away"
+ "332" ; RPL_TOPIC "<channel> :<topic>"
+ "353" ; RPL_NAMEREPLY
+ ))
(erc-lurker-hide-list '("JOIN" "PART" "QUIT"))
(erc-fill-column 120)
(erc-fill-function 'erc-fill-static)
@@ -546,6 +552,12 @@ Otherwise split the current paragraph into one sentence per line."
(LaTeX-mode . (lambda () (set (make-local-variable 'TeX-electric-math)
(cons "\\(" "\\)"))))
(LaTeX-mode . (lambda ()
+ (add-to-list 'LaTeX-indent-environment-list
+ '("refsection" current-indentation))
+ (add-to-list 'LaTeX-indent-environment-list
+ '("refsegment" current-indentation))))
+ (LaTeX-mode . (lambda () (add-to-list 'LaTeX-verbatim-environments "Piton")))
+ (LaTeX-mode . (lambda ()
(LaTeX-add-environments
'("axiom" LaTeX-env-label)
'("theorem" LaTeX-env-label)
@@ -554,6 +566,7 @@ Otherwise split the current paragraph into one sentence per line."
'("corollary" LaTeX-env-label)
'("lemma" LaTeX-env-label)
'("example" LaTeX-env-label)
+ '("exercise" LaTeX-env-label)
'("conjecture" LaTeX-env-label)
'("figure" LaTeX-env-label))))
(LaTeX-mode . (lambda ()
@@ -567,7 +580,8 @@ Otherwise split the current paragraph into one sentence per line."
(add-to-list 'LaTeX-label-alist '("definition" . "def:"))
(add-to-list 'LaTeX-label-alist '("proposition" . "prop:"))
(add-to-list 'LaTeX-label-alist '("theorem" . "theorem:"))
- (add-to-list 'LaTeX-label-alist '("example" . "ex:"))
+ (add-to-list 'LaTeX-label-alist '("example" . "exa:"))
+ (add-to-list 'LaTeX-label-alist '("exercise" . "exe:"))
(add-to-list 'LaTeX-label-alist '("lemma" . "lemma:"))
(add-to-list 'LaTeX-label-alist '("figure" . "fig:")))))
:config
@@ -1166,7 +1180,8 @@ If not, issue a warning."
("corollary" ?c "cor:%F:" "~\\ref{%s}" t ("corollary" "cor.") -3)
("lemma" ?l "lemma:%F:" "~\\ref{%s}" t ("lemma" "lem.") -3)
("conjecture" ?j "conj:%F:" "~\\ref{%s}" t ("conjecture" "conj.") -3)
- ("example" ?X "ex:%F:" "~\\ref{%s}" t ("example" "ex.") -3)
+ ("example" ?X "exa:%F:" "~\\ref{%s}" t ("example" "ex.") -3)
+ ("exercise" ?x "exe:%F:" "~\\ref{%s}" t ("exercise" "ex.") -3)
("figure" ?F "fig:%F:" "~\\ref{%s}" t ("figure" "fig.") -3)
("ax" ?a "ax:%F:" "~\\ref{%s}" t ("axiom" "ax.") -3)
("thm" ?h "theorem:%F:" "~\\ref{%s}" t ("theorem" "th.") -3)
diff --git a/dot_local/bin/executable_sbuild-experimental b/dot_local/bin/executable_sbuild-experimental
new file mode 100644
index 0000000..ed938bf
--- /dev/null
+++ b/dot_local/bin/executable_sbuild-experimental
@@ -0,0 +1,2 @@
+#!/bin/sh
+sbuild --dist=experimental --extra-repository='deb http://deb.debian.org/debian experimental main contrib non-free' --build-dep-resolver=aspcud $@
diff --git a/dot_local/lib/sbuild/executable_update-chroots.sh b/dot_local/lib/sbuild/executable_update-chroots.sh
new file mode 100644
index 0000000..fdbcfc5
--- /dev/null
+++ b/dot_local/lib/sbuild/executable_update-chroots.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+TARGETS="unstable-amd64 unstable-i386 unstable-sh4"
+
+DEST=~/.cache/sbuild
+
+call_mmdebstrap() {
+ # call_mmdebstrap dist arch mirror
+ mmdebstrap \
+ --quiet \
+ --arch=$2 \
+ --variant=buildd \
+ --components=main,contrib,non-free \
+ --aptopt='Acquire::http::proxy "http://127.0.0.1:3142";' \
+ $1 "$DEST/$1-$2.tar" "$3"
+}
+
+get_mirror() {
+ case $1 in
+ sh4)
+ echo "http://ftp.ports.debian.org/debian-ports/"
+ ;;
+ *)
+ echo "http://deb.debian.org/debian"
+ ;;
+ esac
+}
+
+for target in $TARGETS; do
+ dist="$(echo "$target" | cut -d- -f1)"
+ arch="$(echo "$target" | cut -d- -f2)"
+ mirror="$(get_mirror $arch)"
+ call_mmdebstrap "$dist" "$arch" "$mirror"
+ if [ "$dist" = "unstable" ] && [ ! -L "$DEST/experimental-$arch.tar" ]; then
+ ln -s "$DEST/$dist-$arch.tar" "$DEST/experimental-$arch.tar"
+ fi
+done