From 2bfe738a6a2a7d5dad4d723d8abb27741c6ae140 Mon Sep 17 00:00:00 2001 From: Zelong Kuang Date: Wed, 11 Mar 2026 21:08:31 +1100 Subject: [PATCH] Update --- init.el | 2 + lisp/init-better-default.el | 1 + lisp/init-completion.el | 8 ++-- lisp/init-dired.el | 7 ++-- lisp/init-meow.el | 6 +++ lisp/init-org.el | 11 +++--- lisp/init-tex.el | 38 ++++++++++++++----- lisp/init-ui.el | 34 ++++++++--------- lisp/init-window.el | 12 +++--- lisp/init-workspace.el | 8 ++-- snippets/emacs-lisp-mode/github | 5 +++ snippets/latex-mode/Basic template | 2 +- snippets/latex-mode/Display Math | 3 +- snippets/latex-mode/begin | 7 ++++ snippets/latex-mode/cdot | 7 ++++ snippets/latex-mode/cdots | 7 ++++ snippets/latex-mode/cong | 7 ++++ snippets/latex-mode/defined as | 7 ++++ snippets/latex-mode/deg | 7 ++++ snippets/latex-mode/iff | 6 +++ snippets/latex-mode/infinity | 7 ++++ snippets/latex-mode/ker | 2 +- snippets/latex-mode/lrangle | 7 ++++ snippets/latex-mode/mapsto | 7 ++++ snippets/latex-mode/not equal | 2 +- snippets/latex-mode/set | 2 +- snippets/latex-mode/setminus | 7 ++++ snippets/latex-mode/star | 2 +- snippets/latex-mode/subseteq | 7 ++++ snippets/latex-mode/sum.yasnippet | 1 + snippets/latex-mode/template | 24 ++++++++++++ ...1f5c5ca4f89f6579617ee52f3b2944207a71e9.svg | 19 ++++++++++ ...6ff416ae1b0516c79cddbfeedd9438f485b226.svg | 19 ++++++++++ ...383807ec6e4760104b5e38e09b528bc5a840fe.svg | 20 ++++++++++ ...d6ecfa313c69fd5e9f4bb3a066d3593b0435de.svg | 20 ++++++++++ ...d6d7c683560465bb34f85228cf9eec682bee7c.svg | 21 ++++++++++ ...f3e9644e9d5322e84f9375ec3d1981a811f67e.svg | 18 +++++++++ ...33e0f561b584df4c74d3c989b66c76f405291a.svg | 18 +++++++++ ...549a9c12a3742be8e18b143c16dfd898504442.svg | 13 +++++++ ...18ee540bd2b90407018b172941d3f8a030a41a.svg | 13 +++++++ ...5fbfb4f24e87a98a570fd47c260cb2fcd684eb.svg | 25 ++++++++++++ 41 files changed, 385 insertions(+), 54 deletions(-) create mode 100644 snippets/emacs-lisp-mode/github create mode 100644 snippets/latex-mode/begin create mode 100644 snippets/latex-mode/cdot create mode 100644 snippets/latex-mode/cdots create mode 100644 snippets/latex-mode/cong create mode 100644 snippets/latex-mode/defined as create mode 100644 snippets/latex-mode/deg create mode 100644 snippets/latex-mode/iff create mode 100644 snippets/latex-mode/infinity create mode 100644 snippets/latex-mode/lrangle create mode 100644 snippets/latex-mode/mapsto create mode 100644 snippets/latex-mode/setminus create mode 100644 snippets/latex-mode/subseteq create mode 100644 snippets/latex-mode/template create mode 100644 xenops/cache/031f5c5ca4f89f6579617ee52f3b2944207a71e9.svg create mode 100644 xenops/cache/0a6ff416ae1b0516c79cddbfeedd9438f485b226.svg create mode 100644 xenops/cache/1a383807ec6e4760104b5e38e09b528bc5a840fe.svg create mode 100644 xenops/cache/28d6ecfa313c69fd5e9f4bb3a066d3593b0435de.svg create mode 100644 xenops/cache/2ad6d7c683560465bb34f85228cf9eec682bee7c.svg create mode 100644 xenops/cache/a0f3e9644e9d5322e84f9375ec3d1981a811f67e.svg create mode 100644 xenops/cache/c033e0f561b584df4c74d3c989b66c76f405291a.svg create mode 100644 xenops/cache/c8549a9c12a3742be8e18b143c16dfd898504442.svg create mode 100644 xenops/cache/e418ee540bd2b90407018b172941d3f8a030a41a.svg create mode 100644 xenops/cache/f35fbfb4f24e87a98a570fd47c260cb2fcd684eb.svg diff --git a/init.el b/init.el index 88ed8fd..b590a00 100644 --- a/init.el +++ b/init.el @@ -12,6 +12,8 @@ (require 'init-completion) (require 'init-input) +;; (require 'init-meow) + (require 'init-edit) (require 'init-window) (require 'init-ui) diff --git a/lisp/init-better-default.el b/lisp/init-better-default.el index 0f65ae2..de6cc63 100644 --- a/lisp/init-better-default.el +++ b/lisp/init-better-default.el @@ -35,6 +35,7 @@ (setq display-line-numbers-type 'relative) ) (column-number-mode 1) +(scroll-bar-mode -1) (use-package subword :ensure nil diff --git a/lisp/init-completion.el b/lisp/init-completion.el index ff7922d..0f453eb 100644 --- a/lisp/init-completion.el +++ b/lisp/init-completion.el @@ -255,10 +255,10 @@ (advice-add #'persistent-scratch-save :before #'corfu-quit) (add-to-list 'corfu-continue-commands #'corfu-move-to-minibuffer)) -(use-package nerd-icons-corfu - :init - (with-eval-after-load 'corfu - (add-to-list 'corfu-margin-formatters #'nerd-icons-corfu-formatter))) +;; (use-package nerd-icons-corfu +;; :init +;; (with-eval-after-load 'corfu +;; (add-to-list 'corfu-margin-formatters #'nerd-icons-corfu-formatter))) (use-package wgrep :commands wgrep-change-to-wgrep-mode diff --git a/lisp/init-dired.el b/lisp/init-dired.el index c941b19..0ed76b8 100644 --- a/lisp/init-dired.el +++ b/lisp/init-dired.el @@ -8,18 +8,19 @@ :config ;; Always delete and copy recursively (setq dired-recursive-deletes 'always - dired-recursive-copies 'always) + dired-recursive-copies 'always + dired-kill-when-opening-new-dired-buffer t) ;; Show directory first (setq dired-listing-switches "-alh --group-directories-first" dired-use-ls-dired t) - + ;; Colorful dired (use-package diredfl :diminish :hook dired-mode :hook dirvish-directory-view-mode) - + ;; Extra Dired functionality (use-package dired-aux :ensure nil)) diff --git a/lisp/init-meow.el b/lisp/init-meow.el index faec6d8..d32297c 100644 --- a/lisp/init-meow.el +++ b/lisp/init-meow.el @@ -88,6 +88,12 @@ :hook (elpaca-after-init . meow-global-mode) :config (meow-setup) + (setq meow-replace-state-name-list + '((normal . "") + (motion . "") + (keypad . "") + (insert . "") + (beacon . ""))) (setq meow-cursor-type-normal 'bar)) (provide 'init-meow) diff --git a/lisp/init-org.el b/lisp/init-org.el index 5683d7b..63ebb28 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -7,12 +7,12 @@ (use-package org :defer - :ensure `(org :repo "https://code.tecosaur.net/tec/org-mode.git/" + :ensure (org :repo "https://code.tecosaur.net/tec/org-mode.git/" :branch "dev") :hook (org-mode . org-cdlatex-mode) :hook (org-mode . org-indent-mode) :hook (org-mode . visual-line-mode) - + :pretty-hydra ;; See `org-structure-template-alist' ((:color blue :quit-key ("q" "C-g")) @@ -91,7 +91,7 @@ the element after the #+HEADER: tag." (setq org-startup-indented t) (setq org-pretty-entities t org-pretty-entities-include-sub-superscripts nil) - + (setq org-default-note-file (expand-file-name "notes.org" org-directory) org-capture-templates '(("t" "Personal todo" entry @@ -103,10 +103,10 @@ the element after the #+HEADER: tag." ("j" "Journal" entry (file+olp+datetree "diary.org") "* %U %?\n%i\n%a" :prepend t)) - + org-todo-keywords '((sequence "TODO(t)" "IN-PROGRESS(i)" "|" "DONE(d)" "NO(n)"))) - + (add-to-list 'org-src-block-faces '("latex" (:inherit default :extend t))) (add-hook 'org-after-refile-insert-hook (defun save-buffer-after-capture () @@ -194,6 +194,7 @@ the element after the #+HEADER: tag." :config (plist-put org-latex-preview-appearance-options :page-width 0.8) + ;; ;; Block C-n, C-p etc from opening up previews when using `org-latex-preview-mode' ;; (setq org-latex-preview-mode-ignored-commands ;; '(next-line previous-line mwheel-scroll diff --git a/lisp/init-tex.el b/lisp/init-tex.el index a119117..250834b 100644 --- a/lisp/init-tex.el +++ b/lisp/init-tex.el @@ -2,7 +2,7 @@ (use-package latex :ensure (auctex :pre-build (("./autogen.sh") - ("./configure" "--without-texmf-dir" "--with-lispdir=.") + ("./configure" "--without-texmf-dir" "--with-lispdir=.") ("make"))) :mode (("\\.tex\\'" . LaTeX-mode)) :hook (LaTeX-mode . prettify-symbols-mode) @@ -11,11 +11,19 @@ :bind (:map LaTeX-mode-map ("C-S-e" . latex-math-from-calc)) :custom + (TeX-auto-save t) (TeX-parse-self t) (TeX-PDF-mode t) (TeX-DVI-via-PDFTeX t) + (TeX-clean-confirm nil) + (TeX-save-query nil) + (TeX-source-correlate-mode t) + (TeX-source-correlate-method 'synctex) + (TeX-display-help t) + (TeX-show-compilation nil) :config - (setq-default TeX-command-default "LaTeXMk") + (add-hook 'LaTeX-mode-hook (lambda () + (setq TeX-command-default "LaTeXMk"))) ;; Format math as a Latex string with Calc (add-hook 'LaTeX-mode-hook #'eglot-ensure) (defun latex-math-from-calc () @@ -30,29 +38,41 @@ calc-prefer-frac t calc-angle-mode rad))))) (t (let ((l (thing-at-point 'line))) - (end-of-line 1) (kill-line 0) + (end-of-line 1) (kill-line 0) (insert (calc-eval `(,l calc-language latex calc-prefer-frac t calc-angle-mode rad))))))) - (setq TeX-view-program-selection '((output-pdf "PDF Tools"))) + ;; (setq TeX-view-program-selection '((output-pdf "PDF Tools"))) (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) (with-eval-after-load 'eglot - (add-to-list 'eglot-server-programs '((LaTeX-mode latex-mode) "texlab"))) -) + (add-to-list 'eglot-server-programs '((LaTeX-mode latex-mode) "texlab")))) (use-package cdlatex + :diminish :ensure t :hook (LaTeX-mode . turn-on-cdlatex) - :bind (:map cdlatex-mode-map - ("" . cdlatex-tab)) + ;; :bind (:map cdlatex-mode-map + ;; ("" . cdlatex-tab)) :config (setq cdlatex-math-symbol-alist '((?f ("\\varphi" "\\phi")) (?i ("\\iota")) )) (setq cdlatex-math-modify-alist '((?f "\\mathbb" nil t nil nil))) - (cdlatex-reset-mode)) + (defun tjh/cdlatex-yas-expand () + "Resolve the conflict between cdlatex and yasnippet. When this +function returns true, the default `cdlatex-tab` will not be +executed. The effect of function is to first try yasnippet +expansion, then cdlatex expansion." + (interactive) + (if (or (bound-and-true-p yas-minor-mode) + (bound-and-true-p yas-global-mode)) + (if (yas-expand) + t + nil) + nil)) + (add-hook 'cdlatex-tab-hook 'tjh/cdlatex-yas-expand)) (use-package texpresso :defer nil diff --git a/lisp/init-ui.el b/lisp/init-ui.el index 48bfd96..bd0639c 100644 --- a/lisp/init-ui.el +++ b/lisp/init-ui.el @@ -19,15 +19,15 @@ (use-package solaire-mode :hook (elpaca-after-init . solaire-global-mode)) -;; (use-package standard-themes :demand t) +(use-package standard-themes :demand t) (use-package ef-themes :demand t) (use-package doric-themes :demand t :bind ("" . doric-load-random) :init - (mapc #'disable-theme custom-enabled-themes) (defun doric-load-random () (interactive) + (mapc #'disable-theme custom-enabled-themes) (let* ((themes '(doric-fire doric-oak doric-jade @@ -72,14 +72,13 @@ (use-package rainbow-mode :hook elpaca-after-init) -;; (use-package doom-modeline -;; :hook (elpaca-after-ninit . doom-modeline-mode) -;; :config -;; (setq doom-modeline-support-imenu t -;; doom-modeline-height 30 -;; doom-modeline-bar-width 8)) -;; (use-package minions -;; :hook elpaca-after-init) +(use-package doom-modeline + :hook (elpaca-after-init . doom-modeline-mode) + :config + (setq doom-modeline-support-imenu t + doom-modeline-height 30 + doom-modeline-buffer-file-name-style 'buffer-name + doom-modeline-enable-word-count t)) (use-package hide-mode-line :autoload turn-off-hide-mode-line-mode @@ -108,20 +107,21 @@ (pcase system-type ('darwin ; macOS - (set-face-attribute 'default nil :font "Sarasa Term SC-20") ; 20 * 1.5 - (set-face-attribute 'variable-pitch nil :font "Bookerly-20" :weight 'light) - (set-face-attribute 'fixed-pitch nil :font "Sarasa Term SC-20") - + (set-face-attribute 'default nil :font "Sarasa Term SC-22") ; 20 * 1.5 + (set-face-attribute 'variable-pitch nil :font "Bookerly-22" :weight 'light) + (set-face-attribute 'fixed-pitch nil :font "Sarasa Term SC-22") + (add-to-list 'default-frame-alist '(height . 53)) (add-to-list 'default-frame-alist '(width . 120))) - + ('gnu/linux ; Linux (including Debian) (set-face-attribute 'variable-pitch nil :font "Sarasa Term SC-14") ; 20 * 1.5 (add-to-list 'default-frame-alist '(height . 40)) (add-to-list 'default-frame-alist '(width . 90)))) -;; (use-package mixed-pitch -;; :hook org-mode) +(use-package mixed-pitch + :hook org-mode + :hook LaTeX-mode) (use-package diff-hl :init (global-diff-hl-mode)) diff --git a/lisp/init-window.el b/lisp/init-window.el index 7be583f..a546aef 100644 --- a/lisp/init-window.el +++ b/lisp/init-window.el @@ -17,24 +17,24 @@ "*esh command on file*"))) (defun split-window-horizontally-instead () - "Kill other windows and split the current window is on the top half of the frame." + "Kill other windows and split the current window horizontally." (interactive) (let* ((next-window (next-window)) (other-buffer (and next-window (window-buffer next-window)))) (delete-other-windows) (split-window-horizontally) (when other-buffer - (set-window-buffer next-window other-buffer)))) + (set-window-buffer (next-window) other-buffer)))) (defun split-window-vertically-instead () - "Kill other windows and split the current window is on left half of the frame." + "Kill other windows and split the current window vertically." (interactive) (let* ((next-window (next-window)) (other-buffer (and next-window (window-buffer next-window)))) (delete-other-windows) (split-window-vertically) (when other-buffer - (set-window-buffer next-window other-buffer)))) + (set-window-buffer (next-window) other-buffer)))) (use-package ace-window :hook (emacs-startup . ace-window-display-mode) @@ -133,7 +133,7 @@ "\\*vc-.*\\**" "\\*diff-hl\\**" "^\\*macro expansion\\**" - + "\\*Agenda Commands\\*" "\\*Org Select\\*" "\\*Capture\\*" "^CAPTURE-.*\\.org*" "\\*Gofmt Errors\\*$" "\\*Go Test\\*$" godoc-mode "\\*docker-.+\\*" @@ -146,7 +146,7 @@ (display-buffer-reuse-window display-buffer-in-direction) (direction . right) (window-width . 0.5))) - + :config (with-no-warnings (defun my-popper-fit-window-height (win) diff --git a/lisp/init-workspace.el b/lisp/init-workspace.el index de5cb14..764c435 100644 --- a/lisp/init-workspace.el +++ b/lisp/init-workspace.el @@ -3,6 +3,8 @@ (use-package project) +(global-set-key (kbd "C-x C-b") #'ibuffer) + ;; (use-package tab-bar ;; :ensure nil ;; :init @@ -14,8 +16,6 @@ ;; (setq tab-bar-tab-hints t)) -(global-set-key (kbd "C-x C-b") #'ibuffer) - ;; (use-package tabspaces ;; :functions tabspaces-mode ;; :commands (tabspaces-switch-or-create-workspace @@ -39,7 +39,7 @@ ;; (tabspaces-session-auto-restore t) ;; (tabspaces-keymap-prefix "C-c o") ;; (tab-bar-new-tab-choice "default") - + ;; (with-eval-after-load 'consult ;; ;; hide full buffer list (still available with "b" prefix) ;; (consult-customize consult--source-buffer :hidden nil :default nil) @@ -58,7 +58,7 @@ ;; "Set workspace buffer list for consult-buffer.") ;; (add-to-list 'consult-buffer-sources 'consult--source-workspace))) - + (use-package beframe :hook elpaca-after-init :bind (("C-x b" . beframe-switch-buffer) diff --git a/snippets/emacs-lisp-mode/github b/snippets/emacs-lisp-mode/github new file mode 100644 index 0000000..d70f168 --- /dev/null +++ b/snippets/emacs-lisp-mode/github @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: github +# key: github +# -- +($1 :type git :host github :repo "$2/${1:repo}")$0 \ No newline at end of file diff --git a/snippets/latex-mode/Basic template b/snippets/latex-mode/Basic template index 6492e8a..2ddd4b1 100644 --- a/snippets/latex-mode/Basic template +++ b/snippets/latex-mode/Basic template @@ -1,4 +1,4 @@ -# key: template +# key: templatee # name: Basic template # group: skeleton # -- diff --git a/snippets/latex-mode/Display Math b/snippets/latex-mode/Display Math index 3e830b0..594bd34 100644 --- a/snippets/latex-mode/Display Math +++ b/snippets/latex-mode/Display Math @@ -3,4 +3,5 @@ # condition: (and (not (texmathp)) (quote auto)) # group: math # -- -\[ `(save-excursion (previous-line)(make-string (current-indentation) ?\s))`$0 \] + +\[ $0 \] diff --git a/snippets/latex-mode/begin b/snippets/latex-mode/begin new file mode 100644 index 0000000..038ced0 --- /dev/null +++ b/snippets/latex-mode/begin @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# key : beg +# name : \begin{} ... \end{} +# -- +\begin{${1:$$(yas-choose-value (mapcar 'car LaTeX-environment-list))}} + $0 +\end{$1} \ No newline at end of file diff --git a/snippets/latex-mode/cdot b/snippets/latex-mode/cdot new file mode 100644 index 0000000..9b64fa1 --- /dev/null +++ b/snippets/latex-mode/cdot @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cdot +# key: c. +# group: math +# condition: (and (texmathp) 'auto) +# -- +\\cdot \ No newline at end of file diff --git a/snippets/latex-mode/cdots b/snippets/latex-mode/cdots new file mode 100644 index 0000000..6be1a8c --- /dev/null +++ b/snippets/latex-mode/cdots @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cdots +# key: \cdot. +# group: math +# condition: (and (texmathp) 'auto) +# -- +\\cdots \ No newline at end of file diff --git a/snippets/latex-mode/cong b/snippets/latex-mode/cong new file mode 100644 index 0000000..a64633a --- /dev/null +++ b/snippets/latex-mode/cong @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cong +# key: ~= +# condition: (and (texmathp) 'auto) +# group: math +# -- +\\cong \ No newline at end of file diff --git a/snippets/latex-mode/defined as b/snippets/latex-mode/defined as new file mode 100644 index 0000000..ad51c2b --- /dev/null +++ b/snippets/latex-mode/defined as @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defined as +# key: := +# group: math +# condition: (and (texmathp) 'auto) +# -- +\coloneqq \ No newline at end of file diff --git a/snippets/latex-mode/deg b/snippets/latex-mode/deg new file mode 100644 index 0000000..dbf3287 --- /dev/null +++ b/snippets/latex-mode/deg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: deg +# key: deg +# group: math +# condition: (and (texmathp) 'auto) +# -- +\\deg \ No newline at end of file diff --git a/snippets/latex-mode/iff b/snippets/latex-mode/iff new file mode 100644 index 0000000..c2db0cf --- /dev/null +++ b/snippets/latex-mode/iff @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: iff +# key: iff +# group: text +# -- +if and only if \ No newline at end of file diff --git a/snippets/latex-mode/infinity b/snippets/latex-mode/infinity new file mode 100644 index 0000000..fa6585b --- /dev/null +++ b/snippets/latex-mode/infinity @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: infinity +# key: oo +# group: math +# condition: (and (texmathp) 'auto) +# -- +\infty \ No newline at end of file diff --git a/snippets/latex-mode/ker b/snippets/latex-mode/ker index 4383879..9d49c83 100644 --- a/snippets/latex-mode/ker +++ b/snippets/latex-mode/ker @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: arctan +# name: ker # key: ker # group: math # condition: (and (texmathp) 'auto) diff --git a/snippets/latex-mode/lrangle b/snippets/latex-mode/lrangle new file mode 100644 index 0000000..d742715 --- /dev/null +++ b/snippets/latex-mode/lrangle @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: \left\langle ... \right\rangle +# key: lra +# condition: (and (texmathp) 'auto) +# group: math +# -- +\\left\\langle $1 \\right\\rangle$0 \ No newline at end of file diff --git a/snippets/latex-mode/mapsto b/snippets/latex-mode/mapsto new file mode 100644 index 0000000..ecd41b6 --- /dev/null +++ b/snippets/latex-mode/mapsto @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: mapsto +# key: mto +# group: math +# condition: (and (texmathp) 'auto) +# -- +\\mapsto \ No newline at end of file diff --git a/snippets/latex-mode/not equal b/snippets/latex-mode/not equal index c77d4ac..50b21b0 100644 --- a/snippets/latex-mode/not equal +++ b/snippets/latex-mode/not equal @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: not equal -# key: neq +# key: != # condition: (and (texmathp) 'auto) # group: math # -- diff --git a/snippets/latex-mode/set b/snippets/latex-mode/set index efc56ff..9f795a2 100644 --- a/snippets/latex-mode/set +++ b/snippets/latex-mode/set @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: set -# key: set +# key: sett # condition: (and (texmathp) 'auto) # group: math # -- diff --git a/snippets/latex-mode/setminus b/snippets/latex-mode/setminus new file mode 100644 index 0000000..f3554ad --- /dev/null +++ b/snippets/latex-mode/setminus @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: setminus +# key: set- +# group: math +# condition: (and (texmathp) 'auto) +# -- +\setminus \ No newline at end of file diff --git a/snippets/latex-mode/star b/snippets/latex-mode/star index 3f0309c..c08fd9f 100644 --- a/snippets/latex-mode/star +++ b/snippets/latex-mode/star @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # name: star -# key: star +# key: ** # group: math # condition: (and (texmathp) 'auto) # -- diff --git a/snippets/latex-mode/subseteq b/snippets/latex-mode/subseteq new file mode 100644 index 0000000..f3d34b9 --- /dev/null +++ b/snippets/latex-mode/subseteq @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: subseteq +# key: \subset= +# group: math +# condition: (and (texmathp) 'auto) +# -- +\subseteq \ No newline at end of file diff --git a/snippets/latex-mode/sum.yasnippet b/snippets/latex-mode/sum.yasnippet index 9ef9341..4a40689 100644 --- a/snippets/latex-mode/sum.yasnippet +++ b/snippets/latex-mode/sum.yasnippet @@ -3,5 +3,6 @@ # key: sum # group: math # name: \sum_{n}^{} +# condition: (and (texmathp) 'auto) # -- \sum_{$1}^{$2}$0 \ No newline at end of file diff --git a/snippets/latex-mode/template b/snippets/latex-mode/template new file mode 100644 index 0000000..181e76d --- /dev/null +++ b/snippets/latex-mode/template @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# name: template +# key: template +# -- +\documentclass[12pt]{/Users/zelongk/Documents/latex/elegantbook} + +\title{$1} + +\author{`user-full-name`} +\institute{Whichever-you-like university} + +\date{\today} + +\begin{document} +\maketitle +% logo +% \centerline{\includegraphics[width=0.2\textwidth]{logo-blue}} + +\newpage +\tableofcontents + +$0 + +\end{document} \ No newline at end of file diff --git a/xenops/cache/031f5c5ca4f89f6579617ee52f3b2944207a71e9.svg b/xenops/cache/031f5c5ca4f89f6579617ee52f3b2944207a71e9.svg new file mode 100644 index 0000000..ec0fdad --- /dev/null +++ b/xenops/cache/031f5c5ca4f89f6579617ee52f3b2944207a71e9.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/0a6ff416ae1b0516c79cddbfeedd9438f485b226.svg b/xenops/cache/0a6ff416ae1b0516c79cddbfeedd9438f485b226.svg new file mode 100644 index 0000000..da8be62 --- /dev/null +++ b/xenops/cache/0a6ff416ae1b0516c79cddbfeedd9438f485b226.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/1a383807ec6e4760104b5e38e09b528bc5a840fe.svg b/xenops/cache/1a383807ec6e4760104b5e38e09b528bc5a840fe.svg new file mode 100644 index 0000000..47e0ddc --- /dev/null +++ b/xenops/cache/1a383807ec6e4760104b5e38e09b528bc5a840fe.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/28d6ecfa313c69fd5e9f4bb3a066d3593b0435de.svg b/xenops/cache/28d6ecfa313c69fd5e9f4bb3a066d3593b0435de.svg new file mode 100644 index 0000000..1b1bd55 --- /dev/null +++ b/xenops/cache/28d6ecfa313c69fd5e9f4bb3a066d3593b0435de.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/2ad6d7c683560465bb34f85228cf9eec682bee7c.svg b/xenops/cache/2ad6d7c683560465bb34f85228cf9eec682bee7c.svg new file mode 100644 index 0000000..da995fb --- /dev/null +++ b/xenops/cache/2ad6d7c683560465bb34f85228cf9eec682bee7c.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/a0f3e9644e9d5322e84f9375ec3d1981a811f67e.svg b/xenops/cache/a0f3e9644e9d5322e84f9375ec3d1981a811f67e.svg new file mode 100644 index 0000000..f3e215b --- /dev/null +++ b/xenops/cache/a0f3e9644e9d5322e84f9375ec3d1981a811f67e.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/c033e0f561b584df4c74d3c989b66c76f405291a.svg b/xenops/cache/c033e0f561b584df4c74d3c989b66c76f405291a.svg new file mode 100644 index 0000000..f3e215b --- /dev/null +++ b/xenops/cache/c033e0f561b584df4c74d3c989b66c76f405291a.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/c8549a9c12a3742be8e18b143c16dfd898504442.svg b/xenops/cache/c8549a9c12a3742be8e18b143c16dfd898504442.svg new file mode 100644 index 0000000..63cff9e --- /dev/null +++ b/xenops/cache/c8549a9c12a3742be8e18b143c16dfd898504442.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/e418ee540bd2b90407018b172941d3f8a030a41a.svg b/xenops/cache/e418ee540bd2b90407018b172941d3f8a030a41a.svg new file mode 100644 index 0000000..ff4a34a --- /dev/null +++ b/xenops/cache/e418ee540bd2b90407018b172941d3f8a030a41a.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/xenops/cache/f35fbfb4f24e87a98a570fd47c260cb2fcd684eb.svg b/xenops/cache/f35fbfb4f24e87a98a570fd47c260cb2fcd684eb.svg new file mode 100644 index 0000000..b75e653 --- /dev/null +++ b/xenops/cache/f35fbfb4f24e87a98a570fd47c260cb2fcd684eb.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file