Commit graph

1058 commits

Author SHA1 Message Date
noisycomputation
b21de24311
docs(latex): add texlive-latexextra dependency for pdflatex exports
Exporting an org file to pdf via LaTeX (org-export-dispatch or 'SPC m
e', then 'l p') requires texlive-latexextra (Arch package name) to be
installed on the system.

For reference, the error raised when texlive-latexextra was missing was
that the file 'wrapfig.sty' was not found. The specific error likely
depends on the contents of the exported file. Internet searches reveal
that pdflatex may also complain about 'utf8x.def' being missing; this
file is also provided by texlive-latexextra.
2022-04-12 02:36:35 +02:00
Henrik Lissner
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
Henrik Lissner
1fb67e3cf7 docs(org): remove org-pretty-table
Package was removed in hlissner/doom-emacs@db7696b661.

Ref: hlissner/doom-emacs#6033
2022-02-01 18:55:27 +01:00
Prashant Tak
4bdcf48a0b
docs(org): add org-pretty-table to readme
Ref: #6033
Amend: 53ea2e4ce2b8
2022-01-27 16:30:47 +01:00
Nicolas Cavigneaux
b2c366d946 docs(org): fix typo in capture example 2022-01-13 21:49:34 +01:00
Henrik Lissner
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
Henrik Lissner
7bc0033d0a docs: add doom-docs-mode & doom-docs-org-mode
These two modes exist to provide a nicer reading experience while
viewing Doom's org documentation from within Emacs; they hide
meta-lines, comments, markup, and more.

They also enable our docs to use IDs for links and keep our ID db
separate from any user ID dbs.
2021-11-21 20:04:28 +01:00
Henrik Lissner
20cac97c08 docs(:lang): update READMEs to new format 2021-11-21 20:04:28 +01:00
Henrik Lissner
0aad1399cc refactor(file-templates): doom readme templates
Including readme template for categories.
2021-11-21 20:04:28 +01:00
Henrik Lissner
a3d040bcd7 bump: :lang org
emacs-straight/org-mode@2e99997830 -> emacs-straight/org-mode@27edae8ced
emacsorphanage/ox-pandoc@aa37dc7e94 -> emacsorphanage/ox-pandoc@e76324ecf1
hakimel/reveal.js@1ce77db3d0 -> hakimel/reveal.js@c79f4b5a4f
kaushalmodi/ox-hugo@9438efc34f -> kaushalmodi/ox-hugo@3442d8cf1f
nnicandro/emacs-jupyter@20e68a6836 -> nnicandro/emacs-jupyter@162d047e62
oer/org-re-reveal@ee0417aac3 -> oer/org-re-reveal@55fca47c74
org-roam/org-roam@3e47f198c7 -> org-roam/org-roam@a2e46db808

Fix: #5520
Fix: #5784
2021-11-21 16:10:49 +01:00
Manjinder Singh
e303be6951 fix(org): show outline path on refile to current file
Before this change, the +org/refile-to-current-file command would
display a flat list of tail headings in the current file, without
context, which can result in duplicates and can make it difficult to
tell where you're refiling a heading to.

This changes each heading to be a full path.
2021-11-19 23:44:28 +01:00
Valentin Herrmann
53fcce8187 fix(org): no roam buffer for capture buffers 2021-11-18 19:06:23 +01:00
Henrik Lissner
a4695b6b4b bump: :lang org
emacs-straight/org-mode@d4e1925147 -> emacs-straight/org-mode@2e99997830
https://git.sr.ht/~bzg/org-contrib@56a3bbbd486c -> emacsmirror/org-contrib@0231706232
kaushalmodi/ox-hugo@14723c3cb9 -> kaushalmodi/ox-hugo@9438efc34f
nnicandro/emacs-jupyter@1f0612eb93 -> nnicandro/emacs-jupyter@20e68a6836
org-roam/org-roam@c789531e36 -> org-roam/org-roam@3e47f198c7

Switching to emacs-mirror/org-contrib resolves SSL issues (see #5655).

Fix: #5655
Close: #5719
Co-authored-by: Stefan Lendl <stfl@users.noreply.github.com>
2021-11-04 01:13:28 +01:00
Henrik Lissner
0adaf03088 fix(org): prematurely terminated string in org-version.el
Amend: 935ed860a1
2021-11-01 02:17:34 +01:00
Henrik Lissner
935ed860a1 bump: :lang org
emacs-straight/org-mode@1b2d06880f -> emacs-straight/org-mode@d4e1925147
org-roam/org-roam@1b221a1d4a -> org-roam/org-roam@c789531e36

- An unguarded native-comp-available-p call was fixed upstream (in org),
  which caused void-function errors for non-native-comp users (#5706).
- org-version.el is now generated with the correct version, so we don't
  have to update it ourselves.

Fix: #5706
2021-11-01 02:14:22 +01:00
Henrik Lissner
20b74b7951 bump: :lang org
hakimel/reveal.js@05e57dea66 -> hakimel/reveal.js@1ce77db3d0
https://git.savannah.gnu.org/git/emacs/org-mode.git@cc2490a70619 -> emacs-straight/org-mode@1b2d06880f
kaushalmodi/ox-hugo@f0357fa744 -> kaushalmodi/ox-hugo@14723c3cb9
org-roam/org-roam@54d17cc50f -> org-roam/org-roam@1b221a1d4a
takaxp/org-tree-slide@571ff33308 -> takaxp/org-tree-slide@27f8bb6a96

Move from git.savannah.gnu.org to emacs-straight/org-mode mirror due to
SSL, uptime, download time, and lack of shallow clone support. Plus, the
straight mirror is now up-to-date with 9.5.

Fix: #5655
Close: #5703
2021-10-29 14:48:32 +02:00
Henrik Lissner
7034378968 nit: s/#+BEGIN_SRC/#+begin_src, s/elisp/emacs-lisp/
From now on Doom will enforce two conventions for its org files for
consistency's sake:

- Lower-case meta-lines in org files, like #+begin_src, #+name, or
  #+end_quote (only exception are the top-level ones, like #+TITLE and
  #+STARTUP).
- Use 'emacs-lisp' as the lang specifier for elisp blocks rather than
  'elisp'. Emacs doesn't natively recognize the latter.

This will be reflected in our rewritten docs/*.org and module
README.org's.
2021-10-18 12:09:42 +02:00
Henrik Lissner
e3d4e05fbd bump: :lang org
bastibe/org-journal@9757996ca0 -> bastibe/org-journal@71e8b10088
emacs-straight/org@888aaa97c0 -> https://git.savannah.gnu.org/git/emacs/org-mode.git@cc2490a70619
hakimel/reveal.js@abe9abbed7 -> hakimel/reveal.js@05e57dea66
integral-dw/org-superstar-mode@2cd3f1e74b -> integral-dw/org-superstar-mode@03be6c0a30
kaushalmodi/ox-hugo@1b8f2627cd -> kaushalmodi/ox-hugo@f0357fa744
oer/org-re-reveal@e1bb2213d6 -> oer/org-re-reveal@36d0973c6c
org-roam/org-roam@1795039ab9 -> org-roam/org-roam@54d17cc50f
takaxp/org-tree-slide@9d2ba1df45 -> takaxp/org-tree-slide@571ff33308

Install org from savannah repo, so we have access to 9.5+.
2021-10-06 01:30:45 +02:00
Ethan Leba
0ca2e791f7 feat(org): add binding for org-clone-subtree-with-time-shift 2021-10-03 20:40:55 +02:00
Henrik Lissner
c0d988fe0d fix(org): recognize python-shell-interpreter-args
Also does not tamber with org-babel-python-command if the user has
changed it.

Fix #5569
2021-10-03 20:40:00 +02:00
Henrik Lissner
3179c2a744 tweak(org): org-clock-history-length = 20
The default value of 5 is too conservative. 20 seems more reasonable,
without being overwhelming.
2021-09-28 22:42:29 +02:00
Henrik Lissner
5a8af71b0b refactor(org): remove unused overlay cleanup code
No longer used since c92937f89.

Ref c92937f890
Ref #5524
2021-09-27 21:57:11 +02:00
Henrik Lissner
c92937f890 fix(org): invisible inline images in org-tree-slide-mode
Our method of hiding meta lines (like '#+attr_org: ...') was too
effective; it ended up hiding the following image as well!

Fix #5524
2021-09-27 13:37:41 +02:00
Henrik Lissner
5f1a26290c fix(org): restore frame layout when disabling org-tree-slide-mode 2021-09-27 13:35:11 +02:00
Henrik Lissner
ed43b8e36f tweak(org): org-startup-folded = nil
'nil' behaves the same as 'showeverything' in every other way, except it
respects visibility options (like 'hideblocks').
2021-09-25 23:54:44 +02:00
Henrik Lissner
d210b983d4 tweak(org): unset org-list-demote-modify-bullet
Imposing different list bullets per-level was a poor and jarring
default.
2021-09-25 00:55:19 +02:00
Henrik Lissner
206063f27d tweak(org): org-imenu-depth = 6
Headings beyond 6 are excessive in almost any org document, and only
muddy (and slow down) imenu search results, so I'm reducing it to the
number of available HTML headings.
2021-09-25 00:54:13 +02:00
David Lukes
a03d30047c tweak(org): map f to org-footnote-action 2021-09-14 19:25:57 +02:00
Henrik Lissner
499d368c85 bump: org-roam
org-roam/org-roam@028c95a011 -> org-roam/org-roam@1795039ab9

org-roam (for +roam2) was mistakenly bumped to
org-roam/org-roam-v1@946a879a4a in ec6511270, because our bumper
couldn't distinguish the two (something else to fix!).
2021-09-14 15:22:47 +02:00
Henrik Lissner
ec6511270d bump: :lang org
alf/ob-restclient.el@0ebfc7c5eb -> alf/ob-restclient.el@bfbc4d8e8a
awth13/org-appear@148aa12490 -> awth13/org-appear@a1aa8496f2
bastibe/org-journal@6c3a2fdb6c -> bastibe/org-journal@9757996ca0
emacs-straight/org@b83ae59347 -> emacs-straight/org@888aaa97c0
hakimel/reveal.js@b18f12d964 -> hakimel/reveal.js@abe9abbed7
hniksic/emacs-htmlize@4920510589 -> hniksic/emacs-htmlize@dd27bc3f26
kaushalmodi/ox-hugo@290b5d6b65 -> kaushalmodi/ox-hugo@1b8f2627cd
oer/org-re-reveal@cf000894f6 -> oer/org-re-reveal@ee712db657
org-roam/org-roam@028c95a011 -> org-roam/org-roam@946a879a4a

Close #5338
2021-09-14 14:30:06 +02:00
Erich Grunewald
19fa5e2559 docs(org): fix link to org-roam v2 in readme 2021-09-11 22:41:58 +02:00
Henrik Lissner
bf8495b412 fix(org): epdfinfo error when storing/exporting links
Here's the problem:

1. Org's link system unconditionally calls *all* link :store handlers
   when you call `org-store-link`, and all :export handlers when you
   export an Org file.
2. The org-pdftools package works by defining a custom pdf: link with
   custom :store and :export handlers.
3. Those handlers do not perform error handling before using pdftool's
   API.
4. pdf-tools fails loudly and ungracefully with a
   "pdf-info-epdfinfo-program is not executable" error when its API is
   used and epdfinfo isn't installed.

TL;DR org-pdftools effectively breaks storing/exporting in org-mode
until pdf-tools-install is executed to install epdfinfo. This is awful
UX, so let's suppress the error.
2021-08-22 01:41:26 -04:00
Robert Irelan
ff356e9c37
fix(org): error trying to kill dead agenda buffers
It may happen that org-agenda-new-buffers contains a killed buffer.
2021-08-06 03:18:47 -04:00
Henrik Lissner
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
Henrik Lissner
130c6e90d5 fix(org): doom-module links opening private modules
A doom-module: link should only refer to built-in modules, not
user-provided ones in $DOOMDIR/modules.
2021-08-01 23:37:36 -04:00
Henrik Lissner
11007f3997 feat(org): add kbd & doom-{module,package}} links
I make extensive use of these in our new in-repo Org documentation.
2021-07-31 19:40:58 -04:00
Henrik Lissner
858a0e44a3 feat(org): open help:* links with helpful-*
Rather than describe-*
2021-07-31 04:35:49 -04:00
Henrik Lissner
83171ac554 feat(org): add #+STARTUP inlinegifs playgifs
- #+STARTUP: inlinegifs = play inline gif previews when point is on
  them.
- #+STARTUP: playgifs = play all gifs in the visible buffer (super,
  super slow; use at your own risk).
- Add +org-startup-with-animated-gifs for changing the global
  default (nil). Can be set to 'at-point (inlinegifs) or t (playgifs)
2021-07-31 04:35:49 -04:00
Henrik Lissner
823fb275a0 feat(org): expand parents for showNlevels option
#+STARTUP: showNlevels

This tells org to expand N levels at startup, but it only partially
unfolds headings, so show2levels gets you:

  * A [...]
  ** X [...]
  ** Y [...]
  ** Z [...]

Instead of (what I think is expected):

  * A
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
  eiusmod tempor incididunt ut labore et dolore magna aliqua.

  ** X [...]
  ** Y [...]
  ** Z [...]

Perhaps this should be upstreamed?
2021-07-28 15:02:14 -04:00
Henrik Lissner
7b274c7dbe feat(org): add native :async support
ob-comint (included with org) added native :async support. It only works
for python currently, but unlike ob-async supports :session for :async
python blocks. In fact, it *requires* :session, so we still fall back to
ob-async in its absence, failing that, it ultimately falls back to
synchronous execution.
2021-07-28 15:00:38 -04:00
Henrik Lissner
c48c01ebab feat(org): set org-num-face & org-num-skip-tags
+ Perhaps a dedicated face would be better, but org-special-keyword will
  do for now.
+ Don't number trees tagged :noexport: or :nonum:.
2021-07-28 14:06:35 -04:00
Henrik Lissner
cd87cc0cc8 refactor: remove redundant org code
org-collect-keywords does the job here. No need to reinvent the wheel.
2021-07-28 12:42:22 -04:00
Henrik Lissner
ce905b9246 Expand latex snippets in org-mode fragments on TAB 2021-07-25 15:41:29 -04:00
Henrik Lissner
4ac5332a1d
Merge pull request #5271 from Wetlize/add-roam2
lang/org: Add `+roam2` flag for org-roam v2
2021-07-25 04:13:03 -04:00
Itai Y. Efrat
24eaa1317c completion/selectrum -> completion/vertico, part 2
- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
  detection.
2021-07-25 02:51:15 +03:00
Itai Y. Efrat
26a310d04c selectrum: improve ivy parity
- add `completion-at-point` as analogue to `cousnel-company`
- fix emacs-bindings `counsel-company` binding to respect helm and selectrum
- add org jump commands `consult-org-heading` and `consult-org-agenda` bindings
- add `consult-history` as `counsel-minibuffer-history` analogue
- add support for `doom/help-search`
- update TODO.org
2021-07-25 02:50:31 +03:00
Wetlize
6330c57bce Sniff for a different symbol in +org-roam-suppress-sqlite-build-a
`org-roam-db-location` is redefined in the :preface section, so we need
to rely on a different symbol to determine whether `org-roam` is loading
or not.
2021-07-25 02:49:45 +03:00
Wetlize
c6e4ffb929 Improve display of custom templates in the minibuffer 2021-07-25 02:49:40 +03:00
Wetlize
13f0c4785e Fix keymap precedence for evil users in the org-roam-buffer
`org-roam-mode` based buffers use `magit-section` to render sections.
The problem is that `magit-section` will layer keymaps for each section
under a text property. In Emacs, text property based keymaps have a
higher precedence for a lookup[0] than `emulation-mode-map-alists`, in
which Evil and leader keymaps are stored in.

[0]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Searching-Keymaps.html
2021-07-25 02:20:50 +03:00
Wetlize
ff331781c5 Bump org-roam
org-roam/org-roam@e997c01 -> org-roam/org-roam@028c95a
2021-07-25 02:20:50 +03:00