From f2d80b0822d1098a41d2abc9c86e3b915fe16552 Mon Sep 17 00:00:00 2001 From: Philippe Dosch <Philippe.Dosch@loria.fr> Date: Thu, 23 Apr 2020 19:26:35 +0200 Subject: [PATCH] Config JS/xelatex/okular --- .emacs | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index aa9f598..e919577 100644 --- a/.emacs +++ b/.emacs @@ -445,6 +445,13 @@ ;; :config ;; (add-hook 'ruby-mode-hook 'ruby-refactor-mode-launch)) +;; Du refactoring pour JS +(use-package js2-refactor + :ensure t + :config + (add-hook 'js2-mode-hook #'js2-refactor-mode) + (js2r-add-keybindings-with-prefix "C-c C-p")) + ;; Request : utilisé par solagraph (LSP/Ruby) (use-package request :ensure t) @@ -639,7 +646,7 @@ '(imenu-use-popup-menu t) '(package-selected-packages (quote - (org-bullets lsp-treemacs helm-lsp company-lsp lsp-ui lsp-mode gnu-elpa-keyring-update markdown-mode flycheck-clang-analyzer flycheck-grammalecte which-key web-mode undo-tree try smex smartscan smart-mode-line-powerline-theme ruby-refactor ruby-electric robe rainbow-delimiters quelpa-use-package projectile plantuml-mode php-extras pdf-tools ox-reveal nlinum neotree multiple-cursors monokai-theme magit js2-mode irony-eldoc imenu-anywhere iedit ido-vertical-mode highlight-indent-guides helm-swoop helm-orgcard helm-flycheck helm-directory helm-css-scss helm-c-yasnippet helm-anything git-timemachine function-args flx-ido feature-mode expand-region edit-server ecb dumb-jump dired+ dic-lookup-w3m counsel company-web company-tern company-php company-jedi company-irony company-inf-ruby company-c-headers company-auctex clang-format avy auto-yasnippet anzu ac-helm diff-hl request))) + (js2-refactor org-bullets lsp-treemacs helm-lsp company-lsp lsp-ui lsp-mode gnu-elpa-keyring-update markdown-mode flycheck-clang-analyzer flycheck-grammalecte which-key web-mode undo-tree try smex smartscan smart-mode-line-powerline-theme ruby-refactor ruby-electric robe rainbow-delimiters quelpa-use-package projectile plantuml-mode php-extras pdf-tools ox-reveal nlinum neotree multiple-cursors monokai-theme magit js2-mode irony-eldoc imenu-anywhere iedit ido-vertical-mode highlight-indent-guides helm-swoop helm-orgcard helm-flycheck helm-directory helm-css-scss helm-c-yasnippet helm-anything git-timemachine function-args flx-ido feature-mode expand-region edit-server ecb dumb-jump dired+ dic-lookup-w3m counsel company-web company-tern company-php company-jedi company-irony company-inf-ruby company-c-headers company-auctex clang-format avy auto-yasnippet anzu ac-helm diff-hl request))) '(show-paren-mode t) '(tool-bar-mode nil)) @@ -696,6 +703,22 @@ (use-package isa-macros) +;; Pour avoir okular +(defun my-LaTeX-mode() + (add-to-list 'TeX-view-program-list '("okular" "okular --unique %o")) + (setq TeX-view-program-selection '((output-pdf "okular"))) +) +(add-hook 'LaTeX-mode-hook 'my-LaTeX-mode) + +;; Pour compiler avec xelatex +(add-hook 'LaTeX-mode-hook + (lambda() + (add-to-list 'TeX-command-list '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil t)) + (setq TeX-command-default "XeLaTeX") + (setq TeX-save-query nil) + (setq TeX-show-compilation t) + (setq compilation-window-height 20))) + ;; ICI ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -- GitLab