Commit Graph

1394 Commits (1916eb67362f2af8e62a38aef122441fc314dee3)

Author SHA1 Message Date
Daniel Borchmann 1916eb6736
Move point when inserting link to other Org mode item
This is the natural flow, as usually one continues writing after the link, not
before it.
2021-04-01 16:51:03 +02:00
Daniel Borchmann 6a590da9cb
Disable automatic document highlighting in eglot
This causes lagging while highlighting symbols, and the highlighting itself does
not add much value.  Disabling it thus does not hurt and gets rid of the
2021-03-31 21:27:20 +02:00
Daniel Borchmann e2bd3880f1
Directly set variable to always create ID properties for links
This is mostly because I haven't had time to understand what the `:custom`
keyword is actually doing.  Apparently, it introduces customizations without
user interaction, which in turn makes changing default values a manual
process (by changing customizations one has never done) thus resulting in
inconsistent behavior.
2021-03-28 20:01:29 +02:00
Daniel Borchmann 185f1d75f3
Reduce configuration done in `early-init.el`
As per the documentation (see "(elisp)Startup Summary"), only variable
customization that affect package initialization should go into the early init
file.  Defining package archives is explicitly mentioned as something that still
may go into the main init file.  So we move it there and adjust comments
2021-03-28 19:55:59 +02:00
Daniel Borchmann 4d0264b34b
Always create ID properties when creating links
This avoids headline-references (as opposed to referencing IDs) when implicitly
creating links in new items through `org-capture` when already in `org-capture`.
In that case, the %a template specifier will call `org-store-link`
non-interactively (as it seems) and the old setting of
`org-id-link-to-org-use-id` created links based to the headline of the target
instead of creating a new ID property.

