diff --git a/.gitignore b/.gitignore index 7b1e1150a10aa25a381a27b1af52b57adbb5d37a..8a7f077e24f7a7a47fc9a7bfaf5a5c1b151b2ec1 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ auto-save-list /url /Tutoriel.odt /Configuration.el +/Configuration.pdf +/Configuration.tex diff --git a/Configuration.org b/Configuration.org index 5c6dae1a3d09e0d699bde3b92b852edf5d690b99..cf478cb4f34832407e3f404ba83b039f96f7845a 100644 --- a/Configuration.org +++ b/Configuration.org @@ -605,7 +605,9 @@ Permet d'utiliser reduire/agrandir les affichages de répertoires Configuration LaTeX basique. #+BEGIN_SRC emacs-lisp (use-package tex - :ensure auctex) + :ensure auctex + :init + (add-hook 'LaTeX-mode-hook 'turn-on-reftex)) (defun tex-view () (interactive) @@ -945,7 +947,15 @@ voir [[https://github.com/emacsmirror/emacswiki.org/blob/master/wgrep.el][wgrep] Outils d'édition de PDF dans Emacs #+BEGIN_SRC emacs-lisp (use-package pdf-tools - :ensure t) + :ensure t + :config + (when (eq system-type 'gnu/linux) + (pdf-tools-install) ; nice PDF viewer (needs separate installation) + (setq TeX-view-program-selection '((output-pdf "pdf-tools"))) + (setq TeX-view-program-list '(("pdf-tools" "TeX-pdf-tools-sync-view")))) + :init + (add-hook 'LaTeX-mode-hook '(lambda () (local-set-key (kbd "C-c C-g") 'pdf-sync-forward-search)))) + (use-package org-pdfview :ensure t) #+END_SRC diff --git a/init.el b/init.el index 07dda5ad4453d0cce20f335017939d211eb901b4..4cb1df2f8f332678daaadc83566df739ed987076 100644 --- a/init.el +++ b/init.el @@ -45,11 +45,13 @@ ;; 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. + '(TeX-command-extra-options "-synctex=1") '(all-the-icons-ivy-buffer-commands (quote (ivy-switch-buffer-other-window ivy-switch-buffer))) '(elpy-rpc-backend "jedi" t) '(hydra-hint-display-type (quote posframe)) '(irony-cdb-search-directory-list (quote ("." "build"))) '(org-confirm-babel-evaluate nil) + '(org-default-notes-file (concat org-directory "/notes.org")) '(org-export-html-postamble nil) '(org-hide-leading-stars t) '(org-src-fontify-natively t) @@ -58,7 +60,7 @@ '(package-selected-packages (quote (better-shell flycheck-irony tabbar cmake-font-lock alect-theme zero-dark-theme autumn-light-theme solarized-dark-theme misterioso misterioso-theme zenburn sourcerer-theme flycheck-pos-tip flycheck-clojure ox-reveal posframe processing-snippets processing-mode rg deadgrep flycheck-rust cargo racer yasnippet-classic-snippets rustic lsp-rust lsp-java company-lsp lsp-ui lsp-mode lsp yasnippet-snippets counsel-spotify exec-path-from-shell easy-kill auto-yasnippet org-pdfview pdf-tools atomic-chrome mingus simple-mpc pcre2el ag wgrep-ag wgrep haskell-mode aggressive-indent prodigy origami dumb-jump cider ggtags circe-notifications circe org-gcal mu4e-alert git-timemachine git-gutter magit hydra default-text-scale smartparens projectile auctex tern-auto-complete tern js2-refactor ac-js2 js2-mode emmet-mode web-mode iedit expand-region multiple-cursors hungry-delete beacon undo-tree virtualenvwrapper elpy flycheck doom-modeline doom-themes tao-theme poet-theme faff-theme zerodark-theme alect-themes moe-theme base16-theme zenburn-theme color-theme-modern company-jedi irony-eldoc company-irony company counsel ace-window htmlize noflet org-bullets which-key try use-package))) - '(sp-escape-quotes-after-insert nil t)) + '(sp-escape-quotes-after-insert nil)) (custom-set-faces ;; custom-set-faces was added by Custom.