Commit graph

1047 commits

Author SHA1 Message Date
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
Wetlize
9f7641d6c8 Add evil bindings for org-roam-mode
These are about the same as you would have them in `magit`.
2021-07-25 02:20:50 +03:00
Wetlize
9e12873779 Update handling of the database
v2 reverted to using `emacsql-sqlite` instead of `emacsql-sqlite3`. It
will now try to build the needed `sqlite3` executable by itself, using a
C compiler that it can find, which is normally gcc or clang.

Previously in v1 it would only check for `sqlite3` executable (using
`executable-find`) and wouldn't do anything else.
2021-07-25 02:20:41 +03:00
Wetlize
5ef733b488 lang/org: Add +roam2 flag for org-roam v2 2021-07-25 01:42:09 +03:00
Henrik Lissner
2855351b2c lang/org: fix TAB override in GUI emacs
Not sure if this was a recent change (28.0.50+), but a new conditional
keybind in outline-mode-cycle-map was overriding TAB in insert mode in
org-mode (in GUI Emacs).
2021-07-23 22:10:43 -04:00
Henrik Lissner
9811756e80 Bump :lang org
Kungsgeten/org-brain@e9b9b3e -> Kungsgeten/org-brain@46ca9f7
Lompik/ob-nim@bf1642c -> Lompik/ob-nim@6fd060a
astahlman/ob-async@de1cd6c -> astahlman/ob-async@9aac486
bastibe/org-journal@043bb9e -> bastibe/org-journal@6c3a2fd
emacs-straight/org-mode@7a62a4d -> emacs-straight/org@b83ae59
emacsorphanage/gnuplot@116cad8 -> emacsorphanage/gnuplot@7138b13
hakimel/reveal.js@cf8e64b -> hakimel/reveal.js@b18f12d
harrybournis/org-fancy-priorities@819bb99 -> harrybournis/org-fancy-priorities@44532ab
jkitchin/ox-clip@2095537 -> jkitchin/ox-clip@05a14d5
kaushalmodi/ox-hugo@02140a2 -> kaushalmodi/ox-hugo@290b5d6
magit/orgit-forge@ea2a1cf -> magit/orgit-forge@365b756
magit/orgit@609fd0c -> magit/orgit@f956d80
oer/org-re-reveal@18a2456 -> oer/org-re-reveal@cf00089
org-roam/org-roam@8ad57b1 -> org-roam/org-roam@756f621

Note: org-roam/org-roam@756f621 is the last v1 commit, and should be
frozen from this point onward (a +roam2 flag will be introduced soon).
2021-07-18 02:19:32 -04:00
Henrik Lissner
9ffa5d6c2f org-roam-link-use-custom-faces = everywhere 2021-07-12 12:22:21 -04:00
Seong Yong-ju
721d5dd853 Bump jupyter
Bump nnicandro/emacs-jupyter@6ce8d01 -> nnicandro/emacs-jupyter@1f0612e

nnicandro/emacs-jupyter#320 contains a bug fix for Emacs 28 +
native-comp.
2021-07-10 23:06:23 +09:00
Henrik Lissner
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
Connor James
87abb63dd2 Use org-tree-slide-play-hook to hide blocks 2021-06-07 09:56:37 -07:00
Henrik Lissner
60b595321e Lazy-load yasnippet harder for faster first-file load time
+ Rather than waiting for the first "interactive" major mode to be
  visited to activate yas-minor-mode, we wait until the first time the
  user invokes a snippet command to activate yas-global-mode.
+ yas-reload-all is one of the bottlenecks when loading a file for the
  first time. Deferring it further should help with this.
+ yas-global-mode reaches more major modes than our former list of
  hooks (fixes #5140).

Closes #5140
2021-06-05 13:12:00 -04:00
Henrik Lissner
26aeb72e63 org-clock-out-remove-zero-time-clocks = t
Reverts 334c309; the original issue was reportedly fixed upstream at
some point.
2021-06-04 14:08:42 -04:00