Commit graph

81 commits

Author SHA1 Message Date
Henrik Lissner
f604ce6d01 Minor refactors & reformatting 2021-05-25 10:35:21 -04:00
Henrik Lissner
daa50557a4 tools/pdf: leave it to user to build epdfinfo
Trying to do this automatically is buggy to the point of insanity. It's
not reliable enough to use as a :post-build target for the pdf-tools
package.

Better to fail gracefully, let the user know what they must do, and let
them do it at their own discretion.
2021-05-25 00:11:58 -04:00
Henrik Lissner
eb9b7b0bbc tools/pdf: build epdfinfo when pdf-tools is built
This fixes a number of UX issues with pdf-tools trying to eagerly build
epdfinfo at the least appropriate times, e.g. when org-mode processes
org-pdf-tools links.

Mentioned in #5086
2021-05-24 13:34:24 -04:00
Henrik Lissner
c525666688 Bump :tools
DamienCassou/auth-password-store@468bba2 -> DamienCassou/auth-password-store@fa8b964
Silex/docker.el@ed0cdf0 -> Silex/docker.el@bc2dc09
cjohansson/emacs-ssh-deploy@cc91b56 -> cjohansson/emacs-ssh-deploy@fce4ea3
editorconfig/editorconfig-emacs@9da2dab -> editorconfig/editorconfig-emacs@e10fa22
emacs-lsp/dap-mode@49af1b8 -> emacs-lsp/dap-mode@4347846
emacs-lsp/lsp-ivy@4dcb635 -> emacs-lsp/lsp-ivy@bccd860
emacs-lsp/lsp-mode@3dc87f6 -> emacs-lsp/lsp-mode@aec8968
emacs-lsp/lsp-ui@efae00e -> emacs-lsp/lsp-ui@cb02972
emacsorphanage/quickrun@57db985 -> emacsorphanage/quickrun@35e91f4
jacktasia/dumb-jump@8bc1950 -> jacktasia/dumb-jump@8f70acb
joaotavora/eglot@b06589b -> joaotavora/eglot@a5b7b7d
magit/forge@f4c95dd -> magit/forge@37aa4e4
magit/magit@577f16d -> magit/magit@e378827
millejoh/emacs-ipython-notebook@142ff50 -> millejoh/emacs-ipython-notebook@09af858
purcell/envrc@110a221 -> purcell/envrc@8a9a142
realgud/realgud@34557f8 -> realgud/realgud@7a70b27
spotify/dockerfile-mode@3b13745 -> spotify/dockerfile-mode@ad06a41
tkf/emacs-request@accd430 -> tkf/emacs-request@f3a5b43
tmalsburg/helm-bibtex@ca09076 -> tmalsburg/helm-bibtex@9f6ea92
vedang/pdf-tools@35e12b0 -> vedang/pdf-tools@d262cf9
yoshiki/yaml-mode@fc5e1c5 -> yoshiki/yaml-mode@3a57058
zx2c4/password-store@918992c -> zx2c4/password-store@4e73cdc
2021-05-22 22:43:56 -04:00
Henrik Lissner
ea9753a5f2 Fix #4989: pdf scaling on retina displays 2021-05-09 20:51:15 -04:00
Henrik Lissner
437f122969 tools/pdf: suppress "file is large" prompts for pdfs 2021-04-15 14:19:18 -04:00
Henrik Lissner
ba0ddb71ee Reload pdfs when pdf-view-midnight-colors changes
Co-authored-by: tecosaur <tec@tecosaur.com>
2021-03-22 21:11:22 -04:00
Henrik Lissner
fe6981b245 Bump :tools pdf
flatwhatson/pdf-tools@eb6d406 -> vedang/pdf-tools@35e12b0

The original politza/pdf-tools is no longer maintained (?), and the PR
we were pullin from has been merged into a new, maintained fork at
vedang/pdf-tools.

