Commit graph

550 commits

Author SHA1 Message Date
Wetlize
5ef733b488 lang/org: Add +roam2 flag for org-roam v2 2021-07-25 01:42:09 +03: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
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
Henrik Lissner
4dceae1826 lang/org: hl dead links in warning + org-link faces 2021-06-01 21:24:32 -04:00
Henrik Lissner
a4d2e873ab Bump :ui doom
hlissner/emacs-doom-themes@4199e74 -> hlissner/emacs-doom-themes@4d24728
hlissner/emacs-solaire-mode@9d143db -> hlissner/emacs-solaire-mode@186f97d

Rewrite solaire-mode usage to adapt to upstream changes. This will yield
a new class of edge cases, but I'll tackle those as I encounter them.

Closes #5063
2021-05-21 23:13:14 -04:00
Henrik Lissner
bd94ef8f84 Optimize reading org-agenda buffers in the bg
Less init work when opening org-agenda buffers = faster org-agenda.
2021-05-16 21:18:26 -04:00
Hynggyu Jang
1e1838d29b fix #4901: suppress strange behavior of org agenda commands
With current hacks involving `org-agenda-files`, one cannot use org agenda
commands like clock in or change the entry's state to done, etc.

Specifically, the mangled behavior observed at #4901. This commit fixes those
problems around `org-agenda` buffer specific commands.

For more details, please refer to https://github.com/hlissner/doom-emacs/issues/4759#issuecomment-822100632.
2021-04-24 10:53:29 +09:00
Henrik Lissner
f621ff8047 lang/org: fix org-ditaa jar paths
Now also includes contrib/scripts in org-mode's build directory.
2021-04-21 21:45:04 -04:00
Henrik Lissner
c339bb0929 Fix #4563: ob-c.elc failed to provide feature ob-c
Due to case shenanigans, ob-C.el's feature name is ob-C, not ob-c,
preventing folks from using 'c' (lowercase) as a language name for org
babel blocks.
2021-04-17 00:09:50 -04:00
Henrik Lissner
0683861f3f Make doom-first-*-hooks trigger less aggressively
This fixes a class of issues where doom-first-file-hook would fire even
for files not opened interactively (e.g. via org-agenda reading agenda
files or helpful scraping definitions from source files).

