Commit graph

172 commits

Author SHA1 Message Date
Henrik Lissner
41606f5369
Only realign tables in +org-realign-table-maybe-h
Don't recalculate formulas.
2020-04-13 15:23:16 -04:00
Henrik Lissner
da427a1b95
Fix #2880: RET on links in other elements 2020-04-11 14:43:58 -04:00
Henrik Lissner
ec671002d6
Fix void-variable +org-present--overlays
Accidentally removed some time ago.
2020-03-26 17:34:32 -04:00
Henrik Lissner
cdaa55b4db
Rename org-capture frame to doom-capture
To reduce likelihood of conflicts.
2020-03-01 01:39:14 -05:00
Henrik Lissner
dbd0a84805
Don't use counsel-org-capture for +org-capture/open-frame 2020-02-26 17:34:59 -05:00
Henrik Lissner
c62c3bc4cd
Fix #2544: revert 5ecf206681 2020-02-20 20:30:43 -05:00
Henrik Lissner
ca18034e32
Fix drag'n'drop in non-org-mode buffers 2020-02-17 04:58:57 -05:00
Henrik Lissner
047ea8dab5
Update & fix org-tree-slide-mode integration 2020-02-02 16:02:28 -05:00
Henrik Lissner
827225e331
Fix #2429: replace defunct attach: links w/ download:
Forgot that support for attach: links were removed some time ago, but I
still want short org-download links, so I've added 'download:' links.
2020-01-26 02:20:39 -05:00
Nikodemus Siivola
8332daccee make +org--insert-item respect emacs-mode
No change of behaviour in non-emacs modes, but in emacs-mode stays there
   instead of switching to insert-mode.
2020-01-25 19:38:33 +02:00
Henrik Lissner
558e906b2b
Add 'SPC m r f' for refiling to specific org file 2020-01-09 15:59:58 -05:00
Edmund Miller
90096239af
fix: use org-capture-projects-file 2020-01-07 16:06:51 -06:00
Henrik Lissner
a9763fe76b
Fix vestigial reference to +org-attach/uri 2020-01-02 16:22:52 -05:00
Henrik Lissner
d84df72364
Dumb indent on TAB when in middle of subtree 2020-01-01 21:19:22 -05:00
Henrik Lissner
07823d00a7
Fix yasnippet expansion in org src blocks
This is hacky, and causes weirdness with org-bullets-mode, but it works.
2020-01-01 21:19:22 -05:00
Henrik Lissner
b9f90b3a1a
lang/org: clear src block results on TAB
When cursor is inside a src block. e.g.

  #+BEGIN_SRC elisp  <-- not here
  (message "hi")     <-- in here
  #+END_SRC          <-- not here
2019-12-30 00:07:19 -05:00
Henrik Lissner
14cf97e594
lang/org: use org-attach instead of custom system
- Adds more keys under `<localleader> a`
- Reconfigures org-download to use org-attach system
- Make org-id-track-globally = t a global default now (not just for
  org-brain)
- Renamed +org-init-centralized-attachments-h to +org-init-attachments-h
- org-attach-store-link-p = t (stores a link to an attachment when it is
  attached)
- org-attach-use-inheritance = t (inherit attachment properties from
  parent nodes)
2019-12-29 16:31:25 -05:00
Henrik Lissner
5ecf206681
lang/org: remove select-frame-set-input-focus hack
Thanks to 3583e1f2e, this is no longer necessary.
2019-12-22 23:53:04 -05:00
Henrik Lissner
27cabea6b6
Fix gs in org-mode #2218
Also makes +evil/easymotion generic; it can now be moved to any key, and
new keys can be added to the <easymotion> event, rather than having to
wait for evilem-map to become available.

Also fixes +org/goto-visible if used before avy is loaded.

Relevant to #1672
2019-12-20 13:40:06 -05:00
Henrik Lissner
73d975de6c
lang/org: make C-RET create headings instead of error 2019-12-20 02:13:11 -05:00
Henrik Lissner
c8cfa31a1e
lang/org: add goto-visible & refile-to-visible commands
- Bind 'gsh' to goto-visible command in org-mode
- Bind '<localleader> g v' to goto-visible
- Bind '<localleader> r v' to refile-to-visible
- Add avy package to lang/org module

Powered by avy.
2019-12-06 17:01:58 -05:00
Henrik Lissner
6cf17b1237
config/default: rebind 'SPC n {c,C,n,S}'
'SPC n c' -> Toggle last org clock
'SPC n C' -> Cancel current org clock
'SPC n n' -> org-capture
'SPC n S' -> Search org-directory headings

Closes #2043
2019-12-06 13:38:57 -05:00
Henrik Lissner
26c8f5c6ef
Bytecompiler bytecompiler, won't you shut up 2019-11-23 01:21:25 -05:00
Henrik Lissner
30f72da02a
Fix No such file org-version.el errors #2010
We generate an org-version.el file, rendering our old org-release hacks
unnecessary. This may cause breakages for uses who do deep clones of
org-plus-contrib; needs testing.
2019-11-19 20:29:22 -05:00
Henrik Lissner
7879a93081
lang/org: preserve TODO keyword on C-RET
Rather than reverting to first TODO keyword.
2019-11-12 15:24:02 -05:00
Henrik Lissner
f70f788df3
lang/org: don't auto-demote headings on C-RET
This can be harder to predict. Instead, use TAB and S-TAB after-the-fact
to adjust heading level.
2019-11-12 15:24:01 -05:00
Henrik Lissner
44d5e097c9
shell-command-to-string -> doom-call-process #1887
Minor optimization to remove a layer of indirection when starting
processes.
2019-11-08 16:02:06 -05:00
Henrik Lissner
2bf74158fd
Minor refactors across the board 2019-11-04 03:37:54 -05:00
Henrik Lissner
4703992002
Suppress missing-file org-version errors 2019-11-04 00:37:25 -05:00
Henrik Lissner
040fcfcffa
lang/org: add centralized org-capture project targets
For saving project todos/notes/changelogs in a central
{org-directory}/projects.org file, under {Project
Name}/{Tasks,Notes,Changelog} headings.

