Commit graph

33 commits

Author SHA1 Message Date
Henrik Lissner
2f39d3fced fix(cli): "Unknown terminal type" error on bin/org-capture
Fix: #5438
2021-11-24 22:03:21 +01:00
Henrik Lissner
af91af01fa
Merge pull request #3213 from wedens/org-capture-frame-refile
Prevent doom-capture frame from closing when refiling
2020-06-04 19:50:12 -04:00
Henrik Lissner
27544d21cb
bin/org-capture: fix 'Display :0 can’t be opened' error 2020-06-01 14:46:13 -04:00
wedens
66c4317fa2 prevent doom-capture frame from closing when refiling 2020-05-24 23:29:35 +07:00
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
3ce752a227
Generalize +org-capture-frame-p
Plus minor refactor of +org-capture/open-frame.
2020-04-14 15:42:24 -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
Edmund Miller
90096239af
fix: use org-capture-projects-file 2020-01-07 16:06:51 -06: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
26c8f5c6ef
Bytecompiler bytecompiler, won't you shut up 2019-11-23 01:21:25 -05:00
Henrik Lissner
2bf74158fd
Minor refactors across the board 2019-11-04 03:37:54 -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
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
9bbc77c2c7
Focus org-capture frame on MacOS 2019-08-29 18:45:20 -04:00
Henrik Lissner
8147bc1aee
💥 lang/org: conform to new name conventions 2019-07-22 02:30:38 +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
bf9a50eaea
Fix #1481: not a valid workspace error on +org-capture/open-frame 2019-06-11 17:21:52 +02:00
Henrik Lissner
79ac04f0b1
Fix default personal org-capture targets
Supposed to resolve to {org-directory}/todo.org, but instead resolved to
{default-directory}/todo.org.
2019-03-13 18:22:57 -04:00
Henrik Lissner
53fe7a1f04 Refactor Project API to reflect changes upstream
projectile-project-root no longer returns `default-directory` if not in
a project (it returns nil). As such, doom-project-* functions (and their
uses) have been refactored.

+ doom-project-p & doom-project-root are aliases for
  projectile-project-p & projectile-project-root.
+ doom-project-{p,root,name,expand} now has a DIR argument (for
  consistency, since projectile-project-name and
  projectile-project-expand do not).
+ The nocache parameter is no longer necessary, as projectile's caching
  behavior is now more sane.
+ Removed some projectile advice/hacks that are no longer necessary.
+ Updated unit tests
2018-09-28 21:13:27 -04:00
Henrik Lissner
77255a63e0
lang/org: refactor & expand org-capture-templates
+ Adds three new default org-capture templates, for todo, notes and
  changelogs. It will use the first {todo,notes,changelog}.org file
  found up the file heirarchy from the current file, or will use
  {project-root}/X.org.
+ Variables in org-capture-templates are now resolved relative to
  org-directory, if they aren't absolute.
+ Display target file in org capture window header-line.

Mentioned in #886.
2018-09-19 23:30:00 -04:00
Henrik Lissner
7c82cb6002
org-capture: remove window-system frame parameter
Hopefully, `make-frame` can figure out which window-system to use.
2018-08-16 12:32:13 +02:00
Henrik Lissner
60f6418db2
lang/org: Rename +org-capture-window-params
These are frame parameters; it is incorrect to call them window
parameters.
2018-08-08 23:37:29 +02:00
Henrik Lissner
e30ca73dc4
Autoload +org-capture-window-params 2018-08-08 20:44:03 +02:00
Henrik Lissner
7dd5c12b44
lang/org: disable make-frame hooks in +org-capture/open-frame 2018-04-23 17:50:24 -04:00
Henrik Lissner
80aa086680
APPEASE THE GREAT BYTE-COMPILER-SAMA 2018-03-20 21:20:45 -04:00
Henrik Lissner
c0e5152b8f
lang/org: replace +org-capture/open with org-capture 2018-03-14 17:25:25 -04:00
Henrik Lissner
be94fc4d91
lang/org: remove unused evil autoloads 2018-02-18 03:07:57 -05:00
Henrik Lissner
4321f20b3e
Appease byte-compiler-sama 2018-02-14 20:54:53 -05:00
Henrik Lissner
69dc25ae4c
lang/org: fix external org-capture workflow
+ Fix frame-spawning when calling bin/org-capture
+ Integrate counsel-org-capture into bin/org-capture workflow
+ Ensure frame is closed if counsel-org-capture is cancelled
+ Ensure org-capture buffer closes the associated frame
+ Add transient frame property for org-capture frames

If you are using a tiling window manager, you'll need to add a rule for
a window named "org-capture" in order to make a floating window.
2018-02-07 01:08:33 -05:00
Henrik Lissner
76a4ae459d
Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
Henrik Lissner
b111303d20
Move modules/org/* back to lang/org 2017-12-08 23:14:13 -05:00
Renamed from modules/org/org-capture/autoload/org-capture.el (Browse further)