In instances like these, hooks like find-file-hook or pre-command-hook
are set to nil to speed up this process and reduce noise, but many
packages add to these hooks when they are loaded; these are lost when
their lexical values fall out of scope, leading to odd errors (like the
one in #4759).

Fixes #4759 (again)
First brought up in hlissner/doom-emacs@9f08db8
2021-04-14 23:43:45 -04:00
Henrik Lissner
83e0451cba Fix org-capture popup rules for partials & non-org files
When a capture target didn't have an *.org file extension OR its buffer
was displayed before it was renamed to CAPTURE-* (e.g. while a capture
template prompts for input) the popup handler fails to capture the new
window, displaying it in other-window, rather than a popup.
2021-03-27 18:27:02 -04:00
Henrik Lissner
9f08db8e33 Fix #4759: suppressed doom-first-file-hook side-effects
An optimization that minimizes how much work is done when grabbing org
agenda files in the background prevented side-effects in
doom-first-file-hook. This had the indirect effect of preventing
save-place-mode from adding its hook to find-file-hook IF org-agenda was
the first thing you ran at startup.
2021-03-10 20:33:37 -05:00
Henrik Lissner
377608c54b Fix #4651: don't trigger formatters on org tangle 2021-03-10 13:03:29 -05:00
Henrik Lissner
7c38eee96c Fix #4727: wrong-type-arg error on async org export
Because org-export-async-init-file will have a different value in the
temp buffer created for the temp file.
2021-03-10 13:03:29 -05:00
Henrik Lissner
5069d95b42 Fix #4745: defining as dynamic an already lexical var
If a dynamic variable is first defined in the same scope where it is
lexically bound, you get this error.
2021-03-07 13:04:24 -05:00
Henrik Lissner
08de1856fa Fix #4733: aggressive saving of org capture buffers 2021-03-06 00:53:18 -05:00
Henrik Lissner
2ab8800bb4 Fix #4726: void-variable org-babel-async-language-blacklist
Supposed to be ob-async-no-async-languages-alist
2021-03-03 15:26:25 -05:00
Henrik Lissner
19563de316 Restore fallback warning removed by ce1105b46
Shoulds till warn when the language isn't blacklisted.
2021-03-02 12:07:45 -05:00
Henrik Lissner
ce1105b463 lang/org: suppress :async+:session warnings for blacklisted langs
If they're blacklisted, they may have their own :async implementation,
like jupyter does. The warning isn't useful or true for them.
2021-03-02 12:05:36 -05:00
Thomas Moulia
ee26c02e1c
Add org-agenda-priority keybindings to org config (#4521)
* Add org-agenda-priority keybindings to org config

Summary: This diff adds evil-esque keybindings for the org-agenda-priority
functions. These functions allow the org subtree priority to be set from
the agenda view.

* Correct org priority keybinds

These keys were meant to be on <localleader> p, but were mistakenly
bound on <localleader> s p.

Also mirrors these keybinds to org-agenda-mode-map.

* Use non-agenda org-priority commands

Also make casing in which-key labels more consistent.

Co-authored-by: Henrik Lissner <accounts@v0.io>
2021-03-01 23:04:41 -05:00
Henrik Lissner
49c3c84d7f lang/org: disable ob-async on export or :session
Refactors advice to disable ob-async when exporting org documents or
when the :session parameter is present (ob-async does not support it).
Execution is degraded to synchronous execution and a warning logged.
2021-03-01 22:27:17 -05:00
Henrik Lissner
2ebc4be111 lang/org: reformat keybinds 2021-03-01 22:27:17 -05:00
Henrik Lissner
9c67bf0044 lang/org: revert org-footnote-auto-label to default
'plain is no longer an accepted value.
2021-02-27 10:31:49 -05:00
HyunggyuJang
5d8cbb9541
evil-org-mode-map's CSright conflict with Cright
I understand that what you tried to accomplish via CSright was; however, it doesn't make any difference from Cright, and so for other navigation keys -- h,j,k,l.
I fixed this discrepancy.
2021-02-27 12:07:31 +09:00
Henrik Lissner
f26161410c lang/org: add TODO keywords & fontification
+ Adds LOOP and IDEA to primary todo keywords.
+ Adds OKAY, YES, and NO sequence.
+ Specially fontifies NO and KILL with special "cancelled" face to
  indicate an aborted/rejected task.
+ Specially fontifies PROJ to set it apart.
2021-02-26 21:33:00 -05:00
Henrik Lissner
ed86f99655 lang/org: open org links to remote paths in emacs 2021-02-26 21:33:00 -05:00
Henrik Lissner
e1683dc763
Merge pull request #4403 from gagbo/fix/bepo-exhaustive-remaps
Fix/bepo exhaustive remaps
2021-02-25 14:21:57 -05:00
Henrik Lissner
2ce726b318 Force async babel blocks to export synchronously 2021-02-25 13:16:21 -05:00
Gerry Agbobada
065b26e0c5
[:ui layout bepo] Fix notmuch, C-, M- mappings
WIP:
- Add fixme for evil-org remaps

Misc changes:
- Remove notmuch-search binding
  (Unmap the bare "s" keymap from notmuch)
- Remap [] evil-org bindings to ()
- Fix org-capture not finalizing with C-c
- Remap evilem-map
- Add more triggers to minibuffer rotations
- Unmap C-c and C-r from evil-org

Meta:
- Specify bepo layout in maintainer status
- Add basic troubleshooting

In the remapping functions:
- Add operator maps
- Remap C- and M- bindings in normal mode

Respect evil-org-movement-bindings:
This allow non-qwerty users to keep the correct bindings. The additional
let-binding is done to force evaluation of the concatenations and avoid
`void-variable concat` when the map! gets evaluated

Avoid double rotation on magit maps

- Reorder properly magit-mode-map like done on notmuch
  (evil-collection PR#428)
2021-02-22 10:32:03 +01:00
Kuba Orlik
cb32f3f13c
Remove the custom org-priority-regexp
This regular expression broke sorting by priority in agenda view. Reverting it back to the original one fixes the issue
2021-02-17 11:11:38 +01:00
Henrik Lissner
9f0a5aad4e Optimize org-priority-regexp
Mentioned in
https://orgmode.org/list/500865d9-9c8a-25ef-e4ef-030fd4b2a3e3@posteo.eu/T/#m066ffa89b2ab6e888c05ba1efcb4daaf29cc17ccj

May be upstreamed at some point.
2021-02-13 17:01:25 -05:00
Sam Whitlock
cf523eb4dd
Enabling user config override for org-id-locations-file
The use case: if a user has their org directory stored in a synced
location (e.g. dropbox), this file is the same on all machines and is
almost always conflicted.

This change enables users to override this in the :init section of their
config (or otherwise before org loading) and that the
+org-init-org-directory-h hook will detect an override.
2021-02-07 13:16:06 +01:00
Henrik Lissner
12d8691fa8
Fix #4460: simplify +org--strip-properties-from-outline-a
Link cleanup is done upstream, in org, so we don't have to.
2021-01-03 22:37:51 -05:00
Henrik Lissner
83d416ae78
Merge pull request #4476 from ejez/fix-company-backends
Fix company backends for text and org modes
2021-01-03 18:41:13 -05:00
ejez
2465539e19 Fix company backends for text and org modes 2020-12-25 09:44:18 +03:00
Henrik Lissner
3967d6001b
Comment/docstring revision 2020-12-18 16:10:06 -05:00
Henrik Lissner
f2d71ae8fe
Fix #4419: suppress large-file message in org-agenda buffers 2020-12-18 16:08:58 -05:00
Henrik Lissner
5827985085
Don't increase gc-cons-threshold in org-mode
This was likely unnecessary and may be the cause of recent reports of
slowness/freezing over time.
2020-12-14 01:11:45 -05:00
Henrik Lissner
09ac5a48c1
Add org-export-async-debug to debug vars 2020-12-12 15:56:36 -05:00
Henrik Lissner
f40a2e1ed7
lang/org: apply +org--fix-async-export-a to org-export-as 2020-11-14 13:52:11 -05:00
Jay
454eef591a Created PR to backport emacs-lisp org-babel evaluation to manage the UI 2020-11-09 02:25:59 -05:00
Ryan Lloyd
ccda9ef6bb
Fix Issue #4212; Use Back-Slash for Win FileShares (#4218)
* Fix Issue #4212; Use Back-Slash for Win FileShares

* Replace single backslash with double

Co-authored-by: Henrik Lissner <accounts@v0.io>
2020-11-06 02:32:09 -05:00
Henrik Lissner
304424d844
Fix #4212: slow file checks over network shares
On windows.
2020-11-04 14:40:44 -05:00
Henrik Lissner
50226c45e6
setq -> setq-default for org directory vars
So lazy loaded settings won't overwrite dir or file local variables.
2020-11-03 22:00:15 -05:00
Henrik Lissner
a835be1c40
Fix #4010: respect custom org-export-async-init-file 2020-10-16 04:19:27 -04:00
Henrik Lissner
6b06e0b52f
lang/org: ensure org-auto-align-tags is respected
Should be reported upstream.
2020-10-14 01:03:29 -04:00
Henrik Lissner
ea575e3a8d
Bump :lang org
Kungsgeten/org-brain@671db0e -> Kungsgeten/org-brain@e703ae0
abo-abo/org-download@67b3c74 -> abo-abo/org-download@42ac361
astahlman/ob-async@80a30b9 -> astahlman/ob-async@de1cd6c
bastibe/org-journal@a2728e2 -> bastibe/org-journal@e7c51c4
emacs-straight/org-mode@220f2b0 -> emacs-straight/org-mode@e2bb605
fuxialexander/org-pdftools@8cc15bb -> fuxialexander/org-pdftools@3c2b9a4
hakimel/reveal.js@15815ef) -> hakimel/reveal.js@e09437f)
integral-dw/org-superstar-mode@94f35c2 -> integral-dw/org-superstar-mode@7f83636
kaushalmodi/ox-hugo@75b849e -> kaushalmodi/ox-hugo@95723cd
oer/org-re-reveal@7fe39d5 -> oer/org-re-reveal@29f565f
org-roam/org-roam@c33867e -> org-roam/org-roam@87d7c07

Closes #4034; company-org-roam is now deprecated, completions are
provided via capf instead.

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
2020-10-11 16:37:51 -04:00
Henrik Lissner
a7c3c5a9d2
Remove org-format-latex-options :background hack
This will be fixed upstream soon, in solaire-mode.
2020-10-04 23:06:11 -04:00
Henrik Lissner
6a30a11709
Fix #4023 (again): background mismatch for latex previews 2020-10-04 21:26:20 -04:00
Henrik Lissner
018a95cf32
Fix #4023: background mismatch for latex previews
A doom-load-theme-hook hook fixes the background of latex previews, but
by the time org is loaded, this hook will have long since triggered,
giving it no change to update its background, so we must run it at least
once, immediately.
2020-10-04 18:24:59 -04:00