diff --git a/.emacs_without_opam b/.emacs_without_opam new file mode 100644 index 0000000000000000000000000000000000000000..2061277a868e4eaf10d17cab94469cb0a8e604c9 --- /dev/null +++ b/.emacs_without_opam @@ -0,0 +1,80 @@ +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(inhibit-startup-screen t)) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) + +;; Open .tex file in auctex mode +(setq TeX-auto-save t) +(setq TeX-parse-self t) +(setq TeX-save-query nil) +;(setq TeX-PDF-mode t) + + + + + +(require 'flymake) + +(defun flymake-get-tex-args (file-name) +(list "pdflatex" +(list "-file-line-error" "-draftmode" "-interaction=nonstopmode" file-name))) + +(add-hook 'LaTeX-mode-hook 'flymake-mode) + +(setq ispell-program-name "aspell") ; could be ispell as well, depending on your preferences +(setq ispell-dictionary "english") ; this can obviously be set to any language your spell-checking program supports + +(add-hook 'LaTeX-mode-hook 'flyspell-mode) +(add-hook 'LaTeX-mode-hook 'flyspell-buffer) + +(defun turn-on-outline-minor-mode () +(outline-minor-mode 1)) + +(add-hook 'LaTeX-mode-hook 'turn-on-outline-minor-mode) +(add-hook 'latex-mode-hook 'turn-on-outline-minor-mode) +(setq outline-minor-mode-prefix "\C-c \C-o") ; Or something else + + +(require 'tex-site) +(autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t) +(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) +(autoload 'reftex-citation "reftex-cite" "Make citation" nil) +(autoload 'reftex-index-phrase-mode "reftex-index" "Phrase Mode" t) +(add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode +;; (add-hook 'reftex-load-hook 'imenu-add-menubar-index) +(add-hook 'LaTeX-mode-hook 'turn-on-reftex) + +(setq LaTeX-eqnarray-label "eq" +LaTeX-equation-label "eq" +LaTeX-figure-label "fig" +LaTeX-table-label "tab" +LaTeX-myChapter-label "chap" +TeX-auto-save t +TeX-newline-function 'reindent-then-newline-and-indent +TeX-parse-self t +TeX-style-path +'("style/" "auto/" +"/usr/share/emacs21/site-lisp/auctex/style/" +"/var/lib/auctex/emacs21/" +"/usr/local/share/emacs/site-lisp/auctex/style/") +LaTeX-section-hook +'(LaTeX-section-heading +LaTeX-section-title +LaTeX-section-toc +LaTeX-section-section +LaTeX-section-label)) + +(load-library "iso-transl") + +;; ## Allow to run iPython shell + +(setq python-shell-interpreter "/usr/bin/ipython3" + python-shell-interpreter-args "--simple-prompt -i")