Commit Graph

102 Commits

Author SHA1 Message Date
829998e70b docs(pdf): fix instructions to build epdfinfo
The documentation claimed that epdinfo will be built as soon as a pdf
file is opened. However, support for automatically building epdfinfo was
removed in the commit referenced below.

Ref: daa50557a4
2022-09-07 00:20:54 +02:00
1abcf913aa revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
1f8bf7accb merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
7e400abdc0 fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
1255315bfc refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
e77a45bc22 docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
824402aaee bump: :tools pdf
vedang/pdf-tools@f9ccdf99e5 -> vedang/pdf-tools@bb0b71f5ba
2022-07-24 13:16:02 +02:00
efb46c77be refactor(pdf): better epdfinfo check on pdf-view-mode
Also adds a comment to explain why I don't directly call
pdf-tools-install, instead of pdf-tools-install-noverify.

Ref: #6589
2022-07-24 13:16:02 +02:00
866e1b32bf bump: :tools pdf
vedang/pdf-tools@326552eef7 -> vedang/pdf-tools@f9ccdf99e5

This bump also removes C++ entirely from pdf-tools, as it is not needed anymore for
correct compilation of `epdfinfo`. The following changes are made:

- Remove private headers from all the server code. This involves:
  - Replace private header functionality with the correct public
    functions provided by poppler.
  - Remove unneeded headers around date checks
  - Delete dead-code (headers, m4 macros)
- Remove C++, g++ and similar aliases from all the code. Also:
  - Remove related information from the README
  - Remove related information from CI and Dockerfiles

Ref: vedang/pdf-tools#96
Ref: vedang/pdf-tools@4460a4fd31
Fix: vedang/pdf-tools#102
Fix: politza/pdf-tools#706
Fix: vedang/pdf-tools#90
Fix: vedang/pdf-tools#86
2022-05-26 23:47:00 +02:00
bab5bffa5d bump: :tools
SavchenkoValeriy/emacs-powerthesaurus@02c9d11a3f -> SavchenkoValeriy/emacs-powerthesaurus@810a25056c
Silex/docker.el@8d64cf4f84 -> Silex/docker.el@fbd896e313
alphapapa/magit-todos@60152d5c4e -> alphapapa/magit-todos@67fd80c2f1
bdarcus/citar@79512aefdf -> bdarcus/citar@ee98b94f7f
editorconfig/editorconfig-emacs@3c03cef311 -> editorconfig/editorconfig-emacs@1d4acc3ec7
emacsorphanage/quickrun@78317951cd -> emacsorphanage/quickrun@c680f5137c
joaotavora/eglot@83a61f673a -> joaotavora/eglot@fd9a5646d1
magit/forge@5586863f98 -> magit/forge@eed613db88
magit/magit@4e29d5827c -> magit/magit@b4be194de1
millejoh/emacs-ipython-notebook@6063cee7fb -> millejoh/emacs-ipython-notebook@e04e1e19c6
tkf/emacs-request@3336eaa97d -> tkf/emacs-request@c769cf33f2
vedang/pdf-tools@72ef774320 -> vedang/pdf-tools@326552eef7
zx2c4/password-store@eea24967a0 -> zx2c4/password-store@c4d8a1d815
2022-03-31 19:25:50 +02:00
7246db457c docs: replace doom-source with doom-repo links
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
b05b9c5405 bump: :tools
andras-simonyi/citeproc-el@9f783967c1 -> andras-simonyi/citeproc-el@ba49516265
bdarcus/citar@b24b5b94b7 -> bdarcus/citar@79512aefdf
cjohansson/emacs-ssh-deploy@7c5fe8af2d -> cjohansson/emacs-ssh-deploy@9311f9b4f8
editorconfig/editorconfig-emacs@2ab86dc9a8 -> editorconfig/editorconfig-emacs@3c03cef311
emacs-lsp/lsp-mode@f49ea4e365 -> emacs-lsp/lsp-mode@cb7ec94435
joaotavora/eglot@dade5a1487 -> joaotavora/eglot@0f352213fc
k1LoW/emacs-ansible@40af0d2bbb -> k1LoW/emacs-ansible@d89ac0ee57
magit/forge@0ff9b8a0de -> magit/forge@5586863f98
magit/magit@0ac05f3962 -> magit/magit@4e29d5827c
paradoxxxzero/jinja2-mode@ecd19a40b7 -> paradoxxxzero/jinja2-mode@03e5430a7e
purcell/envrc@456c4100de -> purcell/envrc@e161624b91
tmalsburg/helm-bibtex@aa775340ba -> tmalsburg/helm-bibtex@db73156576
tmalsburg/helm-bibtex@aa775340ba -> tmalsburg/helm-bibtex@db73156576
tumashu/posframe@6c0e63d6b3 -> tumashu/posframe@c91d4d53fa
vedang/pdf-tools@4e6c778194 -> vedang/pdf-tools@72ef774320
zx2c4/password-store@04cd3023f4 -> zx2c4/password-store@eea24967a0
2022-01-30 02:42:54 +01:00
3df8903071 bump: :tools
andras-simonyi/citeproc-el@538fed794c -> andras-simonyi/citeproc-el@9f783967c1
bdarcus/citar@51b30f2e40 -> bdarcus/citar@b24b5b94b7
emacs-lsp/lsp-mode@3d6a01dde9 -> emacs-lsp/lsp-mode@c228bce435
gagbo/consult-lsp@aaa9a31bc8 -> gagbo/consult-lsp@f4f195046b
joaotavora/eglot@28092ba3af -> joaotavora/eglot@2c0f262c24
magit/forge@a44afa81f1 -> magit/forge@0ff9b8a0de
magit/magit@2e73b66c29 -> magit/magit@0ac05f3962
millejoh/emacs-ipython-notebook@c6696c12eb -> millejoh/emacs-ipython-notebook@6063cee7fb
purcell/envrc@8a9a142cf9 -> purcell/envrc@456c4100de
realgud/realgud@978b455d7d -> realgud/realgud@3c88611c4e
tumashu/posframe@3b1dc400d2 -> tumashu/posframe@6c0e63d6b3
vedang/pdf-tools@a8847b75d3 -> vedang/pdf-tools@4e6c778194
wandersoncferreira/code-review@136c0933ba -> wandersoncferreira/code-review@ccc3795a72
yoshiki/yaml-mode@63b637f846 -> yoshiki/yaml-mode@a79d2a7b92

