diff options
Diffstat (limited to 'dot_emacs')
| -rw-r--r-- | dot_emacs | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -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) |
