Commit graph

116 commits

Author SHA1 Message Date
Patrick Elliott
968fb60bce This is the default in auctex anyway 2018-07-12 18:34:13 +02:00
Patrick Elliott
00af6e66a7 Auctex already supports pdf tools 2018-07-12 18:32:23 +02:00
Patrick Elliott
0dc2feec46 Remove redundant package! declaration 2018-07-12 17:07:34 +02:00
Patrick Elliott
e8827048b8 sp already sets up latex-specific features 2018-07-12 16:59:24 +02:00
Henrik Lissner
5d28a4f100
Fix invalid-function: PDF Tools error in latex
Due to a forgotten quote on a list form.

Reported by @xarthurx
2018-06-28 20:42:41 +02:00
Patrick Elliott
e88f413d4a factored out setting 2018-06-26 02:49:01 +02:00
Patrick Elliott
e5fc8b6c81 Merge branch 'develop' of https://github.com/hlissner/doom-emacs into develop 2018-06-26 02:19:25 +02:00
Henrik Lissner
8a4f15b01c
Refactor smartparens default rules
Move them to config/default, but move single-lang-specific ones to their
respective modules.
2018-06-25 15:54:38 +02:00
Henrik Lissner
f6dc6ac74e
Refactor out map.el usage
After some profiling, it turns out map-put and map-delete are 5-7x
slower (more on Emacs 25) than delq, setf/alist-get and add-to-list for
small lists (under 250 items), which is exactly how I've been using
them.

The only caveat is alist-get's signature is different on Emacs 25, thus
a polyfill is necessary in core-lib.
2018-06-23 19:53:54 +02:00
Patrick Elliott
af4fd8266f removed redundant config from latex module 2018-06-22 12:22:03 +02:00
Patrick Elliott
b5cfd3afc0 minor refactor of bibtex module 2018-06-22 12:11:10 +02:00
Henrik Lissner
99902b29f9
Merge pull request #711 from patrl/develop
Added Zathura as a viewer option
2018-06-22 01:51:15 +02:00
Henrik Lissner
445ca59b67
Correct make-buffer-local => make-local-variable
Reported by @UndeadKernel
2018-06-22 01:49:19 +02:00
Patrick Elliott
b096214f28 fixed typo 2018-06-21 17:15:20 +02:00
Patrick Elliott
64f77fe017 Added Zathura as a viewer option, via the feature +zathura (n.b. Zathura with synctex is already supported in AUCTeX) 2018-06-21 12:51:17 +02:00
Henrik Lissner
746d90c330
make-variable-buffer-local -> make-local-variable
It is more correct to use the latter.
2018-06-19 13:49:18 +02:00
Henrik Lissner
6808c46b58
💥 Change set-popup-rule! usage
Now accepts a flat plist of all its former parameters, including new
:parameters and :actions properties to increase your control over the
fate of your windows.

The old usage of set-popup-rule! is deprecated and may not work right!

The :ui popup module has also seen a major refactor to improve
efficiency and load times.

Sorry! This is the last "big" change before 2.1!
2018-06-18 02:34:16 +02:00
Henrik Lissner
17981d6a61
Conform hook names to conventions
Also minor reformatting & comment corrections.
2018-06-17 02:25:12 +02:00
Henrik Lissner
4a0b98ef1c
lang/latex: fix removal of master file prompt
It makes me sad that this is necessary. Friends don't let friends use
anonymous functions for their package's hooks.
2018-06-15 21:16:37 +02:00
Henrik Lissner
9e85acec2c
Append flyspell-mode to LaTeX-mode-hook #654
If run too soon, the user has no opportunity to change
+spellcheck-immediately.
2018-06-15 21:00:38 +02:00
Henrik Lissner
d8b1e469bc
Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00
Henrik Lissner
6dc413c044
Remove :latex-bibtex-{file,dir} settings
Setting a single variable is preferrable to using a setting to abstract
it.
2018-06-12 21:07:34 +02:00
UndeadKernel
dfa955dd2c Better looking default indentation for nested latex lists 2018-06-08 16:10:00 +02:00
UndeadKernel
363407d9e6 Fix C-g resetting latex windows after opening the reftex-toc 2018-06-07 13:53:13 +02:00
Henrik Lissner
7b1a83079d
Fix C-j being treated as a prefix in lang/latex 2018-06-05 10:45:26 +02:00
Henrik Lissner
1e81a35461
Minimize dependence on map!
This is in preparation for general.el integration coming in 2.1.1. It is
very likely that map! will change (and even more, be split into several
macros). Not much, but change none-the-less. Specifically, the state
keywords (e.g. :nvi, :n, :i) will be removed in favor of a :state
property that takes a list, e.g. (normal visual insert).

