Skip to content

Commit

Permalink
enable LaTeX equations preview
Browse files Browse the repository at this point in the history
  • Loading branch information
semenInRussia committed Jun 20, 2024
1 parent 12e7f52 commit d4e3247
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
3 changes: 1 addition & 2 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ Byte-compile every file of local-projects and generate autoloads file"

(let ((file-name-handler-alist nil)
(load-suffixes '(".elc" ".el"))
(load-rep-load-file-rep-suffixes '(""))
(auto-mode-case-fold nil))
(load-rep-load-file-rep-suffixes '("")))
(require 'my-modules))


Expand Down
11 changes: 5 additions & 6 deletions lisp/languages/my-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
;; :hook (LaTeX-mode-hook . my-latex-expansion-mode))

(leaf laas
:ensure (laas :repo "tecosaur/LaTeX-auto-activating-snippets" :host github)
:ensure t
:hook LaTeX-mode-hook
:defun (aas-set-snippets . aas)
:config
Expand All @@ -62,15 +62,14 @@

(leaf cdlatex
:ensure (cdlatex :repo "cdominik/cdlatex" :host github)
:hook (LaTeX-mode-hook . turn-on-cdlatex)
:hook (LaTeX-mode-hook . turn-on-cdlatex)
:bind (:cdlatex-mode-map
("<tab>" . cdlatex-tab)
(";" . my-latex-dollar))
:custom ((cdlatex-math-modify-alist
.
'((?q "\\sqrt" nil t nil nil)
(?u "\\breve" "\\uline" t nil nil)
(?v "\\vec" nil t nil nil)))))
. '((?q "\\sqrt" nil t nil nil)
(?u "\\breve" "\\uline" t nil nil)
(?v "\\vec" nil t nil nil)))))

(leaf my-latex-insert
:bind (:latex-mode-map
Expand Down
13 changes: 13 additions & 0 deletions lisp/languages/my-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@
("C-c C-M-w" . my-org-clear-subtree)
("C-c C-t" . my-org-todo)))

(leaf org-preview
:ensure (org-preview :repo "karthink/org-preview"
:host github)
:commands org-preview-mode)

(leaf xenops
:ensure t
:custom (xenops-math-image-scale-factor . 2))

(leaf laas
:ensure t
:hook org-mode-hook)

;; format `org-mode' code after every key hit
(leaf my-org-autoformat
:hook (org-mode-hook . my-autoformat-mode))
Expand Down

0 comments on commit d4e3247

Please sign in to comment.