From d67e6f7a377ca9d247c59030b6bcfc9124884eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Tue, 22 Mar 2022 13:08:11 +0100 Subject: [PATCH] Add Latex, webmode and ESS configuration --- myconfig.org | 56 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 50 insertions(+), 6 deletions(-) diff --git a/myconfig.org b/myconfig.org index 4c8d2a3..a609635 100644 --- a/myconfig.org +++ b/myconfig.org @@ -4,10 +4,11 @@ - Set dap-mode - Add more programming languages to LSP - Try =eglot= -- Fix Latex section +- Spell checking * Famous init files - [[https://github.com/zamansky/dot-emacs][The Big Zemansky]] +- [[https://pages.sachachua.com/.emacs.d/Sacha.html][Sacha Chua Emac's configuration]] - [[https://github.com/patrickt/emacs][Patrick: GOAT init emacs]] - [[https://github.com/manugoyal/.emacs.d][Manugoyal: Emacs config]] - [[https://github.com/daviwil/dotfiles/blob/master/Emacs.org][System Crafters]] @@ -972,12 +973,55 @@ Usamos =pyenv= para gestionar los /virtualenv/ #+end_src * LaTeX +[[https://www.gnu.org/software/auctex/][auctex]] for latex edition + #+begin_src emacs-lisp - ;; (use-package tex - ;; :defer t - ;; :ensure auctex - ;; :config - ;; (setq TeX-auto-save t)) + (use-package auctex + :mode ("\\.tex\\'" . latex-mode) + :commands (latex-mode LaTeX-mode plain-tex-mode) + :custom + (TeX-auto-save t) + (TeX-parse-self t) + (TeX-save-query nil) + (TeX-PDF-mode t) + :hook + (LaTeX-mode . LaTeX-preview-setup) + (LaTeX-mode . LaTeX-math-mode) + ;; (LaTeX-mode . flyspell-mode) + (LaTeX-mode . turn-on-reftex) + ) + + ;; Use company-auctex + (use-package company-auctex + :config + (company-auctex-init) + ) +#+end_src + +* web mode +- +#+begin_src emacs-lisp + (use-package web-mode + :mode + ("\\.html?\\'" . web-mode) + :config + (setq web-mode-enable-auto-closing t) + (setq web-mode-enable-auto-quoting t) + (setq web-mode-enable-auto-pairing t) + + :custom + (web-mode-markup-indent-offset 2) + (web-mode-css-indent-offset 2) + (web-mode-code-indent-offset 2) + (web-mode-enable-css-colorization t) + ) +#+end_src + +* ess (Emacs Speak Statistics) +Necesitas tener R instalado en tu sistema, de lo contrario este paquete no tiene sentido. +#+begin_src emacs-lisp +(use-package ess + :init (require 'ess-site)) #+end_src * next