Commit Graph

29 Commits

Author SHA1 Message Date
7c9e96da87 General module refactor 2019-03-02 02:04:11 -05:00
8832737671 Adopt seagle0128/doom-modeline for :ui modeline
And remove obsolete :ui doom-modeline module.

Relevant to: #136, #921
2019-03-02 01:34:14 -05:00
36a97b28aa Fix flickering PDFs in pdf-view-mode #1107 2019-01-22 19:29:13 -05:00
6f0d01a29e pdf: remove doom-leader-key from define-key!
This is no longer needed now that doom uses general.el.
2019-01-07 14:01:19 -08:00
4036f3dad1 pdf-tools: fixes for the new modeline module
Sneak in a comment that addresses some TODOs.
2019-01-02 15:16:05 +01:00
239c183b70 tools/pdf: recognize modeline and doom-modeline 2018-09-26 12:55:22 +02:00
20cf412c96 tools/pdf: revert fd7f498
Causes an issue where cursor invisibility persists through a workspace
session restore.

Relevant to #892
2018-09-21 10:47:26 -04:00
fd7f498858 tools/pdf: hide cursor in pdf-view-mode #892 2018-09-19 19:27:46 -04:00
df233eb1a9 lang/pdf: fix compatibility with +new modeline 2018-07-29 17:41:58 +02:00
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
0ef522bbf2 tools/pdf: close annotation lists when killing pdf 2018-06-15 03:42:01 +02:00
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
99daa9bd43 Fix: restore the display of current and total pages in PDF docs
A refactoring spree introduced a bug by incorrectly making a symbol
a function. This fixes this.
2018-06-12 15:32:39 +02:00
32a2a2b64d General, minor refactor
+ Group hooks with add-hook!
+ Sharpquote elfeed call
+ Extract elfeed buffer detector into function and ensure idempotency of
  doom-real-buffer-functions
2018-06-03 15:51:59 +02:00
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
2ffef6edce Fix void-variable +modeline error from outdated load! call 2018-05-28 12:43:25 +02:00
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
485d0dfd39 Merge branch 'develop' into patch-1 2018-04-18 00:21:45 -04:00
5025c40eae Update config.el
Final version
2018-04-17 22:26:20 -05:00
b8c0491245 Update config.el
Fixed the error of removing the `q` keybinding.
2018-04-16 09:56:32 -05:00
793b94a937 Update config.el
Fix doom leader not working in pdf mode. 

Replaces SPC default that moves the document down a page.
2018-04-15 22:18:34 -05:00
12fd06d4e6 Uncluttered custom modeline to show page numbers
Add rules to handle windows that should not be considered as popups.
2018-04-12 16:03:48 +02:00
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
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
138ec2bf07 Remove manual loading of pkg-autoloads files
No longer necessary as of 0c80bb42
2018-02-28 17:57:30 -05:00
634844e582 tools/pdf: fix epdfinfo prompt at compile time; autoload pdf-tools 2018-02-18 20:10:52 -05:00
6094d8407d tools/pdf: defer pdf-tools 2018-02-14 07:47:22 -05:00
eb685d7cc4 tools/pdf: conform to code conventions; no-byte-compile packages.el 2018-02-10 02:14:57 -05:00
d3167dfc19 add pdf-tools settings 2018-02-06 01:07:36 +01:00