Commit graph

1188 commits

Author SHA1 Message Date
Tim Ruffing
1ee429406b fix(org): restart org-mode before indirect buffer
Fix: #5714
2024-01-24 12:11:48 -05:00
Ocean Shen
f6851d56ef fix(org): correct face for doom-user links
`org-link-set-parameters` accepts `:face` for a function returning a face
or a symbol naming a face. Use a lambda returning `org-priority` to
avoid it being called directly as a function.
2023-12-07 21:47:11 -05:00
Henrik Lissner
b1d8d1cd9f
nit: reformatting, comment, and markup revision 2023-12-02 11:34:10 -05:00
Henrik Lissner
f8274f208c
bump: :lang org
aimebertrand/org-mac-link@3a30a937e1 -> aimebertrand/org-mac-link@e30171a6e9
alf/ob-restclient.el@ded3b7eb7b -> alf/ob-restclient.el@1a127eb016
awth13/org-appear@eb9f9db40a -> awth13/org-appear@81eba5d7a5
bastibe/org-journal@18df4d5ae5 -> bastibe/org-journal@a306f76ee2
emacs-jupyter/jupyter@1baabc8f2d -> emacs-jupyter/jupyter@0a92c0c978
emacs-straight/org-mode@e90a8a69a7 -> emacs-straight/org-mode@57b94f3447
emacsmirror/org-contrib@dc59cdd46b -> emacsmirror/org-contrib@79286861ae
hakimel/reveal.js@07a6cf1249 -> hakimel/reveal.js@d5896c968b
magit/orgit-forge@8ba92a54ae -> magit/orgit-forge@f595a30aa7
magit/orgit@4a58502987 -> magit/orgit@b60efabc4a
oer/org-re-reveal@93396b531b -> oer/org-re-reveal@e7895dae98
org-noter/org-noter@ab838691f0 -> org-noter/org-noter@a4296d8338

Ref: bastibe/org-journal#415
Close: #7506
Fix: #7545
Co-authored-by: SeanMaclochlainn <SeanMaclochlainn@users.noreply.github.com>
2023-12-02 11:34:10 -05:00
Tim Ruffing
f4e02a2d39 fix(org): don't call org-reveal in dead buffer
This fixes a bug introduced in bb3431a (#7509). This shows up for
example in `org-capture`, which uses multiple org buffers and the
initial one (with name `*Capture*`) will be dead already by the time the
timer runs.

Amend: #7509
2023-11-29 11:30:20 -05:00
Leo Okawa Ericson
31b2ad22fb
fix(org): call org-reveal in correct buffer
Sometimes, `org-reveal` is called in the wrong buffer which throws an
error.  For example, `org-link-open-from-string` creates an temporary
org-mode buffer that gets killed very quickly which means that
`org-reveal` gets called in a different buffer.  I have also had issues
with org-reveal getting called in the org-roam buffer, which is why this
commit also saves the buffer it was called in.

Co-authored-by: Leo Okawa Ericson <git@relevant-information.com>
2023-11-23 21:21:08 -05:00
mosquito-magnet
db29f71f10 fix(org): add missing autoloads for org-attach
org-attach-delete-one and -all are bound to keys, thus requiring
autoload.
2023-09-22 23:17:43 +02:00
Liam Hupfer
2279a42c50 fix(org): address fancy links regressions
- several all-the-icons references were missed, and some code points are
  different in nerd-fonts. the variable icon became a folder, the
  package icon became a scissors, and the file-icons font icon is not
  available
- make face link type face passthrough work
- remove extraneous rear-nonsticky and height properties that nerd-icons
  already sets
- generally improve consistency across link types
  - material design icons, underlines, and font lock faces for symbols,
    shadow if unbound
  - octicons for packages, modules, and executables, blue links if
    installed, shadow if not. color coded icon based on status
  - refactor and remove extraneous code
2023-09-20 20:23:26 +02:00
Liam Hupfer
c3342a8011 nit(org): make activate function suffixes consistent 2023-09-20 20:23:26 +02:00
Liam Hupfer
54c67acf2a nit(org): use consistent link follow function names
Looks like the doom-module one was partially renamed to follow naming
conventions, and that didn’t propagate to the corresponding doom-package
function.
2023-09-20 20:23:26 +02:00
Liam Hupfer
f369b48b2a fix(org): use correct doom-module link follow function 2023-09-20 20:23:26 +02:00
Henrik Lissner
41de7d9d01
bump: :lang org
TobiasZawada/org-yt@158e20204c -> TobiasZawada/org-yt@56166f48e0
emacs-straight/org-mode@d6f3aed7b1 -> emacs-straight/org-mode@e90a8a69a7
emacsmirror/org-contrib@4ac1a280c7 -> emacsmirror/org-contrib@dc59cdd46b
fuxialexander/org-pdftools@967f48fb50 -> fuxialexander/org-pdftools@4e420233a1
hakimel/reveal.js@12f5ba4c9d -> hakimel/reveal.js@07a6cf1249
oer/org-re-reveal@5929850199 -> oer/org-re-reveal@93396b531b
org-noter/org-noter@f9710c9768 -> org-noter/org-noter@ab838691f0
snosov1/toc-org@bf2e4b358e -> snosov1/toc-org@6d3ae0fc47
takaxp/org-tree-slide@97273dbb17 -> takaxp/org-tree-slide@e2599a106a

- Fixes package download errors while installing
  emacsmirror/org-contrib@4ac1a280c7, which is an orphaned commit.
2023-09-16 20:35:31 +02:00
Henrik Lissner
88bb045388
docs(*): replace all-the-icons with nerd-icons
Also colorizes the leading icon in notices.
2023-09-16 20:19:11 +02:00
Henrik Lissner
ae8c5cfdde
fix(org): org-roam-node-display-template: strip :box from org-tag
The :box causes tremendous slowdown when displayed in the minibuffer.

Fix: #7432
2023-09-16 17:02:16 +02:00
Ellis Kenyő
9787022b83
refactor!: replace all-the-icons with nerd-icons
BREAKING CHANGE: This commit replaces all-the-icons with nerd-fonts. Any
all-the-icons-* function calls or variable references in your private
config will break and should be replaced with their nerd-icons-*
equivalent. That said, Doom will continue to install all-the-icons for
a while, so feel free to load it if you don't want to fully commit to
the change yet.

This change is happening because nerd-icon has wider support for GUI and
TUI Emacs; has a larger, more consistent selection of symbols; plus unicode
coverage.

Fix: #7368
Close: #6675
Close: #7364
2023-09-14 01:03:55 +02:00
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