Might address #4750
2021-03-08 10:25:09 -05:00
Henrik Lissner
e858e254b0 Bump :tools
editorconfig/editorconfig-emacs@f830b86 -> editorconfig/editorconfig-emacs@048c553
emacs-helm/helm-pass@ed5798f -> emacs-helm/helm-pass@4ce46f1
emacs-lsp/dap-mode@5450af5 -> emacs-lsp/dap-mode@aa15b9c
emacs-lsp/helm-lsp@fc09aa0 -> emacs-lsp/helm-lsp@e934fea
emacs-lsp/lsp-mode@3ca25e6 -> emacs-lsp/lsp-mode@c3cbadc
emacs-lsp/lsp-ui@732992a -> emacs-lsp/lsp-ui@0ac3e12
jacktasia/dumb-jump@ff9fc93 -> jacktasia/dumb-jump@f6a1165
joaotavora/eglot@398b81e -> joaotavora/eglot@a2d1fc9
magit/forge@8683b14 -> magit/forge@fa80a87
magit/magit@62dfe5a -> magit/magit@1c60edc
millejoh/emacs-ipython-notebook@069e54c -> millejoh/emacs-ipython-notebook@4ff76e5
nicolaisingh/saveplace-pdf-view@b037091 -> nicolaisingh/saveplace-pdf-view@54ed966
spotify/dockerfile-mode@58b7380 -> spotify/dockerfile-mode@ed1d04c
tkf/emacs-request@0183da8 -> tkf/emacs-request@accd430
tmalsburg/helm-bibtex@94807a3 -> tmalsburg/helm-bibtex@ca09076
zx2c4/password-store@f152064 -> zx2c4/password-store@918992c

Fix #4677
2021-02-25 13:59:43 -05:00
Henrik Lissner
6ef517353b
Bump :tools
NicolasPetton/pass@919d8e3 -> NicolasPetton/pass@a095d24
abo-abo/define-word@3af6825 -> abo-abo/define-word@6e4a427
editorconfig/editorconfig-emacs@da84471 -> editorconfig/editorconfig-emacs@d73333c
emacs-lsp/dap-mode@041db8e -> emacs-lsp/dap-mode@612388d
emacs-lsp/lsp-mode@61443f3 -> emacs-lsp/lsp-mode@dbfbe1a
emacs-lsp/lsp-ui@49bc513 -> emacs-lsp/lsp-ui@94673cd
emacs-straight/project@0003fe4 -> emacs-straight/project@a1997af
emacsorphanage/terraform-mode@63fafc6 -> emacsorphanage/terraform-mode@a9fa5bd
joaotavora/eglot@2172641 -> joaotavora/eglot@4c85df2
k1LoW/emacs-ansible@cf6b8f0 -> k1LoW/emacs-ansible@40af0d2
magit/forge@953764d -> magit/forge@e340c2b
magit/magit@acfe22a -> magit/magit@2145477
millejoh/emacs-ipython-notebook@a019ee3 -> millejoh/emacs-ipython-notebook@917f2a0
nicolaisingh/saveplace-pdf-view@88e07be -> nicolaisingh/saveplace-pdf-view@b037091
realgud/realgud@ff66001 -> realgud/realgud@f73c039
spotify/dockerfile-mode@d31f768 -> spotify/dockerfile-mode@6a56c1c
tmalsburg/helm-bibtex@8d84d8b -> tmalsburg/helm-bibtex@1bb81d7
tmalsburg/helm-bibtex@8d84d8b -> tmalsburg/helm-bibtex@1bb81d7
tmalsburg/helm-bibtex@8d84d8b -> tmalsburg/helm-bibtex@1bb81d7
tumashu/posframe@e1552c8 -> tumashu/posframe@ae8ac91
2021-01-05 01:54:04 -05:00
Henrik Lissner
a5af17b6aa
Fix #4397: call pdf-tools-install-noverify
So pdf-tools has a chance to set up its hooks.
2020-12-09 17:17:22 -05:00
Henrik Lissner
ea207368d9
Bump :tools
emacs-lsp/lsp-mode@5005ebe -> emacs-lsp/lsp-mode@e1c4241
emacs-straight/project@162d892 -> emacs-straight/project@67216fb
emacs-straight/rainbow-mode@fdff98b -> emacs-straight/rainbow-mode@949166c
emacsorphanage/quickrun@fd96577 -> emacsorphanage/quickrun@8008780
jacktasia/dumb-jump@85f898e -> jacktasia/dumb-jump@ff9fc93
magit/forge@05ef029 -> magit/forge@844aa6d
magit/magit@068f838 -> magit/magit@2e0c697
nicolaisingh/saveplace-pdf-view@a5cc606 -> nicolaisingh/saveplace-pdf-view@88e07be
tumashu/posframe@9e9b16b -> tumashu/posframe@e1552c8
2020-12-05 16:48:23 -05:00
Henrik Lissner
f11979ed76
tools/pdf: only prompt to build epdfinfo once
Fixes regression mentioned in #1788
2020-12-05 15:16:52 -05:00
Henrik Lissner
7038c2e800
Fix #3244: rewrite how pdf-tools builds epdfinfo 2020-11-30 23:35:03 -05:00
Henrik Lissner
0f3226558f
tools/pdf: add saveplace-pdf-view package 2020-11-27 22:20:51 -05:00
Henrik Lissner
ee6b7c0e81
tools/pdf: minor reformatting 2020-11-25 12:29:53 -05:00
Henrik Lissner
8914b7b8ab
Fix #4299: refactor retina support for pdfs 2020-11-25 12:29:31 -05:00
Henrik Lissner
f8c94547ea
Bump :tools pdf
flatwhatson/pdf-tools@86db180 -> flatwhatson/pdf-tools@eb6d406

