diff --git a/.config/doom/config.el b/.config/doom/config.el index 0be366d..766b100 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -96,6 +96,7 @@ (setq org-image-actual-width nil) ; Exporting - https://orgmode.org/manual/Export-Settings.html +(setq org-latex-pdf-export "latexmk -outdir=/tmp/latexmk -f -pdf %F; mv %f /tmp/latexmk; mv /tmp/latexmk/%b.pdf %o") (setq org-latex-packages-alist '(("margin=3cm" "geometry") ("avoid-all" "widows-and-orphans"))) (setq org-export-with-sub-superscripts nil) (setq org-export-with-tags nil) diff --git a/.config/shell/functions b/.config/shell/functions index 500b71a..514e306 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -75,7 +75,11 @@ edbin() { } alias l="ls -l --almost-all --human-readable --group-directories-first --file-type" -cd() { builtin cd "$@" && command ls --file-type --group-directories-first --color=always --format=vertical -w $COLUMNS | head -3 } +cd() { + test ! -e "$1" && test $# -eq 1 && cd $DATA/$1* && return + builtin cd "$1" && + command ls --file-type --group-directories-first --color=always --format=vertical -w $COLUMNS | head -3 +} swap() { mv -n $1 $1.tmp