Compare commits
2 Commits
cb438235f6
...
de3c81ec7e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de3c81ec7e | ||
|
|
42445780fb |
85
init.el
85
init.el
@ -34,48 +34,18 @@
|
|||||||
(straight-use-package 'swiper)
|
(straight-use-package 'swiper)
|
||||||
(straight-use-package 'ace-window)
|
(straight-use-package 'ace-window)
|
||||||
(straight-use-package 'magit)
|
(straight-use-package 'magit)
|
||||||
(straight-use-package 'auctex)
|
|
||||||
(straight-use-package 'company-auctex)
|
|
||||||
(straight-use-package 'company-reftex)
|
|
||||||
(straight-use-package 'reftex)
|
|
||||||
(straight-use-package 'cdlatex)
|
|
||||||
(straight-use-package 'latex-extra)
|
|
||||||
(straight-use-package 'org)
|
|
||||||
;;(straight-use-package 'org-ref)
|
|
||||||
(straight-use-package 'org-ac)
|
|
||||||
(straight-use-package 'ess)
|
(straight-use-package 'ess)
|
||||||
;(straight-use-package 'org-plus-contrib)
|
|
||||||
|
|
||||||
|
;(straight-use-package 'capf) ;; ??
|
||||||
;; (use-package ox-odt
|
|
||||||
;; :straight (org-mode-ox-odt
|
|
||||||
;; :host github
|
|
||||||
;; :repo "kjambunathan/org-mode-ox-odt"
|
|
||||||
;; :nonrecursive t
|
|
||||||
;; :files ("lisp/ox-odt.el"
|
|
||||||
;; "etc"
|
|
||||||
;; "docs"
|
|
||||||
;; "contrib/odt/LibreOffice")))
|
|
||||||
|
|
||||||
;(straight-use-package 'capf)
|
|
||||||
|
|
||||||
(straight-use-package 'yaml-mode)
|
(straight-use-package 'yaml-mode)
|
||||||
|
|
||||||
;;(straight-use-package 'tramp)
|
;;(straight-use-package 'tramp)
|
||||||
(straight-use-package 'sudo-edit)
|
(straight-use-package 'sudo-edit)
|
||||||
|
|
||||||
(use-package company-org-block
|
|
||||||
:straight t
|
|
||||||
:custom
|
|
||||||
(company-org-block-edit-style 'auto) ;; 'auto, 'prompt, or 'inline
|
|
||||||
:hook ((org-mode . (lambda ()
|
|
||||||
(setq-local company-backends '(company-org-block))
|
|
||||||
(company-mode +1)))))
|
|
||||||
|
|
||||||
;;(straigth-use-package 'helm)
|
;;(straigth-use-package 'helm)
|
||||||
|
|
||||||
|
|
||||||
;; (straight-use-package 'org-plus-contrib)
|
|
||||||
|
|
||||||
;; (require 'package)
|
;; (require 'package)
|
||||||
;; (package-initialize)
|
;; (package-initialize)
|
||||||
|
|
||||||
@ -150,55 +120,4 @@
|
|||||||
(define-key global-map "\M-Q" 'unfill-paragraph)
|
(define-key global-map "\M-Q" 'unfill-paragraph)
|
||||||
|
|
||||||
|
|
||||||
;; org-mode
|
|
||||||
(setq org-support-shift-select 't)
|
|
||||||
;; active Babel languages
|
|
||||||
(org-babel-do-load-languages
|
|
||||||
'org-babel-load-languages
|
|
||||||
'((R . t)
|
|
||||||
(latex - t)
|
|
||||||
(emacs-lisp . t)
|
|
||||||
(python . t)
|
|
||||||
(org . t)
|
|
||||||
(shell . t)
|
|
||||||
))
|
|
||||||
|
|
||||||
;; No pide confirmación al ejecutar código
|
|
||||||
(setq org-confirm-babel-evaluate nil)
|
|
||||||
|
|
||||||
;; Muestra imágenes en el buffer de org
|
|
||||||
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)
|
|
||||||
(add-hook 'org-mode-hook 'org-display-inline-images)
|
|
||||||
|
|
||||||
;; establece latexmk para la compilación
|
|
||||||
(setq org-latex-pdf-process (list "latexmk -f -pdf %f"))
|
|
||||||
|
|
||||||
;; Carga lo necesario para exportar a beamer
|
|
||||||
(require 'ox-beamer)
|
|
||||||
;; Carga lo necesario para exportar a markdown
|
|
||||||
(require 'ox-md nil t)
|
|
||||||
;; Ajusta automáticamente la imagen al alcho (casi)
|
|
||||||
(setq org-image-actual-width nil)
|
|
||||||
|
|
||||||
;; activa orc-ac (autocompletado automático)
|
|
||||||
;; https://github.com/aki2o/org-ac
|
|
||||||
;;(org-ac/config-default)
|
|
||||||
|
|
||||||
; Latex
|
|
||||||
|
|
||||||
;; Inicializa el soporte para company en auctex automáticamente
|
|
||||||
;; (require 'company-auctex) ;; cargado antes con straight
|
|
||||||
(add-hook 'LaTeX-mode-hook (lambda ()(company-mode 1)))
|
|
||||||
(company-auctex-init)
|
|
||||||
|
|
||||||
;; Activa el parser automático, para que funcione C-c C-a
|
|
||||||
(setq TeX-parse-self t) ; Enable parse on load.
|
|
||||||
(setq TeX-auto-save t) ; Enable parse on save.
|
|
||||||
;; RefTeX
|
|
||||||
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
|
|
||||||
(setq reftex-plug-into-AUCTeX t) ; Conectar a AUC TeX con RefTeX
|
|
||||||
;; CDLaTeX
|
|
||||||
(add-hook 'LaTeX-mode-hook 'turn-on-cdlatex) ; with AUCTeX LaTeX mode
|
|
||||||
;; latex-extra
|
|
||||||
(add-hook 'LaTeX-mode-hook #'latex-extra-mode)
|
|
||||||
|
|
||||||
|
|||||||
26
modulos/latex-config.el
Normal file
26
modulos/latex-config.el
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
; Latex
|
||||||
|
|
||||||
|
(straight-use-package 'auctex)
|
||||||
|
(straight-use-package 'company-auctex)
|
||||||
|
(straight-use-package 'company-reftex)
|
||||||
|
(straight-use-package 'reftex)
|
||||||
|
(straight-use-package 'cdlatex)
|
||||||
|
(straight-use-package 'latex-extra)
|
||||||
|
|
||||||
|
|
||||||
|
;; Inicializa el soporte para company en auctex automáticamente
|
||||||
|
;; (require 'company-auctex) ;; cargado antes con straight
|
||||||
|
(add-hook 'LaTeX-mode-hook (lambda ()(company-mode 1)))
|
||||||
|
(company-auctex-init)
|
||||||
|
|
||||||
|
;; Activa el parser automático, para que funcione C-c C-a
|
||||||
|
(setq TeX-parse-self t) ; Enable parse on load.
|
||||||
|
(setq TeX-auto-save t) ; Enable parse on save.
|
||||||
|
;; RefTeX
|
||||||
|
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
|
||||||
|
(setq reftex-plug-into-AUCTeX t) ; Conectar a AUC TeX con RefTeX
|
||||||
|
;; CDLaTeX
|
||||||
|
(add-hook 'LaTeX-mode-hook 'turn-on-cdlatex) ; with AUCTeX LaTeX mode
|
||||||
|
;; latex-extra
|
||||||
|
(add-hook 'LaTeX-mode-hook #'latex-extra-mode)
|
||||||
|
|
||||||
67
modulos/org-config.el
Normal file
67
modulos/org-config.el
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
;; Configuración de org-mode
|
||||||
|
|
||||||
|
(straight-use-package 'org)
|
||||||
|
;;(straight-use-package 'org-ref)
|
||||||
|
(straight-use-package 'org-ac)
|
||||||
|
|
||||||
|
;(straight-use-package 'org-plus-contrib) ;; ??
|
||||||
|
|
||||||
|
;; Revisar qué hace este paquete
|
||||||
|
(use-package company-org-block
|
||||||
|
:straight t
|
||||||
|
:custom
|
||||||
|
(company-org-block-edit-style 'auto) ;; 'auto, 'prompt, or 'inline
|
||||||
|
:hook ((org-mode . (lambda ()
|
||||||
|
(setq-local company-backends '(company-org-block))
|
||||||
|
(company-mode +1)))))
|
||||||
|
|
||||||
|
;; (straight-use-package 'org-plus-contrib)
|
||||||
|
|
||||||
|
;; org-mode
|
||||||
|
(setq org-support-shift-select 't)
|
||||||
|
;; active Babel languages
|
||||||
|
(org-babel-do-load-languages
|
||||||
|
'org-babel-load-languages
|
||||||
|
'((R . t)
|
||||||
|
(latex - t)
|
||||||
|
(emacs-lisp . t)
|
||||||
|
(python . t)
|
||||||
|
(org . t)
|
||||||
|
(shell . t)
|
||||||
|
))
|
||||||
|
|
||||||
|
;; No pide confirmación al ejecutar código
|
||||||
|
(setq org-confirm-babel-evaluate nil)
|
||||||
|
|
||||||
|
;; Muestra imágenes en el buffer de org
|
||||||
|
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)
|
||||||
|
(add-hook 'org-mode-hook 'org-display-inline-images)
|
||||||
|
|
||||||
|
;; establece latexmk para la compilación
|
||||||
|
(setq org-latex-pdf-process (list "latexmk -f -pdf %f"))
|
||||||
|
|
||||||
|
;; Carga lo necesario para exportar a beamer
|
||||||
|
(require 'ox-beamer)
|
||||||
|
;; Carga lo necesario para exportar a markdown
|
||||||
|
(require 'ox-md nil t)
|
||||||
|
;; Ajusta automáticamente la imagen al alcho (casi)
|
||||||
|
(setq org-image-actual-width nil)
|
||||||
|
|
||||||
|
;; activa orc-ac (autocompletado automático)
|
||||||
|
;; https://github.com/aki2o/org-ac
|
||||||
|
;;(org-ac/config-default) ;; desactivado porque funciona regular
|
||||||
|
|
||||||
|
;; Este es un «exporter» mejorado, pero con esta configuración no
|
||||||
|
;; cargaba. Lá única forma de hacerlo funcionar era clonar el
|
||||||
|
;; repositorio en otro sitio y compilarlo con un make. Mirar la
|
||||||
|
;; documentación de carga en ese caso.
|
||||||
|
|
||||||
|
;; (use-package ox-odt
|
||||||
|
;; :straight (org-mode-ox-odt
|
||||||
|
;; :host github
|
||||||
|
;; :repo "kjambunathan/org-mode-ox-odt"
|
||||||
|
;; :nonrecursive t
|
||||||
|
;; :files ("lisp/ox-odt.el"
|
||||||
|
;; "etc"
|
||||||
|
;; "docs"
|
||||||
|
;; "contrib/odt/LibreOffice")))
|
||||||
Loading…
x
Reference in New Issue
Block a user