Close: #5977
Ref: emacs-lsp/lsp-mode#3295
2022-01-12 01:55:34 +01:00
594f01d89a bump: :tools
Silex/docker.el@4fc69969b1 -> Silex/docker.el@8d64cf4f84
andras-simonyi/citeproc-el@2e7df666bf -> andras-simonyi/citeproc-el@538fed794c
bdarcus/citar@7740300831 -> bdarcus/citar@51b30f2e40
emacs-lsp/lsp-mode@9865d31512 -> emacs-lsp/lsp-mode@41173dca4d
millejoh/emacs-ipython-notebook@0600c286bd -> millejoh/emacs-ipython-notebook@c6696c12eb
spotify/dockerfile-mode@628315e2e4 -> spotify/dockerfile-mode@5db94549ce
tumashu/posframe@66b16a20a7 -> tumashu/posframe@3b1dc400d2
vedang/pdf-tools@5f77dae43e -> vedang/pdf-tools@a8847b75d3
zx2c4/password-store@3dd14690c7 -> zx2c4/password-store@04cd3023f4
2021-12-14 01:21:33 +01:00
88844e9cec docs: simplify internal docs links
Fewer links means less confusion.

- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
  Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
6da20e45bd docs(:tools): update READMEs to new format 2021-11-21 20:04:28 +01:00
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
36d186d1cd Fix #4665: don't close annotation window on ESC 2021-07-08 21:42:13 -04:00
38bc1ab81a Bump :tools pdf
vedang/pdf-tools@d262cf9 -> vedang/pdf-tools@5f77dae

Fixes #4989: remove local hacks for retina support in favor of upstream
fixes.
2021-07-06 02:32:26 -04:00
044a1a5f2b Drop Emacs 26.x support
Emacs 27.x has been the stable version of Emacs for nearly a year, and
introduces a litany of bugfixes, performance, and quality-of-life
improvements that significantly reduce Doom's maintenance burden (like
XDG support, early-init.el, image manipulation without imagemagick, a
native JSON library, harfbuzz support, pdumper, and others).

With so many big changes on Doom's horizon, I like having one less (big)
thing to worry about.

Also reverts bb677cf7a (#5232) as it is no longer needed.
2021-07-06 02:31:52 -04:00
bb677cf7a5 Prevent extra variable from being passed in macro.
In the PDF module, there is a macro that is used to prevent the
file-too-big prompt for PDFs since they're always too big. However, this
macro has an extra variable listed that then gets passed on to the
wrapped function and causes an error if the function doesn't support the
extra variable.

This fix simply checks if the extra value is present or not and only
calls the wrapped function with it if is actually present. After all,
the variable will still be nil even if nil isn't passed.
2021-07-04 14:59:29 -07:00
f604ce6d01 Minor refactors & reformatting 2021-05-25 10:35:21 -04:00
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
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
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
ea9753a5f2 Fix #4989: pdf scaling on retina displays 2021-05-09 20:51:15 -04:00
437f122969 tools/pdf: suppress "file is large" prompts for pdfs 2021-04-15 14:19:18 -04:00
ba0ddb71ee Reload pdfs when pdf-view-midnight-colors changes
Co-authored-by: tecosaur <tec@tecosaur.com>
2021-03-22 21:11:22 -04:00
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
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
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
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
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
f11979ed76 tools/pdf: only prompt to build epdfinfo once
Fixes regression mentioned in #1788
2020-12-05 15:16:52 -05:00
7038c2e800 Fix #3244: rewrite how pdf-tools builds epdfinfo 2020-11-30 23:35:03 -05:00
0f3226558f tools/pdf: add saveplace-pdf-view package 2020-11-27 22:20:51 -05:00
ee6b7c0e81 tools/pdf: minor reformatting 2020-11-25 12:29:53 -05:00
8914b7b8ab Fix #4299: refactor retina support for pdfs 2020-11-25 12:29:31 -05:00
f8c94547ea Bump :tools pdf
flatwhatson/pdf-tools@86db180 -> flatwhatson/pdf-tools@eb6d406

Fixes #3803
2020-08-21 23:02:39 -04:00
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
88b1d05a4a tools/pdf: revise readme 2020-08-13 17:02:24 -04:00
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
ea18c83c0a General refactors & reformatting across the board 2020-05-15 01:44:53 -04:00
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
92174200aa Prevent pdf page being persisted too many times 2020-05-14 00:07:26 -04:00
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
84dce5d4ea Persist current page number for PDFs 2020-05-11 03:00:08 -04:00
7300b0a041 Add :tools pdf readme #1166
And document building epdfinfo on Windows.
2020-05-08 05:49:09 -04:00
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
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