Commit graph

1195 commits

Author SHA1 Message Date
Henrik Lissner
f0ad161643
fix(org): list checkbox toggle on RET
A subtle change in the way org-toggle-checkbox handles its prefix
argument changed how RET (+org/dwim-at-point) handled list
checkboxes (incorrectlying swapping [ ] with [-], but not back, unless
the cursor was directly on top of the checkbox).
2024-02-17 07:13:39 -05:00
Henrik Lissner
52355c6131
fix(org): initialize eldoc in org-mode buffers
A recent change upstream (see emacsmirror/org-contrib@6e208c87bf)
removed the autoload for adding org-eldoc-load to org-mode-hook, so we
have to add the hook ourselves (the function is still autoloaded,
fortunately).

Also moves org-eldoc config into its own use-package! block.

Fix: #7633
Ref: emacsmirror/org-contrib@6e208c87bf
2024-02-14 02:42:30 -05:00
Tim Ruffing
d6db0312fd tweak(org): honor default command when archiving
Change the binding for archiving to `org-archive-subtree-default`, which
is the recommend "catch-all" command in the org manual. The user can
specify the actual command in `org-archive-default-command`. The default
for this variable is `org-archive-subtree`, which we previously used for
the binding, so this commit changes behavior only for users who have set
`org-archive-default-command` explicitly.
2024-02-10 16:57:45 -05:00
Edmund Miller
2ace90233c feat(org): add Kagi custom link type 2024-02-04 21:48:23 -05:00
Henrik Lissner
be48f3588b
bump: :lang org
alf/ob-restclient.el@1a127eb016 -> alf/ob-restclient.el@8183f8af08
bastibe/org-journal@a306f76ee2 -> bastibe/org-journal@605a7eb984
emacs-jupyter/jupyter@0a92c0c978 -> emacs-jupyter/jupyter@da306a6dbd
emacs-straight/org-mode@57b94f3447 -> emacs-straight/org-mode@7a6bb0904d
emacsmirror/org-contrib@79286861ae -> emacsmirror/org-contrib@8fbaceb247
emacsorphanage/ox-pandoc@0f758517f5 -> emacsorphanage/ox-pandoc@399d787b6e
hakimel/reveal.js@d5896c968b -> hakimel/reveal.js@16f6633014
magit/orgit-forge@f595a30aa7 -> magit/orgit-forge@f2ff9e5ad6
magit/orgit@b60efabc4a -> magit/orgit@84bcb5c318
oer/org-re-reveal@e7895dae98 -> oer/org-re-reveal@7c39d15b84
org-noter/org-noter@a4296d8338 -> org-noter/org-noter@8be3763847
org-roam/org-roam@5c06471c3a -> org-roam/org-roam@8667e44187

Fix: #7392
2024-02-04 18:52:46 -05:00
Henrik Lissner
77ea4013dd
refactor: doom-module: conform variables to conventions
- Rename doom--empty-module-context to doom-module--empty-context.
- Nest doom-module-context symbol plist in its 'keys' property. (By
  convention, Doom uses keywords as keys in most places. Let's be
  consistent)
- Updates all uses of doom-module--context-field and
  doom-module-context-get.
2024-02-04 17:54:29 -05:00
Henrik Lissner
659f7bfc71
refactor!: deprecate IS-* OS constants
BREAKING CHANGE: This deprecates the IS-(MAC|WINDOWS|LINUX|BSD) family
of global constants in favor of a native `featurep` check:

  IS-MAC      ->  (featurep :system 'macos)
  IS-WINDOWS  ->  (featurep :system 'windows)
  IS-LINUX    ->  (featurep :system 'linux)
  IS-BSD      ->  (featurep :system 'bsd)

The constants will stick around until the v3 release so folks can still
use it -- and there are still some modules that use it, but I'll phase
those uses out gradually.

Fix: #7479
2024-02-04 17:54:29 -05:00
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