Update
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,6 +36,7 @@ rime
|
|||||||
flycheck_*.el
|
flycheck_*.el
|
||||||
tabsession.el
|
tabsession.el
|
||||||
emacs.desktop
|
emacs.desktop
|
||||||
|
!alias
|
||||||
|
|
||||||
# generated by elisp packages at root
|
# generated by elisp packages at root
|
||||||
/.local/
|
/.local/
|
||||||
|
|||||||
@@ -3,29 +3,13 @@
|
|||||||
(TeX-add-style-hook
|
(TeX-add-style-hook
|
||||||
"elegantbook"
|
"elegantbook"
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
(setq TeX-command-extra-options
|
||||||
|
"-shell-escape")
|
||||||
(TeX-add-to-alist 'LaTeX-provided-class-options
|
(TeX-add-to-alist 'LaTeX-provided-class-options
|
||||||
'(("book" "a4paper" "oneside")))
|
'(("book" "a4paper" "oneside")))
|
||||||
(TeX-add-to-alist 'LaTeX-provided-package-options
|
(TeX-add-to-alist 'LaTeX-provided-package-options
|
||||||
'(("kvoptions" "") ("etoolbox" "") ("setspace" "") ("csquotes" "") ("hyperref" "") ("geometry" "") ("indentfirst" "") ("comment" "") ("mtpro2" "lite") ("iftex" "") ("newtxtext" "") ("helvet" "scaled=.90") ("fontspec" "no-math") ("ctex" "UTF8" "scheme=plain" "fontset=none") ("anyfontsize" "") ("newtxmath" "") ("esint" "") ("xcolor" "table") ("mwe" "") ("enumerate" "") ("enumitem" "shortlabels" "inline") ("caption" "labelfont={bf,color=structurecolor}") ("footmisc" "flushmargin" "stable") ("graphicx" "") ("amsmath" "") ("mathrsfs" "") ("amsfonts" "") ("amssymb" "") ("physics" "") ("physics2" "") ("mathtools" "") ("booktabs" "") ("multirow" "") ("tikz" "") ("fancyvrb" "") ("makecell" "") ("lipsum" "") ("hologo" "") ("titlesec" "center" "pagestyles") ("appendix" "title" "titletoc" "header") ("biblatex" "backend=\\ELEGANT@bibend" "citestyle=\\ELEGANT@citestyle" "bibstyle=\\ELEGANT@bibstyle") ("inputenc" "utf8") ("fontenc" "T1" "T2A") ("babel" "italian" "french" "dutch" "magyar" "spanish" "mongolian" "portuguese") ("luatexja" "") ("apptools" "") ("pifont" "") ("manfnt" "") ("bbding" "") ("tcolorbox" "many") ("amsthm" "") ("multicol" "") ("adforn" "") ("fancyhdr" "") ("listings" "") ("bm" "") ("calc" "") ("tocloft" "titles")))
|
'(("kvoptions" "") ("etoolbox" "") ("setspace" "") ("csquotes" "") ("hyperref" "") ("geometry" "") ("indentfirst" "") ("comment" "") ("mtpro2" "lite") ("iftex" "") ("newtxtext" "") ("helvet" "scaled=.90") ("fontspec" "no-math") ("ctex" "UTF8" "scheme=plain" "fontset=none") ("anyfontsize" "") ("newtxmath" "") ("esint" "") ("xcolor" "table") ("mwe" "") ("enumerate" "") ("enumitem" "shortlabels" "inline") ("caption" "labelfont={bf,color=structurecolor}") ("footmisc" "flushmargin" "stable") ("graphicx" "") ("amsmath" "") ("mathrsfs" "") ("amsfonts" "") ("amssymb" "") ("physics" "") ("physics2" "") ("mathtools" "") ("booktabs" "") ("multirow" "") ("tikz" "") ("fancyvrb" "") ("makecell" "") ("lipsum" "") ("hologo" "") ("titlesec" "center" "pagestyles") ("appendix" "title" "titletoc" "header") ("biblatex" "backend=\\ELEGANT@bibend" "citestyle=\\ELEGANT@citestyle" "bibstyle=\\ELEGANT@bibstyle") ("inputenc" "utf8") ("fontenc" "T1" "T2A") ("babel" "italian" "french" "dutch" "magyar" "spanish" "mongolian" "portuguese") ("luatexja" "") ("apptools" "") ("pifont" "") ("manfnt" "") ("bbding" "") ("tcolorbox" "many") ("amsthm" "") ("multicol" "") ("adforn" "") ("fancyhdr" "") ("listings" "") ("bm" "") ("calc" "") ("tocloft" "titles")))
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "lstlisting")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "SaveVerbatim")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "VerbatimOut")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "LVerbatim*")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "LVerbatim")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "BVerbatim*")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "BVerbatim")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "Verbatim*")
|
|
||||||
(add-to-list 'LaTeX-verbatim-environments-local "Verbatim")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
|
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "Verb*")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "Verb")
|
|
||||||
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
|
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
|
||||||
(TeX-run-style-hooks
|
(TeX-run-style-hooks
|
||||||
"latex2e"
|
"latex2e"
|
||||||
@@ -180,6 +164,12 @@
|
|||||||
'("problem" LaTeX-env-args ["argument"] 0)
|
'("problem" LaTeX-env-args ["argument"] 0)
|
||||||
'("exercise" LaTeX-env-args ["argument"] 0)
|
'("exercise" LaTeX-env-args ["argument"] 0)
|
||||||
'("example" LaTeX-env-args ["argument"] 0)
|
'("example" LaTeX-env-args ["argument"] 0)
|
||||||
|
'("theorem" LaTeX-env-args ["argument"] 0)
|
||||||
|
'("definition" LaTeX-env-args ["argument"] 0)
|
||||||
|
'("proposition" LaTeX-env-args ["argument"] 0)
|
||||||
|
'("lemma" LaTeX-env-args ["argument"] 0)
|
||||||
|
'("axiom" LaTeX-env-args ["argument"] 0)
|
||||||
|
'("corollary" LaTeX-env-args ["argument"] 0)
|
||||||
'("custom" 1)
|
'("custom" 1)
|
||||||
"note"
|
"note"
|
||||||
"proof"
|
"proof"
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
(setq package-enable-at-startup nil)
|
(setq package-enable-at-startup nil)
|
||||||
|
|
||||||
(setq native-comp-jit-compilation nil)
|
(setq native-comp-jit-compilation t)
|
||||||
(setq native-comp-async-report-pwarnings-errors nil)
|
(setq native-comp-async-report-warnings-errors nil)
|
||||||
|
|
||||||
(add-to-list 'load-path (expand-file-name "lisp/" user-emacs-directory))
|
(add-to-list 'load-path (expand-file-name "lisp/" user-emacs-directory))
|
||||||
(setq use-package-enable-imenu-support t)
|
(setq use-package-enable-imenu-support t)
|
||||||
|
|||||||
@@ -37,6 +37,13 @@
|
|||||||
(column-number-mode 1)
|
(column-number-mode 1)
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
|
||||||
|
;; (use-package delete-trailing
|
||||||
|
;; :ensure nil
|
||||||
|
;; :hook (text-mode delete-trailing-whitespace-mode)
|
||||||
|
;; :hook (prog-mode delete-trailing-whitespace-mode))
|
||||||
|
(add-hook 'prog-mode #'delete-trailing-whitespace-mode)
|
||||||
|
(add-hook 'text-mode #'delete-trailing-whitespace-mode)
|
||||||
|
|
||||||
(use-package subword
|
(use-package subword
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:diminish
|
:diminish
|
||||||
@@ -114,7 +121,8 @@
|
|||||||
:map lisp-interaction-mode-map
|
:map lisp-interaction-mode-map
|
||||||
("C-c C-d" . helpful-at-point)
|
("C-c C-d" . helpful-at-point)
|
||||||
:map helpful-mode-map
|
:map helpful-mode-map
|
||||||
("r" . remove-hook-at-point))
|
("r" . remove-hook-at-point)
|
||||||
|
("q" . kill-current-buffer))
|
||||||
:hook (helpful-mode . cursor-sensor-mode) ; for remove-advice button
|
:hook (helpful-mode . cursor-sensor-mode) ; for remove-advice button
|
||||||
:init
|
:init
|
||||||
(with-no-warnings
|
(with-no-warnings
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
:defines eshell-highlight-prompt
|
:defines eshell-highlight-prompt
|
||||||
:autoload (epe-theme-lambda epe-theme-dakrone epe-theme-pipeline)
|
:autoload (epe-theme-lambda epe-theme-dakrone epe-theme-pipeline)
|
||||||
:init
|
:init
|
||||||
(setq eshell-highlight-prompt nil
|
(setq eshell-highlight-prompt t
|
||||||
eshell-prompt-function #'epe-theme-lambda))
|
eshell-prompt-function #'epe-theme-lambda))
|
||||||
|
|
||||||
(use-package eshell-z
|
(use-package eshell-z
|
||||||
@@ -53,12 +53,9 @@
|
|||||||
:commands setup-esh-help-eldoc
|
:commands setup-esh-help-eldoc
|
||||||
:init (setup-esh-help-eldoc))
|
:init (setup-esh-help-eldoc))
|
||||||
|
|
||||||
;; (use-package vterm)
|
(use-package eshell-syntax-highlighting
|
||||||
|
:after eshell-mode
|
||||||
;; (use-package vterm-toggle
|
:hook (elpaca-after-init . eshell-syntax-highlighting-global-mode))
|
||||||
;; :bind ("C-`" . vterm-toggle)
|
|
||||||
;; :config
|
|
||||||
;; (define-key vterm-mode-map (kbd "C-`") #'vterm-toggle))
|
|
||||||
|
|
||||||
(use-package editorconfig
|
(use-package editorconfig
|
||||||
:diminish
|
:diminish
|
||||||
|
|||||||
@@ -193,8 +193,9 @@ the element after the #+HEADER: tag."
|
|||||||
:hook (org-latex-preview-mode . org-latex-preview-center-mode)
|
:hook (org-latex-preview-mode . org-latex-preview-center-mode)
|
||||||
:config
|
:config
|
||||||
;; Higher resolution when using dvipng
|
;; Higher resolution when using dvipng
|
||||||
(plist-put org-latex-preview-appearance-options :page-width 0.6)
|
(plist-put org-latex-preview-appearance-options :page-width 1.0)
|
||||||
(plist-put org-latex-preview-appearance-options :scale 1.8)
|
;; (plist-put org-latex-preview-appearance-options :margin 1)
|
||||||
|
(plist-put org-latex-preview-appearance-options :scale 2.0)
|
||||||
|
|
||||||
;; ;; Block C-n, C-p etc from opening up previews when using `org-latex-preview-mode'
|
;; ;; Block C-n, C-p etc from opening up previews when using `org-latex-preview-mode'
|
||||||
;; (setq org-latex-preview-mode-ignored-commands
|
;; (setq org-latex-preview-mode-ignored-commands
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
;; -*- lexical-binding: t; -*-
|
;; -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(use-package rg)
|
||||||
|
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
:diminish
|
:diminish
|
||||||
:functions childframe-completion-workable-p
|
:functions childframe-completion-workable-p
|
||||||
|
|||||||
@@ -10,6 +10,28 @@
|
|||||||
;; Recommended keymap prefix on Windows/Linux
|
;; Recommended keymap prefix on Windows/Linux
|
||||||
(define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map))
|
(define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map))
|
||||||
|
|
||||||
|
(use-package ibuffer-projectile
|
||||||
|
:config
|
||||||
|
(add-hook 'ibuffer-hook
|
||||||
|
(lambda ()
|
||||||
|
(ibuffer-projectile-set-filter-groups)
|
||||||
|
(unless (eq ibuffer-sorting-mode 'alphabetic)
|
||||||
|
(ibuffer-do-sort-by-alphabetic)))))
|
||||||
|
|
||||||
|
(use-package consult-projectile
|
||||||
|
:bind (([remap projectile-find-file] . consult-projectile-find-file)
|
||||||
|
([remap projectile-recentf] . consult-projectile-recentf)
|
||||||
|
([remap projectile-switch-project] . consult-projectile-switch-project)
|
||||||
|
([remap projectile-switch-to-buffer] . consult-projectile-switch-to-buffer)
|
||||||
|
([remap projectile-find-dir] . consult-projectile-find-dir)))
|
||||||
|
|
||||||
|
;; (use-package org-project-capture)
|
||||||
|
|
||||||
|
;; (use-package org-projectile
|
||||||
|
;; :config
|
||||||
|
;; (setq org-project-capture-default-backend
|
||||||
|
;; (make-instance 'org-project-capture-projectile-backend)))
|
||||||
|
|
||||||
(global-set-key (kbd "C-x C-b") #'ibuffer)
|
(global-set-key (kbd "C-x C-b") #'ibuffer)
|
||||||
|
|
||||||
;; (use-package beframe
|
;; (use-package beframe
|
||||||
|
|||||||
@@ -3,6 +3,4 @@
|
|||||||
# condition: (and (not (texmathp)) (quote auto))
|
# condition: (and (not (texmathp)) (quote auto))
|
||||||
# group: math
|
# group: math
|
||||||
# --
|
# --
|
||||||
\[
|
\[ $0 \]
|
||||||
$0
|
|
||||||
\]
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: greater or equal
|
# name: greater or equal
|
||||||
# key: geq
|
# key: >=
|
||||||
# condition: (and (texmathp) 'auto)
|
# condition: (and (texmathp) 'auto)
|
||||||
# group: math
|
# group: math
|
||||||
# --
|
# --
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: implied by
|
# name: implied by
|
||||||
# key: <=
|
# key: =<
|
||||||
# condition: (and (texmathp) 'auto)
|
# condition: (and (texmathp) 'auto)
|
||||||
# group: math
|
# group: math
|
||||||
# --
|
# --
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: less or equal
|
# name: less or equal
|
||||||
# key: leq
|
# key: <=
|
||||||
# condition: (and (texmathp) 'auto)
|
# condition: (and (texmathp) 'auto)
|
||||||
# group: math
|
# group: math
|
||||||
# --
|
# --
|
||||||
|
|||||||
@@ -4,4 +4,4 @@
|
|||||||
# condition: (and (texmathp) 'auto)
|
# condition: (and (texmathp) 'auto)
|
||||||
# group: math
|
# group: math
|
||||||
# --
|
# --
|
||||||
\\left\\langle $1 \\right\\rangle$0
|
\\left\\langle $1 \\right\\rangle
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# -*- mode: snippet -*-
|
|
||||||
# name: newline
|
|
||||||
# key: \\
|
|
||||||
# condition: (and (texmathp) 'auto)
|
|
||||||
# group: math
|
|
||||||
# --
|
|
||||||
\\\\
|
|
||||||
`(save-excursion (previous-line)(make-string (current-indentation) ?\s))`$0
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: not in
|
# name: not in
|
||||||
# key: notin
|
# key: !in
|
||||||
# condition: (and (texmathp) 'auto)
|
# condition: (and (texmathp) 'auto)
|
||||||
# group: math
|
# group: math
|
||||||
# --
|
# --
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: complex conjugate
|
# name: sqrt
|
||||||
# key: cj
|
# key: sq
|
||||||
# condition: (and (texmathp) 'auto)
|
|
||||||
# group: math
|
# group: math
|
||||||
|
# condition: (and (texmathp) 'auto)
|
||||||
# --
|
# --
|
||||||
^{\\star}$0
|
\\sqrt{$1}
|
||||||
Reference in New Issue
Block a user