Commit Graph

2026 Commits

Author SHA1 Message Date
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
Daniel - cdb4721589
Allow access to Org link management via my usual Org keymap prefix
This is for consistency.
2024-01-06 12:19:18 +01:00
Daniel - dc841d4790
Allow to reset current text scaling directly
This is easier then adjusting the text scale manually until it reaches
zero.

The additional indentation fixes are bonus ;)
2024-01-04 08:28:14 +01:00
Daniel - 1f0f00ad2c
Record more notes when changing TODO keywords of Org items
I find myself often adding these notes manually after state changes, so
let's make Org do this for us.
2024-01-04 08:26:12 +01:00
Daniel - b7d190c513
Introduce separate hydra for Org jump commands
`hydra-org-clock` thus only hosts keybindings for clock-related
commands, while the new `hydra-org-jump` is for jumping to Org items in
various ways.  Feels cleaner to me this way.
2024-01-01 17:04:55 +01:00
Daniel - 3e09ee57dc
Use olivetti-mode to improve Org tree-slide presentations
This is motivated by a post by Daniel Liden (https://gitlab.com/dliden),
see https://www.danliden.com/posts/20231217-emacs-hooks.html (courtesy
of https://irreal.org/blog/?p=11849).
2023-12-31 12:54:55 +01:00
Daniel - d7ce497278
Add basic eglot configuration 2023-12-28 15:27:34 +01:00
Daniel - 3211acd21b
Extending lsp-mode configuration
Based on input from
https://andreyor.st/posts/2023-09-09-migrating-from-lsp-mode-to-eglot.
No configuration yet for eglot, though.
2023-12-27 21:45:41 +01:00
Daniel - 73de5e94ad
Show current number of matches in isearch
By courtesy of https://zck.org/improved-emacs-search, via [Irreal: A
Slight Isearch Improvement](https://irreal.org/blog/?p=11364).
2023-12-27 15:40:25 +01:00
Daniel - 30bd59c9da
Fix wrong keybinding definition for toggling the Org roam buffer 2023-12-23 21:35:50 +01:00
Daniel - 18e612b447
Show Org roam buffer in selected window before updating its content
This is to address the issue of malformed content in the Org roam
buffer, see https://github.com/org-roam/org-roam/issues/1586.  The
excellent description of @camdez in [there][1] is the basis for this
workaround.

[1]: https://github.com/org-roam/org-roam/issues/1586#issuecomment-1412250226
2023-12-23 21:17:48 +01:00
Daniel - 4eeb5527bc
Fix keybinding definitions for Org roam
Were defined in the wrong map, probably because this map was the correct
one in Org roam v1.
2023-12-23 18:24:31 +01:00
Daniel - 4fd8b655f9
Fix typo in comments 2023-12-23 15:31:01 +01:00
Daniel - 4bce1dec3e
Globally enable company-mode
This is an experimental setting to increase usage of completion
functionaly in my workflow.  It's not clear yet whether I will find this
disturbing, though.
2023-12-23 15:29:02 +01:00
Daniel - c0c5dfd080
Include unlinked references in Org roam buffer
This is an experimental setting to spot missing references easily.
Performance cost might be prohibitive, though.
2023-12-23 15:28:24 +01:00
Daniel - 4dfb36858a
Move Org roam db autosync activation to use-package definition
No need to conditionally enable it in main initialization function when
it can be done directly directly after loading `org-roam`.  This keeps
the configuration of the package local, i.e. syntactically together.
2023-12-23 15:27:06 +01:00
Daniel - 76c8717c24
Uniformly add single blank lines around captures Org items 2023-12-19 09:08:41 +01:00
Daniel - 5ebeeef3fd
Ensure point is on current clock when setting default task
Not sure whether this is the case otherwise.

Also add output when the default task is set, to see when it's set
accidentally.
2023-12-10 19:04:07 +01:00
Daniel - d1e3409e80
Only search for parent task for clock continuation when necessary
Avoid unnessary work by leveraging the fact that `setq` returns the new
value of the variable being set :D
2023-12-08 17:45:10 +01:00
Daniel - 498f4b78c4
Automatically clock into interrupted task only when not closed yet
This is to avoid jumping back to old task that are still pointed at by
`org-clock-interrupted-task` that have long been closed.  Let's see
whether this is enough to handle this case.
2023-12-08 17:43:59 +01:00
Daniel - 7128144ee0
Fix errors in some docstrings 2023-12-08 17:27:29 +01:00
Daniel - 482cebea68
Fix docstring for clock continuation function
Forgot to adapt this previously.
2023-12-06 16:40:56 +01:00
Daniel - 416ba934f9
Resume clock at interrupted task when available 2023-12-06 16:31:05 +01:00
Daniel - 479f9dbaf7
Remove obsolete configuration for synonyms package 2023-12-03 11:08:23 +01:00
Daniel - ed0286dc95
Include last modification time when adding custom-type bookmarks 2023-11-27 18:02:14 +01:00