Commit graph

183 commits

Author SHA1 Message Date
Henrik Lissner
d12752324a
Introduce letf! convenience macro
A more succinct cl-letf, which allows for local functions and macros.
2020-04-29 23:48:21 -04:00
Henrik Lissner
2d1a2ed8b3
Fix basic links not returning correct paths
A silly typo by a silly goose.
2020-04-25 01:55:54 -04:00
Henrik Lissner
8c1525e3d8
Rewrite org-download/attach systems
+ Cut down on unnecessary code & advice
+ Fix 'attach and 'download methods for org-download so that a) their
  links actually work and b) inline previews of their links show up.
+ Allow users to only set org-attach-id-dir (which will be mirrored to
  org-download-image-dir, unless the user has changed it).
+ Prevent a few edge cases where org-attach-id-dir or
  org-download-image-dir were blank.
2020-04-25 01:27:25 -04:00
Henrik Lissner
adbe9041ce
Fix inline previews for download:* links 2020-04-25 01:24:48 -04:00
Henrik Lissner
6159068b4d
Rewrite custom org link types
This should fix a few issues with links (like org-download links)
resolving to the incorrect org-directory or org-id-attach-dir (because
it's resolved too early).

I've also simplified and refactored the API to make it easier to grok.
2020-04-24 20:41:56 -04:00
Henrik Lissner
141a649e04
Revert afca8f14a
Fix #2932
2020-04-18 12:51:00 -04:00
Henrik Lissner
7662de55d8
Fix yasnippet breaking org-superstar
Because yasnippet has a delete first and ask never policy for cleaning
up overlays in the buffer.
2020-04-17 02:41:10 -04:00
Henrik Lissner
afca8f14a1
Fix image previews for download:* org links 2020-04-15 23:47:14 -04:00
Henrik Lissner
f02d28543b
Remove reference to org-bullets
Package was replaced in 5c4f3c62a
2020-04-15 18:21:50 -04:00
Henrik Lissner
3ce752a227
Generalize +org-capture-frame-p
Plus minor refactor of +org-capture/open-frame.
2020-04-14 15:42:24 -04:00
Henrik Lissner
169fe6a7f4
lang/org: revise docstrings 2020-04-14 15:37:00 -04:00
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