diff --git a/auctex/auto/elegantbook.el b/auctex/auto/elegantbook.el new file mode 100644 index 0000000..faa43c5 --- /dev/null +++ b/auctex/auto/elegantbook.el @@ -0,0 +1,245 @@ +;; -*- lexical-binding: t; -*- + +(TeX-add-style-hook + "elegantbook" + (lambda () + (TeX-add-to-alist 'LaTeX-provided-class-options + '(("book" "a4paper" "oneside"))) + (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"))) + (add-to-list 'LaTeX-verbatim-environments-local "Verbatim") + (add-to-list 'LaTeX-verbatim-environments-local "Verbatim*") + (add-to-list 'LaTeX-verbatim-environments-local "BVerbatim") + (add-to-list 'LaTeX-verbatim-environments-local "BVerbatim*") + (add-to-list 'LaTeX-verbatim-environments-local "LVerbatim") + (add-to-list 'LaTeX-verbatim-environments-local "LVerbatim*") + (add-to-list 'LaTeX-verbatim-environments-local "VerbatimOut") + (add-to-list 'LaTeX-verbatim-environments-local "SaveVerbatim") + (add-to-list 'LaTeX-verbatim-environments-local "lstlisting") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "path") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "url") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href") + (add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline") + (add-to-list 'LaTeX-verbatim-macros-with-delims-local "path") + (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 "lstinline") + (TeX-run-style-hooks + "latex2e" + "kvoptions" + "etoolbox" + "book" + "bk10" + "setspace" + "csquotes" + "hyperref" + "geometry" + "indentfirst" + "comment" + "mtpro2" + "iftex" + "newtxtext" + "helvet" + "fontspec" + "ctex" + "anyfontsize" + "newtxmath" + "esint" + "xcolor" + "mwe" + "enumerate" + "enumitem" + "caption" + "footmisc" + "graphicx" + "amsmath" + "mathrsfs" + "amsfonts" + "amssymb" + "physics" + "physics2" + "mathtools" + "booktabs" + "multicol" + "multirow" + "tikz" + "fancyvrb" + "makecell" + "lipsum" + "hologo" + "titlesec" + "appendix" + "biblatex" + "babel" + "inputenc" + "fontenc" + "luatexja" + "apptools" + "pifont" + "manfnt" + "bbding" + "tcolorbox" + "amsthm" + "adforn" + "fancyhdr" + "listings" + "bm" + "calc" + "tocloft") + (TeX-add-symbols + '("elegantnewtheorem" "Text" "Text" "Text") + '("hltext" 2) + '("hlmath" 2) + '("numberline" 1) + '("datechange" 2) + '("dateinfoline" 2) + '("chaptermark" 1) + '("sectionmark" 1) + '("circled" 1) + '("tabref" 1) + '("figref" 1) + '("bioinfo" 2) + '("question" 1) + '("cover" 1) + '("logo" 1) + '("extrainfo" 1) + '("version" 1) + '("institute" 1) + '("subtitle" 1) + '("email" 1) + '("mailto" 1) + '("ekv" 1) + "songti" + "heiti" + "kaishu" + "fangsong" + "cbfseries" + "citshape" + "cnormal" + "cfs" + "ebibname" + "authorname" + "institutename" + "datename" + "versionname" + "notename" + "definitionname" + "theoremname" + "axiomname" + "postulatename" + "lemmaname" + "propositionname" + "corollaryname" + "examplename" + "instancename" + "problemname" + "exercisename" + "remarkname" + "assumptionname" + "conclusionname" + "solutionname" + "propertyname" + "introductionname" + "updatename" + "historyname" + "beforechap" + "afterchap" + "proofname" + "problemsetname" + "eitemi" + "eitemii" + "eitemiii" + "xchaptertitle" + "ELEGANT" + "dollar" + "bmmax" + "listofchanges" + "definedas" + "Lis" + "qed" + "oldencodingdefault" + "oldrmdefault" + "oldsfdefault" + "oldttdefault" + "encodingdefault" + "rmdefault" + "sfdefault" + "ttdefault" + "Bbbk" + "sumop" + "prodop" + "style" + "openbox") + (LaTeX-add-environments + "relsec" + '("problemset" LaTeX-env-args ["argument"] 0) + '("introduction" LaTeX-env-args ["argument"] 0) + '("problem" LaTeX-env-args ["argument"] 0) + '("exercise" LaTeX-env-args ["argument"] 0) + '("example" LaTeX-env-args ["argument"] 0) + '("custom" 1) + "note" + "theorem" + "lemma" + "proposition" + "corollary" + "definition" + "remark" + "proof" + "solution" + "remark" + "assumption" + "conclusion" + "property" + "change") + (LaTeX-add-pagestyles + "plain") + (LaTeX-add-counters + "exam" + "exer" + "prob") + (LaTeX-add-comment-incl-excls + '("solution" "exclude") + '("proof" "exclude") + '("inline" "exclude")) + (LaTeX-add-xcolor-definecolors + "structurecolor" + "main" + "second" + "third" + "structure1" + "main1" + "second1" + "third1" + "structure2" + "main2" + "second2" + "third2" + "structure3" + "main3" + "second3" + "third3" + "structure4" + "main4" + "second4" + "third4" + "structure5" + "main5" + "second5" + "third5" + "winered" + "bule" + "coverlinecolor" + "lightgrey" + "frenchplum") + (LaTeX-add-amsthm-newtheoremstyles + "defstyle" + "thmstyle" + "prostyle") + (LaTeX-add-listings-lstdefinestyles + "mystyle")) + :latex) + diff --git a/auctex/elegantbook.el b/auctex/elegantbook.el new file mode 100644 index 0000000..1568db5 --- /dev/null +++ b/auctex/elegantbook.el @@ -0,0 +1,239 @@ +;; -*- lexical-binding: t; -*- + +(TeX-add-style-hook + "elegantbook" + (lambda () + (TeX-add-to-alist 'LaTeX-provided-class-options + '(("book" "a4paper" "oneside"))) + (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"))) + (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-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") + (TeX-run-style-hooks + "latex2e" + "kvoptions" + "etoolbox" + "book" + "bk10" + "setspace" + "csquotes" + "hyperref" + "geometry" + "indentfirst" + "comment" + "mtpro2" + "iftex" + "newtxtext" + "helvet" + "fontspec" + "ctex" + "anyfontsize" + "newtxmath" + "esint" + "xcolor" + "mwe" + "enumerate" + "enumitem" + "caption" + "footmisc" + "graphicx" + "amsmath" + "mathrsfs" + "amsfonts" + "amssymb" + "physics" + "physics2" + "mathtools" + "booktabs" + "multicol" + "multirow" + "tikz" + "fancyvrb" + "makecell" + "lipsum" + "hologo" + "titlesec" + "appendix" + "biblatex" + "babel" + "inputenc" + "fontenc" + "luatexja" + "apptools" + "pifont" + "manfnt" + "bbding" + "tcolorbox" + "amsthm" + "adforn" + "fancyhdr" + "listings" + "bm" + "calc" + "tocloft") + (TeX-add-symbols + '("elegantnewtheorem" "Text" "Text" "Text") + '("hltext" 2) + '("hlmath" 2) + '("numberline" 1) + '("datechange" 2) + '("dateinfoline" 2) + '("chaptermark" 1) + '("sectionmark" 1) + '("circled" 1) + '("tabref" 1) + '("figref" 1) + '("bioinfo" 2) + '("question" 1) + '("cover" 1) + '("logo" 1) + '("extrainfo" 1) + '("version" 1) + '("institute" 1) + '("subtitle" 1) + '("email" 1) + '("mailto" 1) + '("ekv" 1) + "songti" + "heiti" + "kaishu" + "fangsong" + "cbfseries" + "citshape" + "cnormal" + "cfs" + "ebibname" + "authorname" + "institutename" + "datename" + "versionname" + "notename" + "definitionname" + "theoremname" + "axiomname" + "postulatename" + "lemmaname" + "propositionname" + "corollaryname" + "examplename" + "instancename" + "problemname" + "exercisename" + "remarkname" + "assumptionname" + "conclusionname" + "solutionname" + "propertyname" + "introductionname" + "updatename" + "historyname" + "beforechap" + "afterchap" + "proofname" + "problemsetname" + "eitemi" + "eitemii" + "eitemiii" + "xchaptertitle" + "ELEGANT" + "dollar" + "bmmax" + "listofchanges" + "definedas" + "Lis" + "qed" + "oldencodingdefault" + "oldrmdefault" + "oldsfdefault" + "oldttdefault" + "encodingdefault" + "rmdefault" + "sfdefault" + "ttdefault" + "Bbbk" + "sumop" + "prodop" + "style" + "openbox") + (LaTeX-add-environments + "relsec" + '("problemset" LaTeX-env-args ["argument"] 0) + '("introduction" LaTeX-env-args ["argument"] 0) + '("problem" LaTeX-env-args ["argument"] 0) + '("exercise" LaTeX-env-args ["argument"] 0) + '("example" LaTeX-env-args ["argument"] 0) + '("custom" 1) + "note" + "proof" + "solution" + "remark" + "assumption" + "conclusion" + "property" + "change") + (LaTeX-add-pagestyles + "plain") + (LaTeX-add-counters + "exam" + "exer" + "prob") + (LaTeX-add-comment-incl-excls + '("solution" "exclude") + '("proof" "exclude") + '("inline" "exclude")) + (LaTeX-add-xcolor-definecolors + "structurecolor" + "main" + "second" + "third" + "structure1" + "main1" + "second1" + "third1" + "structure2" + "main2" + "second2" + "third2" + "structure3" + "main3" + "second3" + "third3" + "structure4" + "main4" + "second4" + "third4" + "structure5" + "main5" + "second5" + "third5" + "winered" + "bule" + "coverlinecolor" + "lightgrey" + "frenchplum") + (LaTeX-add-amsthm-newtheoremstyles + "defstyle" + "thmstyle" + "prostyle") + (LaTeX-add-listings-lstdefinestyles + "mystyle")) + :latex) + diff --git a/early-init.el b/early-init.el index 38b2c2c..5361061 100644 --- a/early-init.el +++ b/early-init.el @@ -11,6 +11,9 @@ (setq package-enable-at-startup nil) +;; (setq native-comp-deferred-compilation t) +(setq native-comp-async-report-warnings-errors nil) + (add-to-list 'load-path (expand-file-name "lisp/" user-emacs-directory)) (setq use-package-enable-imenu-support t) (setq load-prefer-newer noninteractive) diff --git a/lisp/init-edit.el b/lisp/init-edit.el index ab643db..61590d5 100644 --- a/lisp/init-edit.el +++ b/lisp/init-edit.el @@ -58,8 +58,7 @@ (use-package multiple-cursors :hook elpaca-after-init - :bind (("C-c m" . multiple-cursors-hydra/body) - ("C-S-c C-S-c" . mc/edit-lines) + :bind (("C-S-c C-S-c" . mc/edit-lines) ("C->" . mc/mark-next-like-this) ("C-<" . mc/mark-previous-like-this) ("C-c C-<" . mc/mark-all-like-this) @@ -68,26 +67,7 @@ ("s-" . mc/add-cursor-on-click) ("C-S-" . mc/add-cursor-on-click) :map mc/keymap - ("C-|" . mc/vertical-align-with-space)) - :pretty-hydra - ((:color amaranth :quit-key ("q" "C-g") :hint nil) - ("Up" - (("p" mc/mark-previous-like-this "prev") - ("P" mc/skip-to-previous-like-this "skip") - ("M-p" mc/unmark-previous-like-this "unmark") - ("|" mc/vertical-align "align with input CHAR")) - "Down" - (("n" mc/mark-next-like-this "next") - ("N" mc/skip-to-next-like-this "skip") - ("M-n" mc/unmark-next-like-this "unmark")) - "Misc" - (("l" mc/edit-lines "edit lines" :exit t) - ("a" mc/mark-all-like-this "mark all" :exit t) - ("s" mc/mark-all-in-region-regexp "search" :exit t) - ("" mc/add-cursor-on-click "click")) - "% 2(mc/num-cursors) cursor%s(if (> (mc/num-cursors) 1) \"s\" \"\")" - (("0" mc/insert-numbers "insert numbers" :exit t) - ("A" mc/insert-letters "insert letters" :exit t))))) + ("C-|" . mc/vertical-align-with-space))) (use-package smart-region :hook (after-init . smart-region-on)) diff --git a/lisp/init-org.el b/lisp/init-org.el index 3e6b70f..4da9642 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -104,7 +104,7 @@ the element after the #+HEADER: tag." "* %U %?\n%i\n%a" :prepend t)) org-todo-keywords - '((sequence "TODO(t)" "IN-PROGRESS(i)" "|" "DONE(d)" "NO(n)"))) + '((sequence "TODO(t)" "IN-PROGRESS(i)" "ON-HOLD(h)" "|" "DONE(d)" "NO(n)"))) (add-to-list 'org-src-block-faces '("latex" (:inherit default :extend t))) (add-hook 'org-after-refile-insert-hook @@ -192,8 +192,9 @@ the element after the #+HEADER: tag." :hook (org-mode . org-latex-preview-mode) :hook (org-latex-preview-mode . org-latex-preview-center-mode) :config - (plist-put org-latex-preview-appearance-options - :page-width 0.8) + ;; Higher resolution when using dvipng + (plist-put org-latex-preview-appearance-options :page-width 0.6) + (plist-put org-latex-preview-appearance-options :scale 1.8) ;; ;; Block C-n, C-p etc from opening up previews when using `org-latex-preview-mode' ;; (setq org-latex-preview-mode-ignored-commands @@ -202,6 +203,7 @@ the element after the #+HEADER: tag." (setq org-latex-preview-numbered t) (setq org-latex-preview-mode-display-live t) + (setq org-latex-preview-process-default 'dvipng) (setq org-latex-preview-mode-update-delay 0.25) (defun my/org-latex-preview-uncenter (ov) (overlay-put ov 'before-string nil)) @@ -271,6 +273,8 @@ the element after the #+HEADER: tag." ("C-c n w" . org-roam-refile) ;; Dailies ("C-c n j" . org-roam-dailies-capture-today)) + :bind (:map org-mode-map + ("C-c C-x i" . org-id-get-create)) :config ;; If you're using a vertical completion framework, you might want a more informative completion interface (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) diff --git a/lisp/init-tex.el b/lisp/init-tex.el index 403ff3e..1055abe 100644 --- a/lisp/init-tex.el +++ b/lisp/init-tex.el @@ -22,9 +22,12 @@ (TeX-source-correlate-method 'synctex) (TeX-display-help t) (TeX-show-compilation nil) + (TeX-command-extra-options "-shell-escape") :config (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 () @@ -45,7 +48,7 @@ calc-prefer-frac t calc-angle-mode rad))))))) ;; (setq TeX-view-program-selection '((output-pdf "PDF Tools"))) - (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) + ;; (add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer) (setq reftex-plug-into-AUCTeX t) diff --git a/lisp/init-ui.el b/lisp/init-ui.el index 3562d9d..2adfe04 100644 --- a/lisp/init-ui.el +++ b/lisp/init-ui.el @@ -29,48 +29,75 @@ (use-package solaire-mode :hook (elpaca-after-init . solaire-global-mode)) -(use-package standard-themes :demand t - :config - (modus-themes-load-theme 'standard-light)) - -;; (use-package doric-themes -;; :demand t -;; :bind ("" . doric-load-random) -;; :init -;; (defun doric-load-random () -;; (interactive) -;; (mapc #'disable-theme custom-enabled-themes) -;; (let* ((themes '(doric-fire -;; doric-oak -;; doric-jade -;; doric-wind -;; doric-beach -;; doric-earth -;; doric-valley)) -;; (loaded (seq-random-elt themes))) -;; (load-theme loaded :no-confirm))) -;; (doric-load-random) -;; ) - (use-package modus-themes :init (setq modus-themes-italic-constructs t modus-themes-bold-constructs t modus-themes-mixed-fonts t)) +;; (use-package standard-themes :demand t +;; :config +;; (modus-themes-load-theme 'standard-light-tinted)) + +(use-package doric-themes + :demand t + :bind ("" . doric-load-random) + :bind ("C-" . doric-load-random-light) + :bind ("M-" . doric-load-random-dark) + :init + (defvar my/doric-dark-themes + '(doric-fire + doric-valley + doric-walnut + doric-mermaid + doric-pine + doric-plum + doric-water)) + (defvar my/doric-light-themes + '(doric-oak + doric-jade + doric-wind + doric-beach + doric-coral + doric-earth + doric-almond)) + (defun doric-load-random () + (interactive) + (mapc #'disable-theme custom-enabled-themes) + (let ((loaded (seq-random-elt (append my/doric-light-themes my/doric-dark-themes)))) + (load-theme loaded :no-confirm))) + + (defun doric-load-random-light () + (interactive) + (mapc #'disable-theme custom-enabled-themes) + (let ((loaded (seq-random-elt my/doric-light-themes))) + (load-theme loaded :no-confirm))) + + (defun doric-load-random-dark () + (interactive) + (mapc #'disable-theme custom-enabled-themes) + (let ((loaded (seq-random-elt my/doric-dark-themes))) + (load-theme loaded :no-confirm))) + (doric-load-random)) + (use-package rainbow-delimiters - :hook ((prog-mode . rainbow-delimiters-mode) - (typst-ts-mode . rainbow-delimiters-mode) - (foo-mode . rainbow-delimiters-mode))) + :hook ((prog-mode . rainbow-delimiters-mode) + (typst-ts-mode . rainbow-delimiters-mode) + (python-ts-mode . rainbow-delimiters-mode))) + +;; (use-package prism +;; :hook (prog-mode . prism-mode) +;; :hook (text-mode . prism-mode) +;; :hook (typst-ts-mode . prism-mode) +;; :hook (python-ts-mode . prism-whitespace-mode) +;; :config +;; (setq prism-parens t)) (use-package rainbow-mode :hook elpaca-after-init) -;; (use-package nano-theme -;; :ensure (nano-theme :type git :host github -;; :repo "rougier/nano-theme") -;; :init -;; (modus-themes-load-theme 'nano-dark)) +;; (use-package mood-line +;; :hook elpaca-after-init) (use-package doom-modeline :hook (elpaca-after-init . doom-modeline-mode) @@ -80,7 +107,9 @@ doom-modeline-buffer-file-name-style 'buffer-name doom-modeline-enable-word-count t doom-modeline-project-detection 'projectile - doom-modeline-project-name t)) + doom-modeline-project-name t + doom-modeline-buffer-encoding nil + doom-modeline-major-mode-icon nil)) (use-package hide-mode-line :autoload turn-off-hide-mode-line-mode @@ -128,9 +157,9 @@ (use-package default-text-scale :hook (elpaca-after-init . default-text-scale-mode) :bind (:map default-text-scale-mode-map - ("C-s-=" . default-text-scale-increase) - ("C-s--" . default-text-scale-decrease) - ("C-s-0" . default-text-scale-reset))) + ("C-s-=" . default-text-scale-increase) + ("C-s--" . default-text-scale-decrease) + ("C-s-0" . default-text-scale-reset))) (setq hscroll-step 1 hscroll-margin 2 diff --git a/lisp/init-utils.el b/lisp/init-utils.el index c39cbae..6604ce7 100644 --- a/lisp/init-utils.el +++ b/lisp/init-utils.el @@ -12,10 +12,13 @@ :config (which-key-add-key-based-replacements "C-c n" "org-mode") (which-key-add-key-based-replacements "C-c l" "llm") - (which-key-add-key-based-replacements "C-c s" "search") + (which-key-add-key-based-replacements "C-c s" "session") (which-key-add-key-based-replacements "C-c f" "find") (which-key-add-key-based-replacements "C-c p" "project") + (which-key-add-key-based-replacements "C-c !" "flycheck") + (which-key-add-key-based-replacements "C-c &" "yasnippet") (which-key-add-key-based-replacements "C-c q" "quit") + (which-key-add-key-based-replacements "C-c C-w" "workspace") (which-key-add-key-based-replacements "C-c w" "windows")) (use-package grep diff --git a/lisp/init-workspace.el b/lisp/init-workspace.el index 84eb039..daa2a0f 100644 --- a/lisp/init-workspace.el +++ b/lisp/init-workspace.el @@ -37,12 +37,22 @@ ("s-5" . eyebrowse-switch-to-window-config-5) ("s-6" . eyebrowse-switch-to-window-config-6) ("s-7" . eyebrowse-switch-to-window-config-7) - ("s-8" . eyebrowse-switch-to-window-config-8)) + ("s-8" . eyebrowse-switch-to-window-config-8) + ("C-c s l" . easysession-switch-to) + ("C-c s L" . easysession-switch-to-and-restore-geometry) + ("C-c s s" . easysession-save) + ("C-c s r" . easysession-rename) + ("C-c s R" . easysession-reset) + ("C-c s u" . easysession-unload) + ("C-c s d" . easysession-delete)) + :custom (easysession-switch-to-save-session t) (easysession-switch-to-exclude-current nil) :config (setq easysession-setup-load-session t) - (easysession-setup)) + (easysession-setup) + (easysession-magit-mode) + (easysession-scratch-mode)) (provide 'init-workspace) diff --git a/snippets/latex-mode/Display Math b/snippets/latex-mode/Display Math index 594bd34..090572d 100644 --- a/snippets/latex-mode/Display Math +++ b/snippets/latex-mode/Display Math @@ -3,5 +3,6 @@ # condition: (and (not (texmathp)) (quote auto)) # group: math # -- - -\[ $0 \] +\[ + $0 +\] \ No newline at end of file diff --git a/snippets/latex-mode/odot b/snippets/latex-mode/odot new file mode 100644 index 0000000..2a97337 --- /dev/null +++ b/snippets/latex-mode/odot @@ -0,0 +1,6 @@ +# key: o. +# name: odot +# condition: (and (texmathp) 'auto) +# group: math +# -- +\odot \ No newline at end of file diff --git a/snippets/latex-mode/supset b/snippets/latex-mode/supset new file mode 100644 index 0000000..e846531 --- /dev/null +++ b/snippets/latex-mode/supset @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: supset +# key: suq +# group: math +# condition: (and (texmathp) 'auto) +# -- +\supset \ No newline at end of file diff --git a/snippets/latex-mode/supseteq b/snippets/latex-mode/supseteq new file mode 100644 index 0000000..6ac977c --- /dev/null +++ b/snippets/latex-mode/supseteq @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: supseteq +# key: \supset= +# group: math +# condition: (and (texmathp) 'auto) +# -- +\supseteq \ No newline at end of file