Commit Graph

212 Commits

Author SHA1 Message Date
d046d35aeb Added +lsp to Tex-Mode. 2020-03-19 13:42:06 +03:30
4082003fd2 Fix evil keybinds in reftex-mode 2020-03-11 22:53:48 -04:00
120818b07e Bump :lang latex
cdominik/cdlatex@b7af5a9 -> cdominik/cdlatex@a5cb624
TheBB/company-reftex@33935e9 -> TheBB/company-reftex@275ef70
2020-03-06 15:42:35 -05:00
2f61c79a86 Pronunciation in a comment 2020-02-10 10:14:42 +02:00
afe819e2a1 Use map! for nilling out cdlatex's keymap
I previously thought this didn't work, but it seems to now...?
2020-02-08 00:37:13 +02:00
883a326e87 Add cdlatex support in latex: +cdlatex
cdlatex has 4 main functionalities:
+ Math and environments snippets: I've disabled these in favor of
  yasnippet when using :editor snippets by just unbinding the TAB in
  cdlatex's keymap
+ Auto insertion of closing delimiters: disabled in favor of smartparens
+ Fast insertion for some macros: `a becomes \alpha. Kept as-is
+ Fast accent insertion: a'~ becomes \tilde{a}. Kept as-is

I also updated the docs, and added a section explaining how to re-enable
cdlatex's snippets despite having yasnippet.
2020-02-07 13:06:14 +02:00
450eed7268 Bump to vspinu/company-math@a796053
From vspinu/company-math@600e494
2020-02-06 15:20:39 -05:00
06c604503a Don't auto-fill in latex math/markdonw code blocks
Fixes #2453
2020-02-03 13:28:05 -05:00
a9402cfb55 Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
4cc14389e8 PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
fb13b902b0 Minor comment/doc revision & refactors 2019-11-21 14:46:45 -05:00
e105c93b17 lang/latex: fix end-of-file syntax error 2019-11-21 14:04:55 -05:00
604cde933f Refactor Skim forward-search fix 2019-11-21 00:49:37 -05:00
34bc6650b1 lang/latex: Support forward search with Skim 2019-11-20 12:09:23 +01:00
a1f6f77ca0 Remove redundant flyspell-mode hook in latex
flyspell-mode is already on text-mode-hook
2019-10-24 13:39:03 -04:00
3140ab7337 lang/latex: fix advice name conflict #1849 2019-10-23 22:28:44 -04:00
237d2d3c3a lang/latex: fix fix for fill-paragraph in latex-mode #1849 2019-10-23 14:14:33 -04:00
da765bebda lang/latex: fix rainbow-delimiters-mode 2019-10-22 23:23:53 -04:00
1e90bc8c14 lang/latex: fix typo 2019-10-22 23:23:41 -04:00
d52be9de3e lang/latex: fix loading style files #1910. 2019-10-17 12:05:43 -04:00
b0c780b7dd lang/latex: fix setting variables #1910. 2019-10-16 15:43:05 -04:00
31c95042c3 lang/latex: fix autofill in \item's #1849 2019-10-03 20:49:04 -04:00
921e36decd Merge pull request #1850 from alexandergraul/fix-latex-documentation
lang/latex: update docs wrt latex viewers
2019-10-03 12:10:43 -04:00
db2901af71 Update documentation of recognized latex viewers
The user documentation of +latex-viewers did not keep up with changes to
the variable. This commit realigns its documentation.
2019-10-03 12:56:56 +02:00
a7e288c191 Merge pull request #1825 from UndeadKernel/fix_pdf-viewers
lang/latex: +pdf-viewers ordering and hook type-o
2019-09-26 14:31:00 -04:00
7ec6a32c30 lang/latex: associate .tex with LaTeX-mode 2019-09-26 14:26:47 -04:00
5385ee4f35 lang/latex: +pdf-viewers ordering and hook type-o
Previously, the last viewer set in `+latex-viewers` would take
precedence. The list is now reversed before applying changes so that the
first set has precedence.

The wrong hook variable was used to revert view buffers after compilation.
2019-09-26 14:35:44 +02:00
1c05773c39 General, minor refactors & comment revision 2019-09-11 23:41:08 -04:00
3fae411918 lang/latex: refactor default viewer resolution
And add evince to list of auto-detected viewers.

This should fix an issue where preview-pane was used regardless of what
viewer(s) were available.
2019-08-27 00:11:52 -04:00
76cacb5bfe 💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
fbcb4e6973 Minor refactor across the board 2019-03-04 20:47:26 -05:00
3873ab3875 lang/latex: use +latex-bibtex-file 2019-03-03 02:18:02 -05:00
85b1983c89 Merge pull request #1195 from xhcoding/develop
Add: sumatrapdf as pdf viewer on Windows
2019-02-24 21:05:29 -05:00
7c5eefee3e General, minor refactoring 2019-02-24 13:58:56 -05:00
5da216a1c5 Add: sumatrapdf as pdf viewer on Windows 2019-02-24 17:44:06 +08:00
69ed1a4a99 feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
9f249de569 lang/latex: remove +latex-bibtex-file
An unnecessary layer of abstraction on top of two straight-forward
variables, reftex-default-bibliography and
bibtex-completion-bibliography.
2019-01-05 17:46:37 -05:00
c3c9c01bad lang/latex: rewrite README 2019-01-05 17:45:42 -05:00
de2e41774f latex fix: enable spell checking correctly
The varible `TeX-mode-local-vars-hook` is not called correctly as AucTeX
reports that the major mode in a LaTeX file is `latex-mode`. Instead,
let's use `latex-mode-local-vars-hook` to enable flyspell.

This change enables disabling the feature of flyspell of immediately
spellchecking a document with:

`(setq-hook! 'TeX-mode-hook +spellcheck-immediately nil)`
2019-01-03 13:49:00 +01:00
3f195614d9 Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
d6cb0ec5f5 General cleanup & minor refactoring 2018-12-22 04:25:15 -05:00
4daa9271a0 Introduce general.el & rewrite map!
+ Now uses an overriding keymap for leader keys, so that it is always
  available, even outside of normal/visual states. In insert/emacs
  states, or in sessions where evil is absent, an alternative prefix is
  used for leader/localleader keys. See these variables:
  + doom-leader-prefix
  + doom-leader-alt-prefix
  + doom-localleader-prefix
  + doom-localleader-alt-prefix
+ Keybinds now support alternative prefixes through the new :alt-prefix
  property. This is useful for non-evil users and non-normal evil
  states. By default, this is M-SPC (leader) and M-SPC m (localleader).
+ Removed +evil-commands flag from config/default (moved to
  feature/evil/+commands.el).
+ config/default/+bindings.el has been split into
  config/default/+{evil,emacs}-bindings.el, which one is loaded depends
  on whether evil is present or not. The latter is blank, but will soon
  be populated with a keybinding scheme for non-evil users (perhaps
  inspired by #641).
+ The define-key! macro has been replaced; it is now an alias for
  general-def.
+ Added unmap! as an alias for general-unbind.
+ The following modifier key conventions are now enforced for
  consistency, across all OSes:
    alt/option      = meta
    windows/command = super
  It used to be
    alt/option      = alt
    windows/command = meta
  Many of the default keybinds have been updated to reflect this switch,
  but it is likely to affect personal meta/super keybinds!

The map! macro has also been rewritten to use general-define-key. Here
is what has been changed:

+ map! no longer works with characters, e.g. (map! ?x #'do-something) is
  no longer supported. Keys must be kbd-able strings like "C-c x" or
  vectors like [?C-c ?x].
+ The :map and :map* properties are now the same thing. If specified
  keymaps aren't defined when binding keys, it is automatically
  deferred.
+ The way you bind local keybinds has changed:

    ;; Don't do this
    (map! :l "a" #'func-a
          :l "b" #'func-b)
    ;; Do this
    (map! :map 'local "a" #'func-a
                      "b" #'func-b)

+ map! now supports the following new blocks:
  + (:if COND THEN-FORM ELSE-FORM...)
  + (:alt-prefix PREFIX KEYS...) -- this prefix will be used for
    non-normal evil states. Equivalent to :non-normal-prefix in general.
+ The way you declare a which-key label for a prefix key has changed:

    ;; before
    (map! :desc "label" :prefix "a" ...)
    ;; now
    (map! :prefix ("a" . "label") ...)

+ It used to be that map! supported binding a key to a key sequence,
  like so:

    (map! "a" [?x])  ; pressing a is like pressing x

  This functionality was removed *temporarily* while I figure out the
  implementation.

Addresses: #448, #814, #860
Mentioned in: #940
2018-12-22 04:14:43 -05:00
5e96b42ccc lang/latex: fix TeX-latex-mode error
Caused because use-package is creating an autoload for TeX-latex-mode as
if it were in the tex package, but it's in the latex package, instead.

Since auctex already autoloads TeX-latex-mode, there's no need to set
our own.
2018-12-06 19:07:36 -05:00
752b92570d lang/latex: defconst -> defvar #955
Allow +latex-viewers to be set sooner.
2018-10-12 14:20:45 -04:00
675f4fa821 lang/latex: enable flyspell-mode after local-vars
Gives setq hooks and file/directory-local variables the opportunity to
take effect before flyspell activates.
2018-10-06 20:56:18 -04:00
7d3ffdff06 Remove third line in section headers
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
ee4d317293 lang/latex: improve smartparens compatiblity
Also fixes special quote insertion (mentionde in #485)
2018-08-28 01:27:56 +02:00
9653185478 lang/latex: fix PDF Tools viewer on MacOS 2018-08-11 01:59:37 +02:00
7c4a353228 lang/latex: remove redundant visual-line-mode hook 2018-08-02 16:32:39 +02:00
128eb611e0 lang/latex: remove +preview-pane flag
Reported by @UndeadKernel
2018-08-02 16:15:10 +02:00