Commit Graph

271 Commits

Author SHA1 Message Date
Daniel - 7582c2065e
Include timestamps in org agenda effort summation
Those correspond to fix appointments.
2021-01-29 17:21:04 +01:00
Daniel - 9cf17c973f
Show sum of daily efforts directly in the agenda
Now that column view does not show effort sums any longer, we need another means
to show daily efforts.  It turns out that this can be accomplished easily using
two simple functions and `org-agenda-finalize-hook`.

This is taken from
https://emacs.stackexchange.com/questions/21380/show-sum-of-efforts-for-a-day-in-org-agenda-day-title#21902.
2021-01-29 17:11:55 +01:00
Daniel - 4ecafaa411
Allow to refile under periodic tasks
Sometimes an instance of a periodic tasks requires individual subtasks.  In this
case, refiling there is very helpful.  In other cases, the extra entries should
not be disturbing too much, I think … I hope.
2020-10-12 16:28:43 +02:00
Daniel - 9907b1b2ae
Allow remote links and backling search for more headlines
Include all headlines in Org agenda files and as well as all extra text search
files in interactive selections.  To make this more managable, introduce a
dedicated function to query the user for a target item.
2020-09-28 19:37:58 +02:00
Daniel - 669ecb6e4f
Trying to make backling searching work for custom-id links 2020-09-26 18:16:43 +02:00
Daniel - 4efb8cfe18
Use org-store-link for adding links to other items 2020-09-26 18:10:34 +02:00
Daniel - 68c6423cae
Fix docstring 2020-09-26 18:07:57 +02:00
Daniel - ff184ec47a
Check whether we are in Org Mode before inserting remote link 2020-09-26 16:48:02 +02:00
Daniel - 1c065bb46b
Add simple function to insert links to other items at point 2020-09-26 16:44:40 +02:00
Daniel - f7ddab7696
Fix error message 2020-09-26 16:29:50 +02:00
Daniel - dd30d5d7be
Set default buffer when querying for Org Mode headlines
Apparently, if the current buffer is not associated with a file, things break.
2020-09-26 15:24:07 +02:00
Daniel - b0a36749e6
Refactor Org Mode link finder function
The main entry point is now `db/org-find-links-to-current-item', which decides
how to obtain the ID and CUSTOM_ID of the item to look for.  The main work is
done by `db/org-find-items-linking-to-id', which does some checks, build the
query, and then calls `org-search-view' (which, indeed, does the actual work).
Users should call `db/org-find-links-to-current-item' only.
2020-09-26 15:20:11 +02:00
Daniel - c219d77ab9
Query for headline in link finder function when outside of Org Mode 2020-09-26 15:12:49 +02:00
Daniel - 994be97397
Fix consistency check for link finder function 2020-09-26 15:12:28 +02:00
Daniel - cde56c819e
Extend backward link searching function
Now support CUSTOM_ID as well, and check arguments for plausibility.
2020-09-26 15:00:34 +02:00
Daniel - a6f77f8d71
Add simple helper function to find items linking to the current one
Only ID links are supported by now.
2020-09-26 14:14:45 +02:00
Daniel - 685d55cf93
Do not require main notes file to be part of org-agenda-files
Neither logging information not tasks should be part of that file, so keeping it
in `org-agenda-files' is not really necessary.  Indeed, it has only been
included in there to allow `org-search-view' to search that file.  However, with
using `org-agenda-text-search-extra-files' makes this approach obsolete.
2020-09-20 10:39:58 +02:00
Daniel - 14cfae155a
Add some documentation for custom agenda deadline listing
It should be clear why we are using this, and not the standard agenda list.
2020-09-17 16:05:20 +02:00
Daniel - 03f23b11fb
Copy complete template for periodic tasks
Previously, we only copied the last element in the subtree, assuming that this
encompasses all of the content of the subtree.  However, this is not true, and
thus we have to do something more elaborate.  Now, starting from the end of the
subtree, we go up all elements in the subtree until we reach either the headline
or a drawer.  Everything in between is copied as template to the current
location.
2020-09-01 16:23:28 +02:00
Daniel - 1ba91b3271
Introduce dedicated variable for main Org Mode file
The shortcut in the frequently-used menu now points there, and not anymore to
the dedicated home and work files.  If only a single main Org Mode file is used,
this variable should be sufficient.
2020-08-27 12:16:54 +02:00
Daniel - b49018129b
Remove trailing whitespace when copying templates for periodic tasks 2020-07-18 19:13:04 +02:00
Daniel - 4084e0ccae
Do not refile to elements of periodic tasks
If separate things should be done, generate a separate item for it, or leave
some note at the corresponding series element.  Periodic tasks are quite rigid
and should not be used for collecting individual subtasks.
2020-07-04 11:43:19 +02:00
Daniel - d1c4ad5b5d
Remove unused `db/org-clock-current-task' 2020-07-01 17:16:39 +02:00
Daniel - 4f063c5e6b
Fix misinterpretation of percent sign in org-clock hydra 2020-07-01 17:15:13 +02:00
Daniel - fa1344bf4e
Silence another byte-compiler warning 2020-06-27 10:12:46 +02:00
Daniel - b5d7b57b27
Use `autoload instead' of `declare-function' 2020-06-27 10:11:13 +02:00
Daniel - c96083c871
Declare `w32-shell-execute' to silence byte-compiler 2020-06-27 09:42:16 +02:00
Daniel - 46d9973146
Move last Org Mode utility function from `db-utils' to `db-org' 2020-06-27 08:56:53 +02:00
Daniel - 0583c08cda
Move Org Mode utilities to `db-org'
`db-utils', the original place, is used for general purpose utility functions.
2020-06-26 23:21:37 +02:00
Daniel - 755fb23e2b
Replace `org-get-tags-at' by 'org-get-tags' 2020-06-26 22:17:25 +02:00
Daniel - b2709c0187
Add missing require for `db-org' 2020-06-26 22:07:14 +02:00
Daniel - 1cad9cc186
Remove obsolete `db/cmp-date-property' function 2020-06-26 22:00:18 +02:00
Daniel - 336ee9d7c4
Incorporate some suggestions from the byte compiler 2020-06-26 21:59:25 +02:00
Daniel - bec4bc13a2
Add new PERIODIC tag for recurring tasks
As described in [1], we are sometimes representing recurring tasks as lists of
single tasks plus a recurring task to create new instances once in a while.  All
of this is grouped under a common headline, and those headlines should be marked
with PERIODIC to inhibit automatic clock-in.

[1]: https://karl-voit.at/2017/01/15/org-clone-subtree-with-time-shift/
2020-01-31 10:41:08 +01:00
Daniel - 38f7fd7c88
Move some more custom org mode link handlers to `db-org'
This is where they belong, nowhere else.
2020-01-19 17:21:14 +01:00
Daniel - c566908deb
Let the org mode RFC link handler cache its documents
RFC documents do not change over time.  The custom org mode link handler
`db/org-rfc-open' now makes use of this by downloading RFC documents to
`db/rfc-cache-path' (if defined) and opening the files locally.  If
`db/rfc-cache-path' is not defined, the RFC is opened in an external browser as
before.

This allows to keep a selection of used RFC documents locally on the filesystem
for future reference, without the need to retrieve them again from the IETF.

Since this is all org mode related, the handler now also resides in `db-org'
instead of `db-utils'.
2020-01-19 17:17:47 +01:00
Daniel - 6f856c61b6
Properly declare ignored variable 2020-01-05 14:42:13 +01:00
Daniel - 243e579973
Check whether special org-mode files are included in agenda when displaying it 2020-01-05 13:36:37 +01:00
Daniel - ec83430a70
Remove `db-update-org-agenda-files'
It's not used anymore and won't ever work as intended.
2020-01-05 13:06:50 +01:00
Daniel - 5627da7b42
Simplify output 2020-01-05 12:18:33 +01:00
Daniel - 541940d7dc
Fix glitch in custom setter for `org-agenda-file' 2020-01-05 12:17:37 +01:00
Daniel - e234912180
Inline `org-agenda-file-to-front'
This allows to use the value for the new file directly, instead of opening a
buffer for it.
2020-01-05 12:10:31 +01:00
Daniel - cf14629099
Remove obsolete debugging output 2020-01-05 11:57:43 +01:00
Daniel - bd65533b97
Update custom setter for special org agenda files
The setter will now complain if the file to be added to `org-agenda-files' does
not exist and is not readable.  It also now uses the proper functions from `org'
to update `org-agenda-files'.
2020-01-05 11:56:05 +01:00
Daniel - e63356ad06
Add descriptions to clocking hydra 2019-12-20 15:17:05 +01:00
Daniel - 2bc02703eb
[Org] Change title of all active frames when entering new task 2019-12-05 17:09:49 +01:00
Daniel - 44e6818abb
[Org] Provide function to set frame title from current clock 2019-08-31 11:26:04 +02:00
Daniel - ff06cddaba
[Music] Move shortcut to play automatic playlists to EMMS hydra
This is the right place.
2019-06-10 09:39:52 +02:00
Daniel - 016fbf3c10
[Org] Extend functionality to insert past interruptions
For this a new function ‘timeline-tools-clockline-no-org-agenda-conflicts’ as
been added that reads in a clock line (start and end times), updates all org
agenda files to fix conflicting clock lines, and returns the string of the new
clock line.  This works for all complete clock lines (i.e., those with end
times), but not for open clock lines (i.e., those missing an end timestamp).
2019-02-16 14:06:25 +01:00
Daniel - ff276c1316
[Org] Remove duplicates when updating ‘org-agenda-files’ 2019-02-10 20:13:49 +01:00
Daniel - 25ec604019
[Org] Change the way ‘org-agenda-files’ is set
Up to now, ‘org-agenda-files’ only consisted of the four variables customizable
in init.el, namly ‘db/org-default-work-file’, ‘db/org-default-home-file’,
‘db/org-default-notes-file’, and ‘db/org-default-refile-file’.  However, this
meant that no *additional* agenda files were possible, like including multiple
files for notes.  This should not be the case any longer.
2019-02-09 17:39:12 +01:00
Daniel - 83c1dfbed1
[Org] Simplify ‘db/make-org-capture-frame’ 2018-11-18 16:57:16 +01:00
Daniel - 5b64a89943
[Org] Code to make frame for spontaneous capturing 2018-11-18 16:39:43 +01:00
Daniel - 3459213765
[Org] Add simple check for ‘db/clock-in-by-task-id’ 2018-11-18 16:00:13 +01:00
Daniel - b11c63c49e
[Org] Clean up code for main hydra 2018-11-18 16:00:04 +01:00
Daniel - f6c7a408db
[Misc] Remove db-emacsclient.el and distribute functions to other files 2018-11-18 15:37:58 +01:00
Daniel - fe6cd4677b
[Org] Update brief documentation of db-org 2018-11-03 11:38:42 +01:00
Daniel - f8c2d0b441
[Org] Move org-capture configuration to init.el 2018-11-03 11:37:31 +01:00
Daniel - ec35b0edae
[Org] Make sure org-clock is loaded when using the org-clock hydra 2018-11-03 11:31:36 +01:00
Daniel - bfe12ddc24
[Org] Move require for org-download to init.el 2018-11-03 11:19:16 +01:00
Daniel - bef85cbdc5
[Org] Move hook for resetting checkboxes to init.el 2018-11-03 11:19:02 +01:00
Daniel - f510d73ae7
[Org] Move (small) Babel config to init.el 2018-11-03 11:18:40 +01:00
Daniel - d82d1550c6
[Org] Move hack for tag search to init.el 2018-11-03 11:18:22 +01:00
Daniel - 37273353c7
[Org] Move main variable definitions to init.el 2018-11-03 11:15:37 +01:00
Daniel - b8b6842e56
[Org] Move Agenda customization to init.el
some minor other configurations moved to init.el, too.
2018-11-03 10:59:41 +01:00
Daniel - 782dd9b8c1
[Org] Rename function to save current org task to file
That.
2018-11-03 10:30:47 +01:00
Daniel - 00934a6bec
[Org] Move helper functions back to db-org
New approach: all custom helper functions go to db-org, and all actual
configuration will move to init.el (someday).
2018-11-03 10:28:49 +01:00
Daniel - a8d79c52f5
[Org] Beautifications 2018-11-03 09:45:09 +01:00
Daniel - 8d07f1c197
[Org] Move some keybinding to init.el 2018-11-03 09:45:00 +01:00
Daniel - f0a2383b7a
[Org] Restructure configuration for org mode clocking
Moved most of the code to init.el, and some helper functions to the
corresponding hydra in db-org.el (this is the only place where they are used).
2018-11-03 09:44:52 +01:00
Daniel - f96329c4b6
[Org] Readd accidentally remove hyrda for org mode clocking 2018-11-03 09:05:01 +01:00
Daniel - f10ea83cef
[Org] Remove some obsolete or duplicate configuration 2018-11-02 20:28:39 +01:00
Daniel - 54f8492a33
[Org] Restructuring configuration
- Moving some package declarations to init.el
- Moving calendar export function to ‘db-utils’
2018-11-02 20:24:16 +01:00
Daniel - 06c427aba3
[Misc] Make most variable settings in init.el customizable
This is achieved by moving the variable definitions to use-packages’ :init
blocks, and allowing ‘db/run-init’ to override these definitions by calling
‘load-file’ on custom.el afterwards.

Also inlined some definitions from my custom.el file back into init.el
2018-11-02 18:17:51 +01:00
Daniel - e73c4d0596
[Org] Include diary in agenda view 2018-10-31 13:51:39 +01:00
Daniel - 73c2162b22
[Org] Fix bug in fix for ‘org-cached-entry-get’
and I thought it worked backed then, don’t know what I had tested …
2018-10-21 09:44:58 +02:00
Daniel - 93fc26e426
[Org] Remove old diary file before exporting new one 2018-10-07 19:19:33 +02:00
Daniel - f1a5c46f55
[Org] Explicitly specify cursor position in capture pattern 2018-09-12 17:08:51 +02:00
Daniel - c48bb8d3da
[Org] Hack: don’t read all properties of an entry when asking only for one 2018-09-12 17:08:28 +02:00
Daniel - 7b611873a1
[Org] Some minor modifications in babel configuration 2018-09-09 11:43:24 +02:00
Daniel - de1b42a34d
[Org] Settings for listings package also for beamer 2018-09-09 10:59:46 +02:00
Daniel - 479a797a88
[Org] Trying some color in LaTeX export
Not there yet, but close
2018-09-08 21:44:04 +02:00
Daniel - 7dbf97b54a
[Org] Further improving LaTeX export settings 2018-09-08 21:36:15 +02:00
Daniel - acd3962f4c
[Org] Some default settings for the listings package 2018-09-08 13:16:20 +02:00
Daniel - 473ac32147
[Org] Use ‘lualatex’ as default 2018-09-08 13:16:17 +02:00
Daniel - bebcee23fa
[Org] No postamble in HTML export 2018-09-08 10:30:39 +02:00
Daniel - ecab60562e
[Org] Restructuring export settings 2018-09-08 10:27:02 +02:00
Daniel - 67b1290088
[Org] Update docstring for function capturing code snippets 2018-08-18 16:34:00 +02:00
Daniel - b6bb05eb3f
[Org] Neat capture template for code snippets
from http://ul.io/nb/2018/04/30/better-code-snippets-with-org-capture/, inspired
by http://irreal.org/blog/?p=7207.
2018-08-18 16:18:14 +02:00
Daniel - 6ab52f11ed
[Misc] Almost exclusively use ‘with-eval-after-load’
instead of ‘eval-after-load’.
2018-08-15 21:12:42 +02:00
Daniel - e8a8781a78
[Org] Update file-apps for default M$ programs 2018-08-15 17:54:50 +02:00
Daniel - 4a2acf28fc
[Org] Fix error in file-app default for Cygwin 2018-08-15 17:51:59 +02:00
Daniel - 9b45215f7a
[Org] Don’t make NOP inherited when looking for stuck projects
This is a major change in the semantics of this tag: NOP now does not designated
whole projects anymore, but only headlines that should not considered by
themselves as projects.  Consequently, sub-headlines of NOP-tagged headlines can
by projects on their own, and also show up as stuck projects if they are so.
2018-08-15 17:49:27 +02:00
Daniel - 4975dab897
[Org] Don’t give up on broken links when exporting 2018-08-14 19:50:36 +02:00
Daniel - 68c235b3d0
[Org] Allow current buffer as additional refile target 2018-08-14 19:50:25 +02:00
Daniel - 78fb2e2860
[Org] Update ‘org-file-apps‘ for Cygwin 2018-08-14 19:50:10 +02:00
Daniel - d5215d60be
[Org] Enable more LaTeX classes 2018-08-09 21:34:28 +02:00
Daniel - d0a98c9c6a
[Org] Move Hy Babel code to ‘db-org’ 2018-08-04 12:32:54 +02:00
Daniel - d8bf5b3e9e
[Org] Add export by pandoc 2018-08-01 16:28:37 +02:00
Daniel - 09c1d2c37c
[Org] Moving loading of hydra to more sensible place 2018-07-31 21:01:18 +02:00