px was added, even though I prob. not gonna use it, and made pdflatex as default tex-run-command

clean_emacs
TuDatTr 2017-12-21 07:40:14 +01:00
parent e0af067cc7
commit ddaf756c6f
4 changed files with 24 additions and 2 deletions

6
.emacs
View File

@ -27,7 +27,9 @@
'(package-selected-packages
(quote
(color-theme-sanityinc-solarized elpy forest-blue-theme)))
'(pyvenv-activate "~/.virtualenv/default"))
'(pyvenv-activate "~/.virtualenv/default")
'(tex-run-command "pdflatex")
'(texinfo-tex-command "pdflatex"))
;; https://github.com/Boruch-Baum
(defun my-copy-to-xclipboard(arg)
@ -72,6 +74,8 @@
(load-theme 'forest-blue t)
(elpy-enable)
(setq TeX-PDF-mode t)
(setq latex-run-command "pdflatex")
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,12 @@
Provides functions to preview LaTeX codes like $x^2$ in any
buffer/mode.
Use `px-preview-region' to preview LaTeX codes delimited by $ pairs
in the region.
Use `px-preview' to process the whole buffer.
Use `px-remove' to remove all images and restore the text back.
Use `px-toggle' to toggle between images and text on the whole
buffer.
Most of this code comes from weechat-latex.el which in turn uses
org-mode previewer.

6
.emacs.d/srecode-map.el Normal file
View File

@ -0,0 +1,6 @@
;; Object srecode-map
;; EIEIO PERSISTENT OBJECT
(srecode-map "srecode-map"
:file "srecode-map.el"
:files '(("/usr/share/emacs/25.3/etc/srecode/wisent.srt" . wisent-grammar-mode) ("/usr/share/emacs/25.3/etc/srecode/texi.srt" . texinfo-mode) ("/usr/share/emacs/25.3/etc/srecode/template.srt" . srecode-template-mode) ("/usr/share/emacs/25.3/etc/srecode/make.srt" . makefile-mode) ("/usr/share/emacs/25.3/etc/srecode/java.srt" . java-mode) ("/usr/share/emacs/25.3/etc/srecode/el.srt" . emacs-lisp-mode) ("/usr/share/emacs/25.3/etc/srecode/default.srt" . default) ("/usr/share/emacs/25.3/etc/srecode/cpp.srt" . c++-mode) ("/usr/share/emacs/25.3/etc/srecode/c.srt" . c-mode))
:apps '((tests ("/usr/share/emacs/25.3/etc/srecode/test.srt" . srecode-template-mode)) (getset ("/usr/share/emacs/25.3/etc/srecode/getset-cpp.srt" . c++-mode)) (ede ("/usr/share/emacs/25.3/etc/srecode/ede-make.srt" . makefile-mode) ("/usr/share/emacs/25.3/etc/srecode/ede-autoconf.srt" . autoconf-mode)) (document ("/usr/share/emacs/25.3/etc/srecode/doc-java.srt" . java-mode) ("/usr/share/emacs/25.3/etc/srecode/doc-default.srt" . default) ("/usr/share/emacs/25.3/etc/srecode/doc-cpp.srt" . c-mode))))