In any case, both map! and general are also relatively expensive
compared to define-key and evil-define-key* (and the new define-key!
macro), so use that when we can.

This also means changes to either API won't affect Doom's modules in the
long term.
2018-06-03 15:46:00 +02:00
Henrik Lissner
e5a4415d58
General, minor reformatting/refactor 2018-06-02 13:58:04 +02:00
Henrik Lissner
4f4495ca2a
Move ispell-dictionary default to feature/spellcheck #630
Makes more sense to be here.
2018-06-01 02:25:38 +02:00
Henrik Lissner
4b0e3af424
Set default ispell-dictionary sooner #630
This makes it easier to change and won't override user's customizations.
2018-06-01 02:23:24 +02:00
Henrik Lissner
acaba8ef3b
lang/latex: fix void-variable TeX-view-program-list error 2018-05-30 00:37:38 +02:00
Henrik Lissner
fbce2388ab
lang/latex: general refactor & load optimization 2018-05-29 14:13:31 +02:00
Henrik Lissner
1a452b6842
💥 Change first arg of load! macro
load!'s first argument is no longer a symbol (that will cause
void-variable errors now) to save on unnecessary interning and simplify
compile-time logic. It accepts any valid form that evaluates to a string
now.

If you use load!, you need to change its argument to a string!

e.g. (load! +my-module) => (load! "+my-module")
2018-05-27 12:52:28 +02:00
Henrik Lissner
0bdf638813
lang/latex: refactor package loading mechanism 2018-05-25 02:18:29 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
505ceb3530
lang/latex: major refactor & reformatting 2018-05-09 12:38:20 +02:00
Julien Wintz
b89431eef8
Towards fixing byte compilation. 2018-05-09 12:11:41 +02:00
UndeadKernel
aec77d5f1e Enable rainbow mode in LaTeX buffers. 2018-04-25 11:03:56 +02:00
Henrik Lissner
dc33c72d19
Refactor removal of default smartparens rules for certain modes 2018-04-18 18:29:48 -04:00
UndeadKernel
717f6e3cfe Sneak in some more nice-to-have LaTeX fontifications. 2018-04-11 13:03:59 +02:00
UndeadKernel
0a23c30e06 Make PDF tools and LaTeX work better together.
Update the README file to reflect the available flags.
2018-04-11 13:02:58 +02:00
Henrik Lissner
d7672dad46
lang/latex: minor refactor & conform to doom conventions 2018-03-07 21:21:17 -05:00
Henrik Lissner
636c895f23
lang/latex: improve responsiveness by removing sp rules #452 2018-03-07 03:04:10 -05:00
Henrik Lissner
0cfe8e305e
Bring back aggressive loading of autoloads files #446
package-initialize, once again, isn't called on every startup, which
means package autoloads won't be loaded in most interactive sessions, so
must do it manually for certain packages.
2018-03-07 03:01:17 -05:00
Henrik Lissner
138ec2bf07
Remove manual loading of pkg-autoloads files
No longer necessary as of 0c80bb42
2018-02-28 17:57:30 -05:00
Henrik Lissner
6c4e048c23
General refactor & cleanup 2018-02-14 07:47:22 -05:00
fuxialexander
0a655e4f52 Add: +skim as pdf viewer 2018-02-05 10:32:18 +08:00
UndeadKernel
56a3c81778 Correct def-setting and use string-empty-p.
Change default ivy-bibtex behavior to insert bibliography.
2018-01-09 14:19:02 +01:00
Undead Kernel
e91cb11243 Latex module revamped
Latex language module with previews, latexmk, reftex, bibtex and others.
Completion with company mode.
Selection of bibliography using Ivy or Helm.
Later preview panel or okular as viewers.
LatexMk for compiling code.
Prettified indentation with adaptive-wrap along with good indentation of environments.
Additional fontification of common commands.
2018-01-08 19:18:37 +01:00
Henrik Lissner
4024437cfb
lang/latex: don't forcibly hide modeline 2018-01-07 00:35:59 -05:00
Henrik Lissner
91357a3e5d
💥 Replace core-popup with new feature/popup module
This is a breaking change! Update your :popup settings. Old ones will
throw errors!

Doom's new popup management system casts off its shackles (hur hur) and
replaces them with the monster that is `display-buffer-alist`, and
window parameters.

However, this is highly experimental! Expect edge cases.  Particularly
with org-mode and magit (or anything that does its own window
management).

Relevant to #261, #263, #325
2018-01-06 02:17:43 -05:00