Commit-Graf

2050 Incheckningar

Upphovsman SHA1 Meddelande Datum
Daniel - 8ed64b7fb1
Remove more extra empty lines in Org capture templates 2024-04-14 11:00:30 +02:00
Daniel - f064bf9384
Remove seemingly extra blank line after captured interruptions 2024-04-13 15:34:56 +02:00
Daniel - 595ac9e696
Disable org-lint checker for obsolete percentage encoding
I do not mind having such links, and sometimes I have to put up with
them, so let's spare `org-lint` of the trouble reporting them.
2024-04-11 20:19:11 +02:00
Daniel - edb5d9119b
Experimentally include plain lists in Org's visibility cycling
It's nice to be able to collapse plain lists easily, as I have some
quite large ones.  The comment advises to be careful with certain
situations yields strange results, though, which is why this setting is
deemed experimental for the time being.
2024-04-11 19:01:04 +02:00
Daniel - 9edd604d26
Fix ill-worded comment 2024-04-11 18:58:59 +02:00
Daniel - 238c8ae0c8
Add extra spacing also to Org capture template for generic items
Missed that before.
2024-04-05 15:37:33 +02:00
Daniel - 5f33044458
Globally deactivate Org refile cache
This seems to be fast enough on Windows (and on Linux anyway) and avoids
cache invalidation problems.
2024-04-05 15:36:15 +02:00
Daniel - 1f348e256d
Disable refile verification when jumping to any Org item
Any item could be of interest, not only those that are valid refile
targets.

This might be slow.  May we should not be using the refile mechanism to
jump to any item?
2024-04-01 11:16:15 +02:00
Daniel - 840f10cab9
Display async shell command buffer again
I keep opening it manually for most of the commands, so why not have it
pop up automatically?
2024-03-30 15:46:21 +01:00
Daniel - 63eeefcb8e
Ignore backlink items tagged HOLD in default checklist
Items tagged with HOLD should be ignored in normal processes and should
thus not appear as backlinks.  Items tagged WAIT are supposed to appear,
though, and are not excluded from the list of relevant backlinks.
2024-03-25 17:48:50 +01:00
Daniel - c6bfd493db
Minor reformatting in music-control hydra
This way, the help page for the `music-control` hydra show a link to
`db/play-auto-playlist`, as for all the other key bindings.
2024-03-24 16:55:19 +01:00
Daniel - 019c8822a1
Ignore scheduled entries on Waiting-For list altogether
They are shown on the main agenda view.
2024-03-24 13:44:19 +01:00
Daniel - 60c8a57bf8
Use consult for region completion, when available
This seems to be a good default?
2024-03-23 09:54:18 +01:00
Daniel - 04a714fc8c
Optionally use consult for some completion tasks 2024-03-23 09:50:10 +01:00
Daniel - 53a0c1b56b
Filter buffer and bookmark list only via orderless completion
I don't expect basic completion here, only the matching style from ivy.
2024-03-17 09:13:10 +01:00
Daniel - 8876f04756
Harden shortcut to jump to any Org heading from anywhere
In the previous implementation, when in some buffer which is not an Org
buffer that accidentally contains lines that partially match the regular
expression describing an Org heading, errors could occur when the Org
refile cache was empty.  To address this issue, let's temporarily switch
to some Org buffer before generating the list of all Org heading
targets.
2024-03-16 17:08:00 +01:00
Daniel - 3099e642ce
Change ellipsis character for Org mode
The old character had some odd depth in my current font …
2024-03-13 17:45:10 +01:00
Daniel - 85338cc8f5
Use basic completion before orderless
Using orderless by default get's in the way of “usual” code completion
and shell completion, where prefix completion is the expected
behavior (for me).  So let's try to use basic completion first, and try
to rely on orderless completion to kick in as soon as spaces are
involved (which should not happen for shell and code completion).

The completion colors should also help to see whether we are still using
basic completion or orderless completion.  Let's try this for now.
2024-03-11 17:25:30 +01:00
Daniel - a4bae1d96e
Enable ivy region completion for ledger-mode
This is where I used it most often, and where I still want it to work
until a proper replacement is found.
2024-03-11 17:02:41 +01:00
Daniel - 4a14d2e37b
Add default keybinding for accessing recently used files
Since `counsel-switch-buffer` has been replaced by the plain
`switch-to-buffer`, recently used files are not shown there anymore, so
let's make `recentf` easier to access.

NB: `consult` also provides a function akin to `counsel-switch-buffer`,
so maybe this keybinding will not be that relevant anymore in the
future.
2024-03-11 16:14:00 +01:00
Daniel - 2ca13e12eb
Revert "Use ivy for completion in regions"
Using ivy for completing in regions somehow has problems in eshell, so
let's not do it.  The main use-case for using ivy in region completion
is for ledger, so maybe it can only be activated there?

This mostly reverts commit 615b285f74.
2024-03-11 16:10:24 +01:00
Daniel - ea345e4d91
Use LaTeX-mode when available
This is achieved by aliasing `latex-mode` to `LaTeX-mode`, requiring a
bit of refactoring of how `major-mode-remap-alist` is being used.
2024-03-10 21:07:10 +01:00
Daniel - 615b285f74
Use ivy for completion in regions
This is nicer than the default completion window … but maybe there's a
better approach than using ivy only for this?
2024-03-10 11:44:46 +01:00
Daniel - 256f378c76
Disable garbage collection during Emacs startup
Taken from https://protesilaos.com/emacs/dotemacs, nice idea :)
2024-03-10 11:14:48 +01:00
Daniel - b3a1689741
Simplify completion styles by with overrides for certain categories
The default completion style is now to use orderless by default, but
certain categories can benefit from additional completions (e.g., file
and partial-completion).

