Commit Graph

114 Commits

Author SHA1 Message Date
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
Maxi Wolff 69027b8eec
[latex] Replace auctex-latexmk with a fixed fork
Fixes #15541
Please make sure to remove the old package to
trigger a reinstallation, sometimes this is not
happening automatically.
2022-05-29 16:16:37 +02:00
SpacemacsBot 50c8651b7d [bot] "documentation_updates" Wed May 11 17:49:13 UTC 2022 2022-05-11 19:49:23 +02:00
Dan Kessler 06f790d4cf [latex] add, configure, and document evil-tex package
Add support for the very useful evil-tex package to the latex layer.

Of particular note, this package provides numerous text objects for latex, e.g.,
latex-style quotes and double quotes, and also provides valuable toggles for
managing delimeters.

I've mapped its "magnificent toggles" (which are otherwise under a `mt` prefix)
to `SPC m q` (q for "quite magnificent") to avoid interfering with any standard
evil features.

I added brief documentation for evil-tex to the latex layer's README, which
primarily refers the reader to evil-tex's thorough documentation rather
than duplicating it in the readme.
2022-05-11 19:31:43 +02:00
emiltoacs c017aa9617 [lsp-latex] Fix warning void variable TeX-view-program-selection
Remove the call to =spacemacs//latex-setup-pdf-tools= in latex/init-lsp-latex
since it is already called in the init-auctex which is the main package
2022-01-01 14:38:35 +01:00
Julien Debon c93b6726bc LaTeX: Fix broken key binding 2021-11-02 21:28:55 +01:00
Julien Debon 5b3bb908a1
LaTeX: Remove duplicate latex-refresh-preview (#15091) 2021-10-15 02:18:37 +00:00
SpacemacsBot a3b40d2318
[bot] "documentation_updates" Sun Sep 5 06:17:34 UTC 2021 (#15035) 2021-09-05 02:49:47 -04:00
Eugene Yaremenko 848ae48373
Fix another link 2021-09-04 22:49:40 +03:00
Eugene Yaremenko ec19d6ac98
Fix link 2021-09-04 22:44:32 +03:00
Maxi Wolff b66e60cabb
[latex] Provide more robust version of latex-setup-pdf-tools 2021-09-04 21:35:49 +02:00
Daniel Nicolai 073fe39b38
latex layer add auto configure pdf-tools and open in split window
This commit makes the latex layer automatically configure pdf-tools as
latex pdf-viewer if the pdf layer is installed.

Additionally it adds a layer variable to configure pdf-tools to open in a
split-window. (Strangely, finding out how to achieve that is far from trivial,
and also not easy to google, because many hits do not provide the "correct"
answer (see the typical example
[here](https://emacs.stackexchange.com/questions/28056/spacemacs-latex-how-to-make-view-command-tile-vertically-with-emacs-window)).

Update layers/+lang/latex/funcs.el

Co-authored-by: Lucius Hu <1222865+lebensterben@users.noreply.github.com>
2021-09-04 21:14:45 +02:00
Cédric M. Campos 31222468e6 [latex] Doc. TeX engine. Corrects typos, adds on TeX-command-master. 2021-08-22 21:12:15 +02:00
Maximilian Wolff 500e58341c
Defer loading of lsp servers up to when the buffer is visible 2021-06-06 22:26:31 +02:00
Maximilian Wolff ad8acf6d51 [latex] Add missing binding for 'org-ref-insert-cite-key with lsp 2021-05-09 20:37:02 +00:00
Simon Virenfeldt 693a0110ff Fix call to deleted method in latex layer
In commit f136f46 spacemacs//init-jump-handlers-MODE was removed,
which is used by the latex layer. Change to call to add-to-list instead.
2021-04-15 21:49:32 +02:00
Lucius Hu 2713ec8789 Fix #14641 2021-04-15 21:42:17 +02:00
Lucius Hu a03585c4b5 fixup! latex: refactor 2021-04-05 11:36:54 +02:00
Lucius Hu cd0c914ba1 latex: refactor
- Moved backend determination to `config.el`
- Replaced unnecessary backquote construct with simple quotation
- Replaced `pcase` form with only one-arm with `when` or `unless` form
- Refactored function
2021-04-04 12:48:21 +02:00
Lucius Hu 7740fea4e1 dumb-jump: Replace obsolete interface with xref-backend
- Add `dumb-jump-xref-activate` hook to `xref-backend-functions`, which
  add a fallback option, i.e. `dumb-jump`, when no better alternatives
  is availabe
- Removed the obsolte interface `dumb-jump-go` from the following layers:
  - clojure
  - latex
  - vue
- The global binding `SPC j q` requires the obsolte function
  `dumb-jump-quick-look` and is therfore removed
2021-03-31 18:50:44 +02:00
syl20bnr 97cd83e169 Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
syl20bnr d55a9e2e67 Update header for year 2021 2021-03-25 22:59:32 -04:00
Maximilian Wolff 6018580958 Make layers activate/deactivate the right version of smartparens
Before layers were sometimes only activating the non strict
version of smartparens. Also some were only disabling
the non-strict version leaving some of the smartparens
advices intact.

With this PR, all layers set the right version of smartparens.
Also if the layer is trying to disable it a standard function
will now take care to disable all versions of smartparens.
2021-03-16 17:47:15 +00:00
duianto 9375d6f54d Add missing space before defun args parens 2021-02-10 08:51:55 +01:00
Maximilian Wolff ed278491ee [latex] Fallback to company-auctex when company-math fails
Classic completions now use company-math if available
however if this fails it should fall back to the
original system to avoid issues with existing
configs.
2021-01-10 20:10:31 +00:00
Maximilian Wolff 9636cc84c6 [latex] Fix small typo in docs 2021-01-10 20:07:24 +00:00
SALVATI Sylvain 4b8b8bd608 [latex] add support for company-math in latex layer
Combining company-math and company-auctex

Updating documentation and make math-symbol-lists requiring company-math

Back to original readme

math-symbol-lists is used elsewhere and should not be made dependent on the use of company-math

using the result of company-auctex-macros

Add explicit dependency of company-amth to math-symbol-lists
2021-01-10 20:03:17 +00:00
emacspace 35b8e063de documentation formatting: Sun Dec 13 10:32:28 UTC 2020 2020-12-13 21:56:49 +01:00
Lucius Hu 2d1d338f46
LaTeX: improved i18n support and documentation (#14204)
* LaTeX: improved i18n support and documentation

- Added a new layer config variable `latex-build-engine`, a thin wrapper of
  `TeX-engine`:
  - For better support of non-european character set rendering, `xetex` is
    chosen when it's found on PATH, and when eithe `chinese` or `japanese`
    layer is enabled
- Added a new layer config variable `latex-enable-preview`:
  - When non-nil, `auto-revert-mode` is added to `doc-view-mode-hook`
  - Previously this is described in documentation but requires users to set it
    manually
- Documentation:
  - Added a section that lists are layer config variables
  - Improved all documentation examples, s.t. they are valid elisp forms to be
    evaluated directly
  - Improved the section on backend:
    - Emphsized that LSP layer is always preferred
    - Provided information on installing the language server
  - Added the default value for layer config variable, `latex-nofil-env`

* minor edits

- Updated CHANGELOG.develop
- Renamed `latex-enable-preview` to `latex-refresh-preview`
- Replaced a fuzzy intra-link in documentation with a proper link

Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
2020-12-13 10:33:04 +01:00
Maximilian Wolff 0d609c09d4
[latex] Fix broken binding for `SPC m R TAB`
Fixes key warning mentioned in #12975
2020-11-12 22:03:47 +01:00
emacspace 45691dd545 documentation formatting: Sat Oct 31 08:55:13 UTC 2020 2020-10-31 13:07:55 +01:00
Maximilian Wolff abac41e8d0
Fix small doc typos in shell and latex layers 2020-10-30 21:44:17 +01:00
Maximilian Wolff 57baf7d237 Add lsp support to latex layer 2020-10-30 21:06:34 +01:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Matt Kramer 5fcd84d845
[latex] Init jump handlers in LaTeX-mode-hook
AUCTeX is weird: It reports major-mode as latex-mode (since TeX-latex-mode is
applied as an :override advice on the basic built-in latex-mode), but its mode
hook is LaTeX-mode-hook, not latex-mode-hook (which is only run by the built-in
latex-mode). Since bind-map uses the value of major-mode, we must pass
latex-mode to spacemacs|define-jump-handlers. But then
spacemacs//init-jump-handlers-latex-mode gets added to latex-mode-hook, which
never gets run. So we must manualy add it to LaTeX-mode-hook.

[latex] Use dumb-jump as primary jump handler

Otherwise, the default is used, which prioritizes evil-goto-definition over
dumb-jump-go. Dumb Jump tends to Just Work, while evil-goto-definition doesn't
handle LaTeX very well, at least not without a TAGS table.

[latex] Update CHANGELOG.develop
2020-06-11 01:18:47 +02:00
Jannis Dohm 190b3e9f97 Added additional tabular environments
Added additional tabular environments to latex-nofill-env variable.
This deactivates the automatic fill in a few more tabular environments.
2020-06-07 18:27:10 +02:00
duianto 0a06c7ca6b Fix filenames in layer file headers
Also fixed the groovy/funcs.el header which said: Java
2020-02-20 00:07:30 +01:00
wangtianshu 235ed43010 Fix ~SPC m ;~ binding 2020-01-20 15:41:20 +01:00
git@f-t.me 25a7111ee1 [latex] added ConTeXt mode to the key bindings 2020-01-08 17:58:26 +01:00
Max Willsey e9ac45af30 [latex] Fix README to say auto-fill on by default. 2019-12-15 11:01:17 +01:00
Olivier Verdier 7818fa3ccf add bindings to navigate between errors in tex mode 2019-06-28 20:32:11 +02:00
et2010 2e6e69eeff latex layer: add company-reftex 2019-05-28 11:47:03 +02:00
emacspace c7c348a676 documentation formatting: Sun May 26 20:58:52 UTC 2019 2019-05-27 01:23:35 +03:00
Anton-Latukha f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
Anton-Latukha 2ee74f55da layers: lang: new structure: add DSL (&markup), framework, util
layers: lang: mv framework -> programming/framework

layers: programming: framework: upd
2019-05-15 21:05:09 +03:00
JAremko 77c680160e Add placeholder tags 2019-05-05 20:40:47 +03:00
emacspace 202da65b1c documentation formatting: Sun Apr 21 20:04:25 UTC 2019 2019-04-22 23:16:20 +02:00
JAremko 23842fa77e Simplify descriptions of layers 2019-04-21 22:09:34 +03:00
emacspace 45276bd96f documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00
emacspace 901f35849a documentation fixes: Tue Oct 23 14:18:21 UTC 2018 2018-10-23 23:38:16 +03:00