Commit graph

1173 commits

Author SHA1 Message Date
Henrik Lissner
af5add0e9e
merge: pull request #7389 from hpfr/misc 2023-09-06 14:28:57 +02:00
StrawberryTea
3cafa0223e
fix(org): check org-fold-outline in invisible property
Fix: #7206
2023-09-06 14:27:35 +02:00
Liam Hupfer
b261afe59d fix(org): use file URI for org-re-reveal-root
Ref: 9c7830e48f
2023-09-02 11:46:39 -05:00
Liam Hupfer
9c2d50d97e nit: fix docstrings 2023-09-02 11:46:07 -05:00
Henrik Lissner
9a80f783eb
docs(org): link to packages with doom-package:*
doom-package:* links exist to make linking to packages a little smarter.
In Emacs, it'll open that package's describe-package page, with some
extra information embedded. In other media (exported to html/pdf), it
will link to the package's project home, which will be ascertained from
the local package's metadata, falling back to
DoomELPA (https://github.com/doomelpa) or one of the ELPA archives.

Close: #7237
2023-07-22 18:05:52 +02:00
Henrik Lissner
c79f55f776
bump: :lang org
TobiasZawada/org-yt@40cc1ac76d -> TobiasZawada/org-yt@158e20204c
aimebertrand/org-mac-link@16734797b5 -> aimebertrand/org-mac-link@3a30a937e1
alf/ob-restclient.el@ded3b7eb7b -> alf/ob-restclient.el@ded3b7eb7b
bastibe/org-journal@18df4d5ae5 -> bastibe/org-journal@18df4d5ae5
emacs-jupyter/jupyter@eebeef1293 -> emacs-jupyter/jupyter@1baabc8f2d
emacs-straight/org-mode@cd2355a204 -> emacs-straight/org-mode@d6f3aed7b1
emacsmirror/org-contrib@fff6c88806 -> emacsmirror/org-contrib@4ac1a280c7
emacsorphanage/ox-pandoc@66c32cca4f -> emacsorphanage/ox-pandoc@0f758517f5
hakimel/reveal.js@724c4fee27 -> hakimel/reveal.js@12f5ba4c9d
https://repo.or.cz/org-contacts.git@ae45b9413e24 -> https://repo.or.cz/org-contacts.git@7f03eafaad2e
kaushalmodi/ox-hugo@706b5f622d -> kaushalmodi/ox-hugo@cb1b6cfd7b
magit/orgit-forge@6f424ff3a2 -> magit/orgit-forge@8ba92a54ae
magit/orgit@fc40397f7b -> magit/orgit@4a58502987
oer/org-re-reveal@bf4e23e2ce -> oer/org-re-reveal@5929850199
org-noter/org-noter@582e2bfb57 -> org-noter/org-noter@f9710c9768
org-roam/org-roam@5c06471c3a -> org-roam/org-roam@5c06471c3a
takaxp/org-tree-slide@7ac894085d -> takaxp/org-tree-slide@97273dbb17

Close: #7159
2023-07-22 17:59:16 +02:00
VitalyR
547584b831 refactor(org): move org-crypt and related hooks behind a '+crypt' flag 2023-07-22 16:12:23 +02:00
Takaaki ISHIKAWA
d1141b14c1 fix(org): org-flag -> org-fold, add spec argument
This implements the fixes described on takaxp/org-tree-slide#54

`org-flag-region` was deprecated on org 9.6, superseded by
`org-fold-region`, which takes different `spec` argument.

Fix: takaxp/org-tree-slide#54
Ref: 5f817f21fc/lisp/org-compat.el (L463)
2023-03-17 00:26:21 -04:00
Henrik Lissner
81f5a8f052
fix(org): "No org-loaddefs.el file" errors
Org complains if org-loaddefs.el is missing, but Straight generates a
org-autoloads.el instead (and loads it separately), so we need only fool
Org it exists.
2023-03-09 18:33:02 -05:00
Henrik Lissner
6471690782
perf(org): disable auto-reformat/update for tables/cookies
These two can *significantly* slow down larger org buffers for evil
users, when switching modes (e.g. leaving insert/replace mode), so I am
removing these if/when I find a better alternative. Though, they can
still be done manually with `C-c C-c` (for cookies) and `TAB` in tables.
2023-02-25 20:47:28 -05:00
Samoed
f20fe0274d feat(org): add hook for org-appear 2023-02-23 22:52:50 -05:00
Henrik Lissner
4651df6530
nit(org): remove unused doom-source link type
A vestigial link type that snuck in during my tinkering, but was never
used, and has been replaced in some unpublished work.
2023-02-23 20:45:03 -05:00
TEC
733f857199 feat(org): new "cmd" link type 2023-02-21 18:35:15 -05:00
TEC
825458e039 refactor(org): use new :help-echo for kbd link 2023-02-21 18:35:15 -05:00
TEC
14bf870025 fix(org): support module link names with A-Z0-9
We also guard against calling doom-module-locate-path unless the
category is non-nil.
2023-02-21 18:35:15 -05:00
TEC
0f7f91750a docs(org): improve links in readme 2023-02-21 18:35:15 -05:00
TEC
c1361c0ede feat(org): add some :help-echo for some links
Also use the :help-echo for eldoc.
2023-02-21 18:35:15 -05:00
TEC
181540c8b7 feat(org): introduce doom-executable link type 2023-02-21 18:35:15 -05:00
TEC
c26d64c9b9 feat(org): fancy docs links with activation fns 2023-02-21 18:35:15 -05:00
Henrik Lissner
7c1c1f52bb
bump: :lang org
Kungsgeten/org-brain@46ca9f7663 -> Kungsgeten/org-brain@2bad7732aa
awth13/org-appear@60ba267c5d -> awth13/org-appear@eb9f9db40a
bastibe/org-journal@1ea9e3b672 -> bastibe/org-journal@2f220a06e3
elken/ob-fsharp@ca3d4568da -> elken/ob-fsharp@a5bb40915a
emacs-straight/org-mode@bed47b437d -> emacs-straight/org-mode@fe92a3cedb
emacsmirror/org-contrib@aa104c0bbc -> emacsmirror/org-contrib@fff6c88806
emacsorphanage/ox-pandoc@f8eac5e569 -> emacsorphanage/ox-pandoc@66c32cca4f
hakimel/reveal.js@f6f657b627 -> hakimel/reveal.js@7de6ccb65b
https://repo.or.cz/org-contacts.git@bd5093e46b1d -> https://repo.or.cz/org-contacts.git@bb4032eb12c2
integral-dw/org-superstar-mode@03be6c0a30 -> integral-dw/org-superstar-mode@54c81c27dd
kaushalmodi/ox-hugo@e532fce4a4 -> kaushalmodi/ox-hugo@706b5f622d
magit/orgit-forge@3a54569dd0 -> magit/orgit-forge@6f424ff3a2
magit/orgit@5036c3db58 -> magit/orgit@fc40397f7b
nnicandro/emacs-jupyter@7d20c0aee2 -> nnicandro/emacs-jupyter@eebeef1293
oer/org-re-reveal@941aa4b94f -> oer/org-re-reveal@91cdd82c47
org-roam/org-roam@d95d25615e -> org-roam/org-roam@74422df546

- (#7076) Fix emacs-zmq due to nnicandro/emacs-jupyter#433.
- Fix org-contrib being pinned to an orphaned commit (due to force push
  upstream (?)).

Close: #7076
2023-02-20 19:00:23 -05:00
NitrogenPointBlue
818efb263f
fix(org): update org-attach-store-link-p default
Org-mode's behavior when org-attach-store-link-p is 't' recently
changed.

When the value of org-attach-store-link-p is 't' org-store-link now
suggests a 'file:' link to the attachment's original location. Setting
the value to 'attached' instead suggests an 'attachment:' link utilizing
the attachment directory.

Ref: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0d60013f0e3980fab959542eeb171ab9a02b450c
Fix: #6952
2023-02-18 15:26:14 -05:00
Itai Y. Efrat
3a34894492 docs(org): warn about org-roam-v1 status
- add doctor warning about eventual removal
- clarify the readme notice, since the migration-wizard has stabilized
2022-10-29 21:57:51 +02:00
Edmund Miller
3ae293e37a
feat(org): bind '<localleader> r R' to org-refile-reverse 2022-10-29 02:51:30 +02:00
declantsien
b5e9f58db6
fix(org): check WAYLAND_DISPLAY for bin/org-capture
Check WAYLAND_DISPLAY for +org-capture-frame-parameters.
PGTK emacsclient also uses this logic.

Ref: masm11/emacs#13
2022-10-28 19:13:32 +02:00
Henrik Lissner
6ee14b4589
bump: :lang org
bastibe/org-journal@839a2e1986 -> bastibe/org-journal@1ea9e3b672
emacs-straight/org-mode@86c4635dba -> emacs-straight/org-mode@bed47b437d
emacsmirror/org-contrib@0740bd3fe6 -> emacsmirror/org-contrib@aa104c0bbc
hakimel/reveal.js@c1c4145240 -> hakimel/reveal.js@f6f657b627
https://repo.or.cz/org-contacts.git@919511eb8697 -> https://repo.or.cz/org-contacts.git@bd5093e46b1d
kaushalmodi/ox-hugo@97ff24fe0b -> kaushalmodi/ox-hugo@e532fce4a4
magit/orgit-forge@8baf1dee79 -> magit/orgit-forge@3a54569dd0
magit/orgit@b33b916915 -> magit/orgit@5036c3db58
oer/org-re-reveal@6f78a0a228 -> oer/org-re-reveal@941aa4b94f
takaxp/org-tree-slide@3faa042393 -> takaxp/org-tree-slide@d6529bc2df

- Replace orphaned emacsmirror/org-contrib@0740bd3 (which no longer
  exists) with emacsmirror/org-contrib@aa104c0.

Fix: #6881
Close: #6882
Co-authored-by: ldang0 <ldang0@users.noreply.github.com>
2022-10-23 02:46:52 +02:00
TEC
7e50f239c4 fix(org): improve parsing of flag-only module link 2022-10-05 01:01:19 +02:00
TEC
24f98d49ec tweak(org): have doom links use path for info 2022-10-05 01:01:19 +02:00
TEC
5ac2a5258b docs: change link format 2022-10-05 01:01:19 +02:00
Ellis Kenyő
4d24a3f1a7 feat(org): restore org-contrib packages removed upstream
org-contrib is slowly removing packages (most of which have moved or
will move to their own repos or into Org proper).

Ref: emacsmirror/org-contrib@3dd9841522
Ref: emacsmirror/org-contrib@c555d8d489
Ref: emacsmirror/org-contrib@0740bd3fe6
Close: #6740
2022-09-30 23:02:34 +02:00
Henrik Lissner
4efaf6837b
refactor: introduce doom-module-context
Where f9201eb introduced a general context system, this one introduces
one for modules, to simplify our let-bind game when interacting with
modules, and to more efficiently expose module state to modulep! (which
gets called at runtime a great deal, so its performance is important).

* lisp/doom-lib.el (doom-log): simplify macro and introduce
  doom-inhibit-log variable.
* lisp/doom-modules.el (modulep!): fix reported file path if modulep!
  fails to find the local module.
* lisp/lib/debug.el (doom-debug-variables): disable doom-inhibit-log
  when debug mode is on.

Ref: f9201eb218
2022-09-24 22:09:46 +02:00
Henrik Lissner
f9201eb218
refactor: introduce doom-context
Introduces a system to announce what execution contexts are active, so I
can react appropriately, emit more helpful logs/warnings in the case of
issues, and throw more meaningful errors.

* bin/doom: load module CLIs in the 'modules' context.
* lisp/cli/doctor.el: load package files in 'packages' context.
* lisp/doom-cli.el:
  - (doom-before-init-hook, doom-after-init-hook): trigger hooks at the
    correct time. This may increase startup load time, as the benchmark
    now times more of the startup process.
  - (doom-cli-execute, doom-cli-context-execute,
    doom-cli-context-restore, doom-cli-context-parse,
    doom-cli--output-benchmark-h, doom-cli-call, doom-cli--restart,
    doom-cli-load, run!): remove redundant context prefix in debug logs,
    it's now redundant with doom-context, which doom-log now prefixes
    them with.
* lisp/doom-lib.el (doom-log): prefix doom-context to doom-log output,
  unless it starts with :.
* lisp/doom-packages.el (package!, doom-packages--read): throw error if
  not used in a packages.el file or in the context of our package
  manager.
* lisp/doom-profiles.el (doom-profile--generate-init-vars,
  doom-profile--generate-load-modules): use modules doom-context instead
  of doom-init-time to detect startup.
* lisp/doom-start.el (doom-load-packages-incrementally-h): move function
  closer to end of doom-after-init-hook.
* lisp/doom.el:
  - (doom-before-init-hook, doom--set-initial-values-h,
    doom--begin-init-h): rename doom--set-initial-values-h to
    doom--begin-init-h and ensure it runs as late in
    doom-before-init-hook as possible, as that is the point where Doom's
    "initialization" formally begins.
  - (doom-after-init-hook): don't trigger at the end of command-line-1
    in non-interactive sessions. This will be triggered manually in
    doom-cli.el's run!.
* lisp/lib/config.el (doom/reload, doom/reload-autoloads,
  doom/reload-env): use 'reload' context for reload commands.
* modules/lang/emacs-lisp/autoload.el (+emacs-lisp-eval): use 'eval'
  context.
* modules/lang/org/config.el: remove doom-reloading-p; check for
  'reload' doom context instead.
2022-09-24 22:09:05 +02:00
Henrik Lissner
e2ce4345d2
bump: :lang org
abo-abo/org-download@947ca22364 -> abo-abo/org-download@19e166f0a8
alf/ob-restclient.el@3ac834b02b -> alf/ob-restclient.el@1b021ce1c6
emacs-straight/org-mode@00adad9357 -> emacs-straight/org-mode@86c4635dba
emacsmirror/org-contrib@39e2abc562 -> emacsmirror/org-contrib@0740bd3fe6
hakimel/reveal.js@e219184f37 -> hakimel/reveal.js@c1c4145240
org-roam/org-roam@7f453f3fff -> org-roam/org-roam@d95d25615e

Close: #6692
Fix: #6691
2022-09-18 13:10:49 +02:00
Henrik Lissner
46527c0b85
fix(org): eldoc showing empty heading breadcrumbs
Fix: #6795
Amend: ab9896c526
2022-09-17 10:37:09 +02:00
AlessandroW
d156e58577
fix(org): respect org-insert-heading-hook in +org--insert-item
Doom replaces `org-insert-heading`, but its replacement does not respect
`org-insert-heading-hook`. This commit fixes that, enabling folks to
customize their insert-heading behavior, e.g.  adding a time stamp:

  (defun my/org-set-creation-date-heading-property ()
    (save-excursion
      (org-back-to-heading)
      (org-set-property "CREATED" (format-time-string "[%Y-%m-%d %T]"))))
  (add-hook 'org-insert-heading-hook #'my/org-set-creation-date-heading-property)

Ref: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org.el#n6187
Ref: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org.el#n1615
2022-09-16 13:14:36 +02:00
Henrik Lissner
ab9896c526
refactor(org): move doom-docs link defs to :lang org
Where they will be further generalized, later.

This also prevents an issue where org was loaded while the profile init
files are generated, which caused a warning about org-loaddefs which
introduces a noticable delay.
2022-09-16 13:06:17 +02:00
Henrik Lissner
511f0ca38f
fix(org): void-variable doom-user-dir on org-async export
This advice needed to be updated to reflect recent changes.

Fix: #6624
2022-09-16 03:17:46 +02:00
Henrik Lissner
4c9df9bfc6
fix: partially revert OS detection changes
These changes snuck into ad6a3d0, but have not been implemented yet, so
some OS-specific functionality was orphaned.

Amend: ad6a3d0f33
2022-08-18 17:08:16 +02:00
Henrik Lissner
aa54383b5d
refactor: deprecate doom-etc-dir for doom-data-dir
doom-etc-dir will be renamed to doom-data-dir, to better reflect its
purpose, and align it with XDG_DATA_HOME (where it will be moved to in
v3, where Doom will begin to obey XDG directory conventions more
closely).
2022-08-14 20:43:35 +02:00
Henrik Lissner
a5c80fcb4b
refactor: deprecate doom-private-dir for doom-user-dir
- Deprecates the doom-private-dir variable in favor of doom-user-dir.
- Renames the pseudo category for the user's module: :private -> :user.
- Renames the doom-private-error error type to doom-user-error.

Emacs uses the term "user" to refer to the "things" in user space (e.g.
user-init-file, user-emacs-directory, user-mail-address, xdg-user-dirs,
package-user-dir, etc), and I'd like to be consistent with that. It also
has the nice side-effect of being slightly shorter. I also hope
'doom-user-error' will be less obtuse to beginners than
'doom-private-error'.
2022-08-14 20:43:35 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
efim
02bb28dc82
fix(org): respect org-table-automatic-realign
Co-authored-by: efim <efim.nefedov@nordigy.ru>
2022-08-12 21:03:39 +02:00
Henrik Lissner
13b3304c08
bump: :lang org
emacs-straight/org-mode@5a49cc5f4f -> emacs-straight/org-mode@00adad9357
hakimel/reveal.js@039972c730 -> hakimel/reveal.js@e219184f37
oer/org-re-reveal@f184e66e39 -> oer/org-re-reveal@6f78a0a228
org-roam/org-roam@e435581215 -> org-roam/org-roam@7f453f3fff

- Fixes "Variable binding depth exceeds max-specpdl-size" error when
  opening Doom's docs in doom-docs-org-mode. See 1abcf91.

Ref: 1abcf913aa
2022-08-08 22:28:14 +02:00
Henrik Lissner
0ebf254f4e
fix(org): enable evil-org-mode in doom-docs-org-mode
So (evil) readers can get its benefits too.
2022-08-08 18:24:56 +02:00
Henrik Lissner
057e6c531c
refactor: replace doom-enlist with ensure-list
doom-enlist is now a deprecated alias for ensure-list, which is built
into Emacs 28.1+ and is its drop-in replacement. We've already
backported it for 27.x users in doom-lib (in 4bf4978).

Ref: 4bf49785fd
2022-08-07 19:43:13 +02:00
Henrik Lissner
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
Henrik Lissner
a71e757c8d
fix(org): create org-persist-directory recursively
`org-persist-write:index' does not recursively create
`org-persist-directory', causing `make-directory` to throw a
file-missing if a parent directory is missing.

Fix: #6635
Ref: bzg/org-mode@edd7f2962f
2022-08-05 18:13:48 +02:00
Henrik Lissner
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
Henrik Lissner
283e279dce
bump: :lang org
alf/ob-restclient.el@586f1fa07f -> alf/ob-restclient.el@3ac834b02b
awth13/org-appear@8dd1e56415 -> awth13/org-appear@60ba267c5d
emacs-straight/org-mode@e9da29b6fa -> emacs-straight/org-mode@5a49cc5f4f
emacsmirror/org-contrib@c1e0980fd7 -> emacsmirror/org-contrib@39e2abc562
emacsorphanage/ox-pandoc@0a35d0fbfa -> emacsorphanage/ox-pandoc@f8eac5e569
kaushalmodi/ox-hugo@85d11219a5 -> kaushalmodi/ox-hugo@97ff24fe0b
oer/org-re-reveal@93ba4e91f1 -> oer/org-re-reveal@f184e66e39
org-roam/org-roam@171a8db32f -> org-roam/org-roam@e435581215
2022-08-03 03:09:27 +02:00
Henrik Lissner
b777300e2c
tweak(org): move org caches to {doom-cache-dir}/org/
Instead of separate {doom-cache-dir/org-*/ directories.
2022-08-03 03:09:26 +02:00
Henrik Lissner
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