Note that this will also always ignore CUSTOM_ID properties, but I haven't used
it anyway.
2021-03-28 17:38:18 +02:00
Daniel Borchmann 96638b09e4
Allow to show backlinks directly from Org agenda buffers
This is more convenient than to first switch to the item in the corrsponding Org
mode buffer and then querying for its backlinks.
2021-03-27 10:39:53 +01:00
Daniel Borchmann 732323edfc
Ensure to always return a marker when inserting links to other items
`org-refile-get-location` sometimes only returns a point and not a marker.  In
that case, manually convert the point to a marker to ensure that calling
functions now where to go to.  Additionally, ensure that
`db/org-default-org-file` is opened if not already done so, and error out if the
current buffer is not associated with a file and no default Org file exists.
2021-03-27 10:22:21 +01:00
Daniel Borchmann 00ca4c0276
Minorly simplify definition of Org linking hydra
This way, the help buffer of the hydra provides a link to the underlying
2021-03-27 09:48:55 +01:00
Daniel Borchmann 22058b1568
Allow adding links to other items without refile verification
We are only using the refile mechanism for convenience here, and not for actual
refiling.  The refile verification function is thus not relevant here.  To take
effect, we also have to ignore the cache, as it may hold precomputed targets
that have used the refile verification function in a previous run.
2021-03-26 16:47:22 +01:00
Daniel Borchmann d6584ef521
Fix signature of frame hook function
This got removed in the last refactoring attempt.
2021-03-26 16:38:17 +01:00
Daniel Borchmann d7b2ad0b71
Extend docstring for hydra-org-linking 2021-03-20 20:50:27 +01:00
Daniel Borchmann fd14313b9b
Only warn about RESET_CHECK_BOXES if it's really there 2021-03-20 16:33:00 +01:00
Daniel Borchmann 7833e28185
Make checkdoc happy about db-org 2021-03-20 16:03:12 +01:00
Daniel Borchmann 6e8b878b4d
Warn when using the deprecated RESET_CHECK_BOXES property
I want to use periodic tasks for repeated tasks with check boxes.
2021-03-20 15:57:45 +01:00
Daniel Borchmann bfcca623dc
Make checkdoc happy about db-hydras package 2021-03-20 15:48:00 +01:00
Daniel Borchmann 78b202aed7
Introduce hydra for managing links between Org mode items
It's easier to use and easier to keep track of what is available.  It also saves
key precious bindings!
2021-03-20 15:45:49 +01:00
Daniel Borchmann 77920dd9a2
Move cursor forward when inserting link to current clock 2021-03-20 15:45:15 +01:00
Daniel Borchmann afb06fca59
Free key binding for f12
I am not using it anymore, so let's make sure it stays that way and we can use
that key for something else in the future.
2021-03-20 15:41:31 +01:00
Daniel Borchmann eae1590e68
Add function to add link to currently clocked-in task
This might be handy while working on a task and realizing that it's related to
another one.
2021-03-20 12:34:39 +01:00
Daniel Borchmann 0946628681
Ignore local project cache 2021-03-20 11:52:05 +01:00
Daniel Borchmann fde876a972
Restrict listing of link targets to current buffer by default
This is much faster, and usually what we want.  If references outside the
current buffer are necessary, just prefix the call with a universal argument.
2021-03-20 11:50:56 +01:00
Daniel Borchmann 42d25198d9
Add link to current item when capturing simple TODO tasks
Sometimes, I need those, and it's easier to delete references than to add them.
Same with dates, where this behavior is already used.
2021-03-16 18:43:50 +01:00
Daniel Borchmann 8fc035cb01
Do not set defaults for python-mode
Keep the standards as they are and customize the variables when necessary.
Changing the defaults almost always causes trouble when running on other
machines.  For example, `python3` is the name of the Linux executable, but not
the Windows one.
2021-03-13 10:24:28 +01:00
Daniel Borchmann e971bfc915
Try out eglot for python mode
Inspired by [zamansky](

There were some problems with the builtin version of `project`, I had to delete
the `elpa-ess` Debian package, because it was pulling in the builtin version of
`project` before `package.el` could set up the proper paths.  I need to
investigate how to avoid this behavior in general.
2021-03-13 09:48:24 +01:00
Daniel Borchmann 1788ceb0f4
Resolve flycheck warnings in db-music 2021-02-24 14:14:08 +01:00
Daniel Borchmann b0df6465f8
Remove duplicate overwrite confirmation when updating playlist
We explicitly ask for confirmation already, no need to let EMMS ask again.
2021-02-24 14:03:17 +01:00
Daniel Borchmann f982f37d69
Use relative file names when updating playlist
This is the documented behavior, the previous usage of absolute file names was a
2021-02-24 13:58:43 +01:00
Daniel Borchmann 1df794ebf2
Omit null strings when updating playlists
Inserting a null string results in all files in the current buffer to be added
to that playlist.  Finding this bug was tricky!
2021-02-24 13:58:10 +01:00
Daniel Borchmann 015d218431
Fix wrong handling of EMMS' current playlist buffer during export
The macro `with-current-emms-playlist' does not set the current playlist to the
current buffer, but instead switches to it.  Yes, that's reasonable, but not
what I thought it does.  Since I need the reverse (make the current buffer to
temporarily be the current playlist), we simply bind `emms-playlist-buffer' to
the value returned by `current-buffer'.

While we are at it, also make info loading synchronous by binding
`emms-info-asynchronously' to nil.
2021-02-24 13:35:43 +01:00
Daniel Borchmann b148c41c98
Sort tracks in auto-generated playlists by title and author
For this, the playlist export of EMMS is used to enable sorting by track
metadata.  The current implementation is a first try and may contain some bugs
when track metadata is not readily available.
2021-02-24 13:10:08 +01:00
Daniel Borchmann c0986d240b
Fix Org Mode state trigger definition and extend trigger list
The generic definition for the "todo" state-change must have overwritten the
other, more specific definitions for the other TODO-type states.  Fixed this by
removing the generic definition.

Also added some more tag triggers as well.
2021-02-19 16:31:17 +01:00
Daniel Borchmann e1d66f5328
Disable auth-source-pass
I am not using it right now, and the entries in my local password store cause
permanent warnings.
2021-02-14 13:55:29 +01:00
Daniel Borchmann a01d9f768c
Do not save ad-hoc TRAMP proxies
This only unnecessarily clutters the use customizations.  If proxies are
important, configure them explicitly, which is easy; if they are not important,
they don't have to be saved.
2021-02-14 13:07:47 +01:00
Daniel Borchmann 532a2330af
Explicitly set TRAMP default method
Using sshx as default on non-Windows systems seems to be a more robust choice
than using ssh, because the latter might be prone to errors caused by my
user-specific shell configuration.  And while we are at it, using plink on
Windows is more reasonable than using ssh, at least in my working environment.
2021-02-14 12:58:50 +01:00
Daniel Borchmann 8039aad605
Update docstring for git-annex playlist generation function
It's not generating a playlist, but a list of absolute file names that are later
used to generate a playlist proper.
2021-02-06 18:18:35 +01:00
Daniel Borchmann c6af10f216
Bump date in copyright notice
Better late than never.
2021-01-30 09:33:07 +01:00
Daniel Borchmann 7bfd185514
Add missing require statement for cl-lib 2021-01-29 17:51:26 +01:00
Daniel Borchmann 9efb765b5a
Extend documentation for agenda effort summation functions 2021-01-29 17:38:24 +01:00
Daniel Borchmann 6ba5fdad61
Fix bug in agenda effort summation if nothing there to display 2021-01-29 17:36:21 +01:00
Daniel Borchmann 7582c2065e
Include timestamps in org agenda effort summation
Those correspond to fix appointments.
2021-01-29 17:21:04 +01:00
Daniel Borchmann 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
2021-01-29 17:11:55 +01:00
Daniel Borchmann ac31d0eb89
Do not sum up efforts in Org column view
Indeed, in my workflow, the effort estimate of an item is independent of the
effort estimates of all its subitems.  It thus does not makes to sum them up,
and indeed the "{:}" in the column view format causes the (independent) effort
estimate to be overwritten by the sum of the efforts of its subitems every time
column view is turned on.
2021-01-29 15:41:08 +01:00
Daniel Borchmann e2c0f4526c
Autoload some functions from org-download
This package is important to include screenshots in Org buffers, which in turn
might be important when working on Windows.
2021-01-24 14:48:34 +01:00
Daniel Borchmann b5dc549a4f
Explicitly use python3 as default Python interpreter 2021-01-23 14:49:37 +01:00
Daniel Borchmann 8397b92aa4
Update elpa packages 2021-01-17 12:49:07 +01:00
Daniel Borchmann 6dd6cf88ab
Fix a bug when checking signatures accidentally containing CRLF
From our previous attempts to get S/MIME working when using Outlook, the
function `mm-copy-to-buffer` had been adviced to change all LF to CRLF, to allow
`mm-copy-to-buffer` to find the beginning of the body.  However, when the body
itself is binary and accidentally contains an CRLF, that content is modified as
well.  This might break the content, as it happend with the signature of, which indeed contained an CRLF.

We are now a bit more non-invasive and replace the original version of
`mm-copy-to-buffer` with one that explicitly also searches for ^\r\n in addition
to just ^\n.  Let's see how good that will work.  Signature checking for is functioning again, and S/MIME still seems to be working.
2021-01-17 12:45:48 +01:00
Daniel Borchmann e4f02647a2
Refactor code to update magit's repository list to separate function
This allows easier updates of this list, without having resort to executing the
corresponding code manually.  In the future, we could even update that list
automatically by attaching the new function to some of projectile's hooks or
2021-01-17 09:15:01 +01:00
Daniel Borchmann 123c72664b
Ensure some essential packages are loaded if not present 2021-01-16 14:35:40 +01:00
Daniel Borchmann a49d7fc76d
Remove calls to some obsolete CL functions 2021-01-16 14:34:48 +01:00
Daniel Borchmann 8729f7e84c
Add password-store to auth-sources 2021-01-06 17:32:54 +01:00