Commit Graph

1582 Commits

Author SHA1 Message Date
dbo b384065065
Enable highlighting of "next error messages"
As recommended by https://www.masteringemacs.org/article/whats-new-in-emacs-28-1.
2022-04-29 09:05:18 +02:00
dbo 8101a29d7a
Change default shortcut for "r" from scratch to refile
I am nowadays keeping my notes in the refile file, and not in the scratch
buffer.  Change the keybinding to reflect that.
2022-04-29 09:04:30 +02:00
dbo ad50360623
Update dash 2022-04-29 08:48:39 +02:00
dbo fcdb36b39a
Remove pdf-tools
I am not using them anymore.
2022-04-29 08:48:29 +02:00
dbo 10b69ad923
Remove declaration for db-projects
The code's still there, but not used otherwise.
2022-04-29 08:23:52 +02:00
dbo 8773e60052
Fix history key binding for Eshell with new Emacs 28.1
There's a new mode map `eshell-hist-mode-map` which already contains a binding
for `M-r`, so we have to redefine that key binding there to make it work.
2022-04-29 07:42:39 +02:00
dbo 92e30c7d47
Allow exclusion of individual track from favorite playlist
Filter for the tag `exclude-favorite-playlist` for this.
2022-04-23 18:57:39 +02:00
dbo 8f18c159d0
Code cosmetics
And not using `nconc`, as I am not quite sure whether it would also affect
`org-agenda-text-search-extra-files`.
2022-04-16 10:19:28 +02:00
dbo 341dec6a6a
Simplify code searching for backlinks
Reduce the conditional parts and extract common code.
2022-04-16 10:13:00 +02:00
dbo b670ee57f6
Only search Org buffers when querying for backlinks
It does not make sense to look in non-Org buffers for backlinks of items, but
this was indeed what happend until now: the function `db/org-get-location` only
checked whether the current buffer is associated with a file, and if so uses it
for querying the user for an item to select.  This does not make sense, as
`db/org-get-location` is supposed to return a mark to an Org item.

This is now fixed by `db/org-get-location` to also check whether the current
buffer is also an Org buffer.  It's as simple as that.
2022-04-16 10:08:11 +02:00
dbo 1d5f318b5b
Add function to return list of Org items linking to item at point
This function is not meant for interactive use, but instead should be used in
source blocks such as

```
(db/org-backlinks-to-item-at-point)
```

This will add a table of all items linking to the current item at point, and cut
be used in item templates, for example.

Background: I tried to achive this functionality with `org-ql` directly, but
somehow failed.  This function simply encapsulates the corresponding call to
`org-ql-query`, adding the ID property of item at point automatically.
2022-04-16 09:58:46 +02:00
dbo 5576b363cb
Update headline of WIP block
It's nicer this way :)
2022-04-02 11:00:07 +02:00
dbo fdc32eaa6d
Clear refile cache when updating the headline of an org mode item 2022-04-02 08:56:18 +02:00
dbo 3f01c6fecb
Fix typo in PERIODIC task list and ignore future items
Ignoring future items allows to ignore periodic tasks until they are due again.
2022-04-01 18:32:08 +02:00
dbo 367c8969fc
Make going back and forth in timeline buffers more robust
Do not treat the headline as a valid line.
2022-03-31 14:22:52 +02:00
dbo 3c7ea1b987
Simplify extraction of timeline entries from timeline buffer 2022-03-31 13:35:12 +02:00
dbo e5818fdb8c
Remove 'marker text property in timelines
The marker is contained in the entry anyway, so let's use that.
2022-03-31 13:07:21 +02:00
dbo b80f05d49f
Add first version to move around rows in timelines 2022-03-31 13:05:09 +02:00
dbo 9f0a890b1c
Perform code cosmetics in timeline tools 2022-03-31 13:04:55 +02:00
dbo 8068107326
Stop before headline when going to previous timeline line 2022-03-31 12:41:39 +02:00
dbo ff0ea07f53
Let the SOMEWHEN list also display notes
This allows to keep ideas for later in dedicated NOTE items, to group them
together.  Not sure whether this is really a good idea, as it spreads those
ideas around, but let's try it out!
2022-03-31 08:57:19 +02:00
dbo 4428db4f82
Apply minor cosmetics 2022-03-30 08:44:15 +02:00
dbo cfc11ec807
Keep Org links after insertion by default
When inserting links multiple times, it's annoying to have to go back to the
original place the link points to and reinsert it into the stored link list.
Using a universal argument to toggle `org-link-keep-stored-after-insertion` is
also not an option, as I keep forgetting to use it.

Instead, by default keep all links after insertion.  To be able to handle the
growing list of links, we now provide a function `db/org-clear-stored-links` to
set the list of stored links to the empty list.
2022-03-30 08:42:06 +02:00
dbo 7713f379eb
Simplify use-package declaration for org-ql-search
We want `org-ql-search`, but need to install `org-ql`, so it's best to simply state
this in the `:ensure` declaration.

