Commit Graph

534 Commits

Author SHA1 Message Date
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
Daniel - a576ef123d
Automatically update hydra for shortcuts after customization 2020-09-19 14:02:50 +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 - 5961491f77
Replace custom imenu support use-package with builtin one
Reference: https://protesilaos.com/dotemacs/#h:cfa129a4-3394-4911-9097-4544df4e6ed9
2020-09-11 16:47:28 +02:00
Daniel - c9e84a7e28
Offer simple completion when creating external bookmarks
In dired, offer all marked files, or the currently selected file if there are
none.  Otherwise, just use the list of recently opened files as completing.

This is meant as a very simple replacement for dired+'s dired bookmarks.
2020-09-07 18:10:44 +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 - 77ca64de3b
Add shortcuts for main Org Mode files
Usually, only one of them is used.  Maybe one day I have to replace the two
files (or, more precisely, the custom variables pointing to them) by a single
one.  But then, having two files, and also two shortcuts, also remindes me of
whether I am at home or at work, and that's quite significant, isn't it?
2020-08-27 12:07:18 +02:00
Daniel - 88e0a5021d
Add custom function for keyboard-quit
This version should also quit the minibuffer even if not selected.  Found at
https://with-emacs.com/posts/tips/quit-current-context/.
2020-08-26 10:30:25 +02:00
Daniel - 845d5d137c
Add function to generate playlists from git-annex metadata
This had been done manually from the shell until now.
2020-08-15 15:02:06 +02:00
Daniel - 772ee43c2c
Add custom function to play radio stations 2020-08-12 21:57:48 +02:00
Daniel - bc3e2e875f
Remove duplicate entries when setting Gnus' select methods 2020-08-01 10:11:47 +02:00
Daniel - 5707c9233e
Remember to fix setting `gnus-secondary-select-methods'
If `db/mail-accounts' specifies accounts multiple times, or a definition for
some of these accounts is already present in `db/other-gnus-accounts', accounts
will be added multiple times with the current implementation.  Apparently, Gnus
does not seem to care, but it would be better to have this fixed properly.
2020-07-31 18:09:21 +02:00
Daniel - a69d837171
Make automatic IMAP accounts fetch articles partially by default 2020-07-31 18:08:04 +02:00
Daniel - e38ae56584
Rework logic of `db/run-or-hide-shell'
It's a bit clearer now what the function is doing when ARG is given, I hope.  It
also turns out that switching to the current working directory does not make
much sense when we are in the shell buffer, because CWD is then just the, well,
current directory.  The original logic used to CWD of the previous buffer (by
closing the shell buffer and immediately reopening it), but that's actually not
what the function is supposed to be doing, is it?
2020-07-31 16:18:35 +02:00
Daniel - 25abde2d9c
Rewrite `db/run-or-hide-shell' to mimic EShell counterpart 2020-07-31 15:58:37 +02:00
Daniel - 6cca84cdb5
Add standard shortcut for `org-clock-goto'
That even works with C-u, wohoo!
2020-07-26 10:23:06 +02:00
Daniel - b49018129b
Remove trailing whitespace when copying templates for periodic tasks 2020-07-18 19:13:04 +02:00
Daniel - ac815a06f1
Close window when hiding current shell
For eshell we do the same.
2020-07-12 13:00:28 +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 - edf9afa68f
Readd hydra for shortcuts
Turns out I am using those shortcuts indeed, but forget about it ;)
2020-07-01 21:28:55 +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 - 72768b659f
Print result of `db/ntp-to-time' when called interactively
Otherwise no result is displayed.
2020-06-27 12:27:42 +02:00
Daniel - 5b6dcfe8d2
When switching themes, only do so temporarily
If changes need to be done permanently, customize `custom-enabled-themes'.
2020-06-27 11:16:49 +02:00
Daniel - 2e229c5af9
Explicitly define setter functions for timeline tooling
This is more explicitly and allows for more flexiblity.  Let's hope the
performance impact is not prohibitive, though.
2020-06-27 10:38:13 +02:00
Daniel - dd27018420
Rename main music hydra and move it to `db-music'
The `db-music' package is supposed to be an abstract interface to music
functionality, and should thus define the main hydra for this.  Moreover, the
hydra should not contain „emms“ in it's name, although it's using only EMMS
functions.

It's not clear whether EMMS will every be replaced by some other backend, but
it's nicer to have a (more or less) clear separation between user frontend and
implementation backend.
2020-06-27 10:16:53 +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 - 6183e008d7
Remove unused `hydra-shortcuts'
The idea of having a hydra to access frequently used features is certainly nice,
but quite hard to achive when one wants to redefine the hydra every time
`db/frequently-used-features' changes.  Regrettably, there are not „ephemeral
hydras“ that are created every time one would like to access it.  Therefore, the
shortcuts hydra is removed for now, but may come back again when we have found a
better way to handle its dynamic nature.
2020-06-27 10:08:39 +02:00
Daniel - c96083c871
Declare `w32-shell-execute' to silence byte-compiler 2020-06-27 09:42:16 +02:00
Daniel - f1932e7032
Fix precision error in `db/ntp-to-time'
A curcial step in the conversion, namly the computation of the actual time from
the seconds since the epoch, had been conducted with too little precision.  Now
the precision is fixed to a high value throughout the whole computation, and the
tests succeed again.
2020-06-27 09:35:31 +02:00
Daniel - b5ed51d8e8
Silence most byte-compiler warnings in `db-utils' 2020-06-27 09:03:23 +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 - 5009eb39f9
Move eshell popup function to `db-eshell'
That's where it belongs.
2020-06-26 23:08:00 +02:00
Daniel - 32b424de24
Add missing require for `timeline-tools' 2020-06-26 23:02:09 +02:00
Daniel - 501060c05a
Silence byte-compiler in `db-eshell' 2020-06-26 22:59:46 +02:00
Daniel - 60808bee7d
Fix requirements for `db-emms' 2020-06-26 22:50:01 +02:00
Daniel - f163e925b8
Silence byte-compiler in custom mail handling code 2020-06-26 22:49:44 +02:00