If you want to prefix the outline path, you can specific a :parents
property. e.g.

  (after! org-capture
    (org-capture-put :parents '("Projects")))

or

  (dolist (key '("ot" "on" "oc"))
    (setf (alist-get key org-capture-templates)
          (append (alist-get key org-capture-templates)
                  '(:parents ("Projects")))))

Also sets :kill-buffer t by default, for all org capture templates.
2019-10-31 22:45:59 -04:00
Henrik Lissner
0b8e7a27b6
Minor refactoring/reformatting across the board 2019-10-31 14:35:07 -04:00
Henrik Lissner
7b9c13f25f
lang/org: expand refile commands
Changes 'SPC m r' into a prefix with multiple refiling commands.
2019-10-28 23:23:13 -04:00
Henrik Lissner
9b3f21a9bc
Optimize doom/help-search
Yields a ~80% decrease in indexing time.
2019-10-26 02:12:58 -04:00
Henrik Lissner
5f00db871e
lang/org: major refactor & add org-fancy-priorities package
- Fixes an issue where evil bindings weren't working in org-mode
- Significantly slims down on unnecessary keybinds
- Remove +org-init-keybinds-for-evil-h hook and reli more on our new
  evil-org fork, which has upstreamed some of our changes.
- Documents undocumented functions, remove unnused ones, and reorganize
  org's autoload libraries by convention.
- Adds org-fancy-priorities for more elegant (and subtle) priority
  display than ugly [#A] tags.
2019-10-25 20:25:20 -04:00
Henrik Lissner
1694641636
lang/org: minor refactor of contrib submodules 2019-10-20 19:57:28 -04:00
Henrik Lissner
e10cd8cf2e
Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Henrik Lissner
f816149589
lang/org: update +org/remove-link
To reflects changes made upstream, in org.
2019-09-07 19:57:58 -04:00
Henrik Lissner
9bbc77c2c7
Focus org-capture frame on MacOS 2019-08-29 18:45:20 -04:00
Henrik Lissner
9ab49be564
Fix "fatal: no names found" errors on 'doom rebuild'
Some packages that depend on org (like elfeed) will load the built-in
org early in the rebuild/package install process, which causes org to
define org-release and org-git-version, sometimes overwriting our stubs
for it. Without our hack, org call 'git describe' in the org repo in an
attempt to determine the installed version, which won't work in a sparse
clone. To ensure future definitions never overwrite ours, we advise them
as well.

Also moves magit-version hack to its autoload file, for consistency with
org's hacks.
2019-08-07 16:31:45 -04:00
Henrik Lissner
09d67f86d9
lang/org: move org-release hack back to config.el
We don't need it available *that* early.
2019-07-29 15:05:26 +02:00
Henrik Lissner
ead0b1ce15
lang/org: correct paths in comment headers 2019-07-27 17:06:55 +02:00
Henrik Lissner
302ec4e97a
lang/org: fix and autoload org-release hack
- Lazy load all the things.
- Now org-release return a sane version string, which should address
  packages using it to version check org.
2019-07-23 18:36:18 +02:00
Henrik Lissner
8147bc1aee
💥 lang/org: conform to new name conventions 2019-07-22 02:30:38 +02:00
Henrik Lissner
e81cdc0523
lang/org: prioritize checkboxes lower in dwim command
Otherwise, checkboxes take priority over links, clocks or tables.
2019-07-13 02:24:11 +02:00
Henrik Lissner
afdec75cbc
lang/org: refactor ob-ipython advice 2019-07-10 21:50:54 +02:00
Henrik Lissner
468e630110
lang/org: refactor contrib modules
- Fix #1546
- Ensure contrib modules aren't included in byte-compilation/autoload
  generation if their requisite flags aren't enabled
2019-07-09 22:44:51 +02:00
Henrik Lissner
11bfb17894
lang/org: major refactor
The motivation for this change was to rethink lang/org's flags. Many of
its former flags represented non-features. Therefore, its flags have
been reduced to five: +dragndrop, +ipython, +pandoc, +gnuplot and
+present. Everything else is included as org-load-hooks and treated as
reasonable defaults.

Other changes:
- Fixes #1502: don't autopair certain pairs when in a math region
- Fixes #1483: broken localleader in org-agenda
- Adds gnuplot support #1108
- Doom's org submodules have been moved into lang/org/contrib/, because
  I expect there will be *many* more to come, and I don't want to
  pollute the moudle's root.
2019-06-28 17:28:28 +02:00
Henrik Lissner
9a02bd8ac8
Minor refactors across the board
- when-let* -> when-let
- Fix projectile-locate-dominating-file for connected remote files
2019-06-26 14:31:06 +02:00
Henrik Lissner
4ecf6c9414
Add SCHEDULED support to +org/dwim-at-point 2019-06-26 14:31:06 +02:00