config: small adjustments from elephant

This commit is contained in:
xeruf 2024-12-01 20:33:54 +01:00
parent 109db5cebb
commit de874c9604
3 changed files with 24 additions and 3 deletions

View File

@ -696,7 +696,7 @@ Version 2019-11-04 2021-02-16"
(setq org-export-with-tags nil
org-export-with-tasks 'done
org-export-with-todo-keywords nil
;org-export-with-toc nil
org-export-with-toc nil
org-export-with-section-numbers nil
org-export-with-broken-links 't
org-ascii-text-width 999
@ -737,7 +737,8 @@ Version 2019-11-04 2021-02-16"
(setq org-latex-pdf-process '("latexmk -shell-escape -pdfxe -pdfxelatex=\"xelatex --shell-escape\" -outdir=/tmp/latexmk -f -pdf %F && mv %f /tmp/latexmk && mv /tmp/latexmk/%b.pdf %o") ; https://emacs.stackexchange.com/a/48351
org-latex-packages-alist '(("" "fullpage") ("avoid-all" "widows-and-orphans") ("" "svg"))
org-latex-src-block-backend 'minted
org-latex-default-class "article4")
org-latex-default-class "article4"
org-latex-hyperref-template "\\hypersetup{\n pdfauthor={%a},\n pdftitle={%t},\n pdfkeywords={%k},pdfsubject={%d},\n pdfcreator={%c},\n pdflang={%L},\n colorlinks=true,\n urlcolor=blue,\n citecolor=green,\n linktocpage}\n")
(add-to-list 'org-latex-classes
'("article4" "\\documentclass{article} \\usepackage{titlesec} \\titleformat{\\paragraph}{\\normalfont\\normalsize\\itshape}{\\theparagraph}{1em}{} \\titlespacing*{\\paragraph}{0pt}{2ex plus 1ex minus .2ex}{.5ex plus .2ex}"
("\\section{%s}" . "\\section*{%s}")
@ -1245,6 +1246,10 @@ This is 0.3 red + 0.59 green + 0.11 blue and always between 0 and 255."
(ispell-hunspell-add-multi-dic ispell-dictionary)
)
; uncomment this to exit loading the config prematurely
;(with-current-buffer " *load*"
; (goto-char (point-max)))
;; Here are some additional functions/macros that could help you configure Doom:
;;
;; - `load!' for loading external *.el files relative to this one

View File

@ -382,6 +382,7 @@ alias pmd='pandoc -t markdown_strict-raw_html'
alias clr='diffr --colors refine-added:none:background:0x33,0x66,0x33:bold --colors added:none:background:0x33,0x44,0x33 --colors refine-removed:none:background:0x66,0x33,0x33:bold --colors removed:none:background:0x44,0x33,0x33 | less -F'
# Fossil
alias f='fossil'
alias fl='fossil timeline --format "[%d] %h %c <%a>"'
alias fs='fossil status'
@ -393,6 +394,20 @@ fuu() {
rm .fslckout
fossil open *.fossil --keep
}
# Like git log -p
flp() {
case "$1" in
(""|-*) true;;
(*) filepath="$1"; shift;;
esac
local prev
fossil timeline --format=%H -p "$filepath" "$@" | head -n -1 | while read -r revision; do
test -n "$revision" || continue
test -z "$prev" || fossil diff --from "$revision" --to "$prev" "$filepath"
printf "\033[7m%-${COLUMNS}s\033[27m" " Rev:$revision" | sed 's/ /─/g'
prev="$revision"
done | bat --plain --language diff
}
alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index'

View File

@ -26,7 +26,7 @@ showinfo() {
cmd="$1"
case "$cmd" in
(fwupdmgr|hunt|rdoc|gh|chordpro|bat|pdfjam|reflector|topgrade|r128gain|7z|kubectl|diffr|docker|jrnl|difft|wiked-diff|qpdf|ninja|qobuz-dl|beet)
(fwupdmgr|hunt|rdoc|gh|chordpro|pdfjam|reflector|topgrade|r128gain|7z|kubectl|diffr|docker|jrnl|difft|wiked-diff|qpdf|ninja|qobuz-dl|beet)
unbuffer "$@" --help | sed 's|^[^ ].*:|\0|' | $paginate;;
(sqlcmd) sqlcmd -?;;
(exa) "$0" eza;;
@ -37,6 +37,7 @@ case "$cmd" in
(rsgain) "$@" custom --help;;
(spectre|plantuml|java) unbuffer "$@" -help | $paginate;;
(mpw) "$@" -h 2>&1 | $paginate;;
(bat) { unbuffer "$@" --help && printf "\n\nLANGUAGES:\n" && "$@" --list-languages --color always; } | $paginate;;
(rails) { "$@" -H && "$@" --help; } | $paginate;;
(vlc) shift && unbuffer vlc --full-help "$@" | $paginate;;
(kdeconnect*) shift && kdeconnect-cli --help-all "$@" | $paginate;;