Fixes #3803
2020-08-21 23:02:39 -04:00
Henrik Lissner
bc11804247
Bump :tools pdf
politza/pdf-tools@c510442 -> flatwhatson/pdf-tools@86db180

Moved to flatwhatson's fork, which fixes
politza/pdf-tools#588 (void-function errors on gccemacs).
2020-08-21 20:09:30 -04:00
Henrik Lissner
88b1d05a4a
tools/pdf: revise readme 2020-08-13 17:02:24 -04:00
Henrik Lissner
3a38fc633c
Change doom-{interactive,debug}-mode suffix to -p
Because these are not really modes.

Also makes `doom-debug-mode` an actual (global) minor mode.
2020-05-25 03:43:40 -04:00
Henrik Lissner
ea18c83c0a
General refactors & reformatting across the board 2020-05-15 01:44:53 -04:00
Henrik Lissner
b1d9e39a8a
Bump :tools debugger lsp pdf
emacs-lsp/dap-mode@cc2eb2f -> emacs-lsp/dap-mode@8f69dc2
emacs-lsp/lsp-mode@11750e7 -> emacs-lsp/lsp-mode@bac42c5
emacs-lsp/lsp-ui@1288be9 -> emacs-lsp/lsp-ui@ab55e30
politza/pdf-tools@d971298 -> politza/pdf-tools@c510442
realgud/realgud@e03446f -> realgud/realgud@1238d8e
2020-05-14 00:12:10 -04:00
Henrik Lissner
92174200aa
Prevent pdf page being persisted too many times 2020-05-14 00:07:26 -04:00
Henrik Lissner
272d8867af
Rename file to store last pdf page
Creating a new convention for Doom modules: values stored with the
`doom-store` library should be kept in a file named after the package
that uses it.
2020-05-11 22:12:12 -04:00
Henrik Lissner
84dce5d4ea
Persist current page number for PDFs 2020-05-11 03:00:08 -04:00
Henrik Lissner
7300b0a041
Add :tools pdf readme #1166
And document building epdfinfo on Windows.
2020-05-08 05:49:09 -04:00
Henrik Lissner
40c185bd70
Bump :tools
Silex/docker.el@a2092b3 -> Silex/docker.el@0874520
emacs-lsp/dap-mode@0b9c8f2 -> emacs-lsp/dap-mode@804e364
emacs-lsp/helm-lsp@db24399 -> emacs-lsp/helm-lsp@6b5ce18
emacs-lsp/lsp-mode@4898d35 -> emacs-lsp/lsp-mode@87ea1df
emacs-straight/rainbow-mode@3ef813d -> emacs-straight/rainbow-mode@f780ddb
emacsorphanage/quickrun@50e07e7 -> emacsorphanage/quickrun@2e37ce9
magit/magit@8de6ecf -> magit/magit@d27d6e4
maxchaos/emacs-powerthesaurus@81a262e -> maxchaos/emacs-powerthesaurus@4a83478
millejoh/emacs-ipython-notebook@1322d8c -> millejoh/emacs-ipython-notebook@42134ad
politza/pdf-tools@0159cb1 -> politza/pdf-tools@d971298
realgud/realgud@b854e04 -> realgud/realgud@e03446f
tumashu/posframe@e62e584 -> tumashu/posframe@093b29a
zx2c4/password-store@88936b1 -> zx2c4/password-store@07b169e