It's quite hard to determine the appropriate completion categories,
though.  Does Org have a dedicated one?
2024-03-10 08:55:25 +01:00
Daniel - ea0e94c312
Only keep orderless match faces that are readable with solarized 2024-03-09 20:19:41 +01:00
Daniel - 6b8b97fe8d
Prefer orderless completion style over others
The reason is that while filtering Org headlines, sometimes one of the
other completion styles matches, hiding other possible matches that
would have been found by the `orderless` style.  This can happen when
spaces are included in Org headlines (which is usually the case) and
those spaces match the search pattern.  In this case, the position of
point is also relevant, which is not something I want.

It would be better to know which completion category is use in this case
and override the completion style for this only, but so far I haven't
found it.  Continue looking …
2024-03-09 20:06:48 +01:00
Daniel - 42074f7d6a
Fix some docstring formatting 2024-03-09 16:30:08 +01:00
Daniel - dbd19d0da8
Extend candidate list for custom grep-files function with history
It might be useful to actually see the history entries, so let's
explicitly include them in the candiate list.
2024-03-09 16:18:51 +01:00
Daniel - 4124bc28d5
Provide default value for custom grep-files pattern query function 2024-03-09 16:16:03 +01:00
Daniel - 7d398a66c8
Replace counsel Org heading dispatch by org-refile
This is nice enough and removes the last dependency to counsel :)
2024-03-09 15:04:21 +01:00
Daniel - aadca01244
Simplify Org clocking hydra
No need to define an anonymous function her, just make the call
directly.
2024-03-09 15:03:10 +01:00
Daniel - 118b50c8da
Always show absolute time when annotating file selections
Via https://protesilaos.com/emacs/dotemacs#h:bd3f7a1d-a53d-4d3e-860e-25c5b35d8e7e.
2024-03-09 14:56:43 +01:00
Daniel - 7a2410642f
Remove redundant package declaration for helm-ring
This package is loaded in the main helm declaration, no need to mention
it separately.
2024-03-09 14:09:38 +01:00
Daniel - 8150725233
Use default completion functions for Info and Unicode lookup
Using vertico completion, they are quite nice! :)
2024-03-09 14:08:41 +01:00
Daniel - 3d0afd3f07
Experimentally replace default ivy completion with vertico
This may change back in the future.

The ivy configuration is kept on purpose, in particular because some
counsel functions are still in use.  Maybe those can be also be replaced
later on, maybe with helm functions?  Not quite sure whether this is a
good idea, though.
2024-03-09 13:46:36 +01:00
Daniel - f6c40ad619
Fix wrong candiate specification in custom grep-read-files function
Somehow mixed up the order, I suppose.
2024-03-09 13:45:49 +01:00
Daniel - a4325f30bf
Remove some obsolete counsel bindings 2024-03-08 17:26:25 +01:00
Daniel - 2bd2b5734a
Update dash 2024-03-06 21:12:01 +01:00
Daniel - bcccc55ad3
Remove some obsolete scripts 2024-03-06 20:25:46 +01:00
Daniel - a233d092de
Replace timestamp query in main agenda view with option setting
This is faster.
2024-03-06 19:01:31 +01:00
Daniel - 0e9ae4aa4d
Fix conditional loading of helm
It only makes sense to load helm when it's installed, isn't it?
2024-03-05 21:20:56 +01:00
Daniel - b6ecb4eb53
Declutter custom Org agenda views
This is mostly to speed up agenda generation, in particular the main
agenda view.  It turns out that filtering out SCHEDULED items is
expensive, but in tags views there is no variable to exclude scheduled
items – as for todo and tags-todo views.  Thus, SCHEDULED items must be
removed with a corresponding search pattern, which is slow.
2024-03-05 17:38:16 +01:00
Daniel - cd98c67e12
Add usual text surrounding backlink in TODO caputure template
I always add "Via " around the backlink, with some newlines.  Let's just
let Emacs do this for us :)
2024-02-18 10:37:06 +01:00
Daniel - b75e70241b
Add Org capture template for generic Org item
This can be used when creating generic NOP headlines, among others.
2024-01-27 17:34:19 +01:00
Daniel - 1cc7abd4d7
Clarify that remaining time is computed over clocked time of subtree 2024-01-22 19:52:27 +01:00
Daniel - 8aa29be427
Use strict whitespace matching in isearch
This is less confusing for me :)
2024-01-19 17:12:48 +01:00
Daniel - 5214d7ceee
Disable global completion again
It's mostly annoying.
2024-01-17 17:48:07 +01:00
Daniel - b954328b26
Simplify Org capture template for recording GOALs
I usually already have a first item for a GOAL recorded, so querying for
it via the capture template is unnecessary (and annoying).
2024-01-14 15:10:03 +01:00
Daniel - af05bd2106
Collect custom Org key bindings in a custom hydra 2024-01-07 17:12:27 +01:00