Commit Graph

573 Commits

Author SHA1 Message Date
Daniel - 1788ceb0f4
Resolve flycheck warnings in db-music 2021-02-24 14:14:08 +01:00
Daniel - 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 - f982f37d69
Use relative file names when updating playlist
This is the documented behavior, the previous usage of absolute file names was a
mistake.
2021-02-24 13:58:43 +01:00
Daniel - 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 - 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 - 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 - 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 - 7bfd185514
Add missing require statement for cl-lib 2021-01-29 17:51:26 +01:00
Daniel - 9efb765b5a
Extend documentation for agenda effort summation functions 2021-01-29 17:38:24 +01:00
Daniel - 6ba5fdad61
Fix bug in agenda effort summation if nothing there to display 2021-01-29 17:36:21 +01:00
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 - 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
something.
2021-01-17 09:15:01 +01:00
Daniel - a49d7fc76d
Remove calls to some obsolete CL functions 2021-01-16 14:34:48 +01:00
Daniel - 56c9f940ce
Fix line-ending issues with MIME and Outlook
Outlook seems to expect CRLF in S/MIME signed+encrypted mails, so we add those
somewhere in the process of encoding the mail.  Furthermore, Outlook is sending
MIME messages with CRLF line endings, and we have to take care of that when
looking for the end headers.

The changes proposed here are preliminary and subject to further testing.
2020-12-12 18:05:57 +01:00
Daniel - 6742695f53
Enable flycheck mode in Emacs Lisp only when buffer has a file
Flycheck used to be activated unconditionally, resulting in annoying warnings
when evaluating Lisp expressions in the minibuffer with `pp-eval-expression`,
and in the scratch buffer.
2020-11-28 08:50:47 +01:00
Daniel - 44c23b7a28
Do not partially fetch articles
This leads to errors when forgetting to fetch the complete article before
forwarding it.  Moreover, redisplaying the article sometimes leads to a
completely fetched article to be displayed only partially again, resulting in
repeated fetched.  Finally, the performance gain is not worth the effort in my
setup, so let's just disable it.
2020-11-06 20:20:36 +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 - a2ce6ebc59
Show current zoom level in corresponding hydra 2020-09-26 11:22:59 +02:00
Daniel - 57044376be
Do not treat dotfiles as projects 2020-09-20 16:40:48 +02:00
Daniel - 2c4cada1da
Also look into org-agenda-files when checking for missing bookmarks 2020-09-20 16:35:33 +02:00
Daniel - ce9a2f51eb
Add linting function for project management 2020-09-20 16:33:24 +02:00
Daniel - 66da74d63e
Fix typo 2020-09-20 16:22:29 +02:00
Daniel - 7a0fbff4c5
Do some cleanup in db-projects 2020-09-20 16:20:23 +02:00
Daniel - 9822736d8e
Move comment to right position 2020-09-20 16:09:40 +02:00
Daniel - 69c6a372eb
Add function to check for missing project bookmarks 2020-09-20 15:30:10 +02:00
Daniel - 9c0d630703
Remove all bookmarks when archiving a project
Not only the one to the project diary.
2020-09-20 15:13:26 +02:00
Daniel - 297bb6ac6e
Add short description of what db-projects is all about 2020-09-20 14:48:59 +02:00
Daniel - d9e74f6e54
Allow to list Org Mode files in projects not being searched by default 2020-09-20 14:48:18 +02:00
Daniel - 96d4f000ca
Add some autoload statements 2020-09-20 14:24:38 +02:00
Daniel - 4dead43c36
Check that newly created projects have not been archived before 2020-09-20 14:23:52 +02:00
Daniel - 644d463260
Update some docstrings in db-projects
As suggested by flycheck.
2020-09-20 14:12:50 +02:00
Daniel - 2a046610e9
Clean up projectile's cache explicitly when removing a project 2020-09-20 14:12:43 +02:00
Daniel - f662e5b990
Make projectile a hard dependency for personal project management 2020-09-20 14:10:46 +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 - a511e9e73a
Allow nil as shortcut character in frequently used features
This results in no entry being defined in the corresponding hydra.
2020-09-19 15:21:04 +02:00
Daniel - 0aa8140e22
Do not function-quote in db/frequently-used-features
Apparently, this does not match with the `function' requirement of the
customization type definition.
2020-09-19 14:05:31 +02:00