We're also transitioning from abbreviated SHA1 hashes to full ones. See
45cdfb125 for why.
2020-04-30 01:27:58 -04:00
Henrik Lissner
d12752324a
Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
Henrik Lissner
4431eac0ab
Fix void-function: pdf-tools-install-noverify
For folks who try `M-x pdf-tools-install` at startup instead of simply
loading a pdf file.
2020-04-23 13:04:03 -04:00
Henrik Lissner
e0f8fbee22
Fix #2939: pdf-tools config not triggered on pdf-view-mode
Because pdf-view can load without pulling in pdf-tools.

Closes #2954
2020-04-22 15:50:17 -04:00
Henrik Lissner
82e45e756d
Don't disable cua-mode in pdf-view-mode
This mode is global. We can't pretend it's buffer local.
2020-03-25 22:44:25 -04:00
Henrik Lissner
21dfd6159e
Bump to politza/pdf-tools@0159cb1
From politza/pdf-tools@cc29d4c
2020-02-16 02:26:38 -05:00
Henrik Lissner
a9402cfb55
Fix #2373: bring back package pinning
This needs some serious refactoring...
2020-01-25 19:02:00 -05:00
Henrik Lissner
4cc14389e8
PIN ALL THE PACKAGES 2020-01-14 22:32:11 -05:00
How Si Wei
8c6efb71cb Fix pdf-outline error 2020-01-12 15:38:03 +08:00
Henrik Lissner
6f31d774b9
Show the pdf compilation window while its building
Even if its output isn't entirely visible (because it redraws once a
second), this is better feedback that something is going on.
2019-12-28 21:28:07 -05:00
Henrik Lissner
9664f68c5f
tools/pdf: minor refactor & reformat 2019-12-17 18:10:25 -05:00
Henrik Lissner
ac17c468d2
tools/pdf: revise comments 2019-09-27 12:05:48 -04:00
Henrik Lissner
62711489df
tools/pdf: run pdf-tools-install-noverify after init 2019-09-26 15:04:25 -04:00
Henrik Lissner
a940f56fb4
tools/pdf: fix 1826
Error occurs if pdf-annot is never loaded before kill-buffer hook runs.
2019-09-26 14:26:47 -04:00
Henrik Lissner
ece174d9ed
tools/pdf: document pdf-tools-install hackery 2019-09-26 14:26:47 -04:00
Henrik Lissner
86928e425b
lang/pdf: fix wrong-num-of-args error for MacOS users 2019-09-21 14:19:56 -04:00
Henrik Lissner
fccafff291
tools/pdf: install epdfinfo on load #1788
Reverses 4f7bf8b
2019-09-20 01:19:40 -04:00
Henrik Lissner
d5ecfd3429
Move pdf-tools popup rules to tools/pdf 2019-09-19 18:55:44 -04:00
Henrik Lissner
a0826447f5
tools/pdf: refactor retina support advice #1667 2019-09-19 18:39:09 -04:00
Henrik Lissner
4f7bf8b976
tools/pdf: don't install pdf-tools on load
Now that pdf-tools-install compiles epdfinfo asynchronously, pdf files
are loaded before it is finished, yielding errors while pdf-view-mode
initializes. There is currently no effective workaround;
pdf-tools-install must be executed manually.
2019-09-15 16:16:46 -04:00
Alexander Fu Xi
6c4d8cd408 tools/pdf: display retina images on Emacs NS-port #1667
* Advice pdf-tools to display retina image on Mac
* Apply to other functions
* hotfix
* remove redundant advice
2019-08-27 00:36:20 -04:00
Henrik Lissner
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
Henrik Lissner
38d06446ba
tools/pdf: conform to new conventions 2019-07-23 00:00:08 +02:00