The `:commands` specification might be redundant, as `org-ql` comes with an
autoload file.  But let's keep it there for clarify purposes.
2022-03-27 11:58:52 +02:00
dbo 20597a12e3
Add org-ql as extended query languag
This includes, among others, a dynamic block to insert the result of a query –
which is exactly what I am looking for.  I have to learn a new query language,
though, but it seems as if non-sexp syntax is easy enough; and having a
lisp-like query syntax is undoubtedly a big improvement!
2022-03-27 11:49:44 +02:00
dbo 85a963e6ae
Update configuration of stuck projects to exclude TEMPLATE items 2022-03-27 10:00:26 +02:00
dbo ce9fa34c1a
Include items in WIP list that are scheduled today or in the past
This way, the WIP list faithfully shows all WIP items and gives a better
overview of the current work load.  Items will appear twice though when they are
scheduled today or in the past.
2022-03-27 09:44:35 +02:00
dbo d025283c24
Experimentally introduce TEMPLATE tag
This should allow to have TODO subtasks in templates without them appearing in
agenda views, among others.

Tried to update some agenda views, but some configurations may still be missing.
2022-03-27 09:41:51 +02:00
dbo 0db003d442
Try fixing adding note in headline update function
Let's not try to use the Org mode functions to add notes, but instead do it
directly manually.  I hope this works better now …
2022-03-24 20:16:50 +01:00
dbo 470a4c2ebf
Do not save bookmarks while using Org capture
I do not use those.
2022-03-19 20:09:06 +01:00
dbo 800e4ed4d1
Try initializing the Gnus registry earlier
Somethings restarting Gnus results in many error messages whether the
`gnus-registry` seems to be nil.  Maybe initializing the registry earlier helps?
2022-03-18 17:05:54 +01:00
dbo 844b0baf0f
Fix markup in init.el commentary
Use - instead of * for itemize, as otherwise the individual items are confused
with headlines.
2022-03-18 17:05:23 +01:00
dbo 5ad6429442
Do not use notmuch for nnmaildir searches anymore
Not needed anymore, as the underlying file layout has changed.
2022-03-14 19:25:06 +01:00
dbo 6eb3e4e943
Do not automatically add ATTACH tag
I do not need this tag and it might confuse me.
2022-03-11 11:46:56 +01:00
dbo 43fb995ba4
Store link to recently attached files
This allows to insert those links directly into the buffer afterwards.  Might
come in handy when inserting screenshots on Windows.
2022-03-11 11:40:36 +01:00
dbo 558330f42c
Exclude done periodic projects from agenda view 2022-03-09 16:21:25 +01:00
dbo 9d7e88df0e
Ensure functioning of Org Clock hydra even if no task is clocked
It happens sometimes that the clock is not active, in which case hydra tried to
replace strings in `org-clock-current-task`, then a nil value.  Fixed this.
2022-02-26 10:16:13 +01:00
dbo c35956c2dd
Fix false filter in Next Action List 2022-02-25 17:13:25 +01:00
dbo 9221f0f8af
Don't let TRAMP use auth-sources when completing input
This is unnecessary and potentially annoying.
2022-02-23 18:10:17 +01:00
dbo b3202085c3
Simplify dired ls switches
This should also work on busybox now.
2022-02-23 18:09:56 +01:00
dbo 5234ddd0a3
Do not show scheduled items in WIP or NEXT list
When things are scheduled, they are shown in the time grid portion of the
agenda.  When they are scheduled in the future, they will not show up until that
date is due; when they are scheduled in the past or present, they are shown on
the time grid directly.  Both situations are sufficient, and it's thus not
necessary to show scheduled items in other lists as well.
2022-02-23 16:51:45 +01:00
dbo 695b3396dd
Extend WIP list with started dates and remove future items
Started dates are also WIP, in particular if they have been interrupted.  Items
scheduled in the future should only appear on the WIP list when they are due.
2022-02-07 17:10:17 +01:00
dbo 83421c072a
Remove trailing whitespace after HTML rendering a file
Those whitespaces are neither necessary nor helpful.
2022-02-06 20:57:36 +01:00
dbo 0a76969a95
Automatically expire elements in Gnus groups via gnus handler
So I don't have to do it manually.

Not sure whether this works, though.
2022-02-06 20:56:46 +01:00
dbo 940c4b04a8
Remove explicit initialization of gnus-demon
This is automatically done by `gnus-demon-add-handler`.
2022-02-06 20:56:19 +01:00
dbo 5178d039f4
Experimentally add a WIP list
I regularly filter the main agenda view for the CONT tag to see my WIP items, so
it's propably meaningful to have this as extra list.  It's using some space in
the agenda view, though, so let's see how this will turn out.
2022-02-06 14:19:45 +01:00
dbo 90223e3ab0
Do not export diary by default
This had been used to synchronize my calender with others, but since this
synchronization is not in use anymore, regular exports are unnecessary.
Furthermore, the export makes Emacs unresponsive sometimes, as the export does
not seem to be easily preemtable.
2022-02-06 10:11:28 +01:00
dbo 2b02da2eca
Do not filter short kill ring entries in helm selection
I sometime kill single characters for usage in query-replace, and not having
them available in the kill ring is hampering.
2022-01-30 21:06:43 +01:00
dbo dccac3982f
Do not highlight LaTeX related syntax by default
Enabling this somehow caused performance issues in Org Mode buffers, and since I
am not using this syntax, let's just disable it.  This setting can be
overwritten via the Customize interface.
2022-01-29 15:37:56 +01:00
dbo 50362f4d27
Allow to ignore stuck projects that are scheduled in the future
This allows to postpone projects into the future when they are not relevant now
but would otherwise be stuck.  Because of the scheduling, an automatic reminder
will appear on the agenda when the date is due, upon which the projects is shown
again as stuck.  Then new items can be planned, or other measure might be taken.
2022-01-23 09:34:18 +01:00