Commit Graph

2400 Commits

Author SHA1 Message Date
3dbc9604d4
Mark bookmarks to EWW 2025-02-25 17:26:16 +01:00
fc58eb56f4
Resolve link generation conflict in bookmarked files
When a file has a bookmark, generating a link in that file (e.g. to the
line at point) results in a query from Org which link generating
function to use.  This is annoying and interferes with the usual flow.
To remedy this, we simply try not to be too smart and just generate
links to bookmarks when in the bookmark menu.
2025-02-25 17:24:19 +01:00
ff30cbdf58
Always clear ledger transactions as a whole
Found via [1].  Nice!

[1]: https://mbork.pl/2025-02-22_Inserting_Ledger_transactions_even_faster
2025-02-23 13:00:09 +01:00
396ec4fca5
Ignore inaccessible directories when searching for changed git repos 2025-02-23 09:59:15 +01:00
be280ba373
Ensure bookmarks are loaded when opening via Org link 2025-02-23 09:38:48 +01:00
73a8e3be4b
Do not depend on autoloading db-org.el for bookmark links
Let's keep db-org a collection of autoloadable functions and move the
actual configuration of Org bookmark links to init.el.
2025-02-22 20:54:31 +01:00
795fcde3b8
Use default mechanism to store URL bookmarks directly after creation
Nicer :)
2025-02-22 20:54:31 +01:00
35cc0080d5
Set bookmark type for URLs
Just for display, nothing else should change with this (yet).
2025-02-22 20:54:31 +01:00
e32a67d666
Fix performance issue with file comparison on Windows
`file-equal-p` makes creating links too slow with bookmark links
enabled (which is the case by default).
2025-02-22 20:54:26 +01:00
4ddb17f204
Allow to run git-repo-change-checker command under old script name
Old habits die hard …
2025-02-22 10:24:24 +01:00
31e448d838
Add Org links to bookmarks
This is to remove redundant references in both bookmarks and links in
Org files.

The code is based on the original implementation of `ol-bookmark.el` by
Tokuya Kameshima, as found in [org-contrib][1].

[1]: bd39cca48b/lisp/ol-bookmark.el
2025-02-21 17:39:14 +01:00
168cc78844
Let project.el consider submodules as separate projects
I keep a tree of Git repositories organized as submodules in my home
directories and want each of those repositories to be considered a
separated project.  The repositories that are indeed a proper part of a
superproject I can ignore.
2025-02-19 17:21:46 +01:00
2cbafcfbfc
Customize columns for listing magit repositories
Shrink fist column, because my repositories are usually not that long.
Version information is also less important than upstream divergence to
me, so let's move this behind.
2025-02-16 18:03:06 +01:00
003121ba0c
Add simple function to list changed git repositories
This is akin (in purpose) to `magit-list-repositories`, but also
descends into submodules.  It's not as nice as
`magit-list-repositories`, though … more of a draft version right now.

This replaces a shell script with similar purpose.
2025-02-16 17:51:00 +01:00
1fedb571a3
Do not show overdue deadline items in Waiting For list
They will show up on the main agenda view anyway.
2025-02-15 18:43:17 +01:00
1ba7f00753
Sort TOPICs before NOTEs in project agenda
TOPICs are usually more important than NOTEs.
2025-02-14 17:03:55 +01:00
0d001c7b39
Sort list of known projects before persisting
This is to avoid commit clutter when tracking `project-list-file` in Git.
2025-01-19 09:53:41 +01:00
3a6d2005cb
Fix some flycheck warnings 2025-01-17 19:37:27 +01:00
6b6db486a7
Merge branch 'org-item-to-headline' 2025-01-17 18:12:09 +01:00
6e31e4a707
Clean up draft of Org list item conversion function
The template is still fixed, should it be customizable?
2025-01-17 18:10:20 +01:00
2960652d66
Draft function to convert Org items to headlines
This usually happens when I try to convert loose entrie in my refile
file into proper headlines.

Usage of Org capture functionality is inspired by Sacha Chua [1].

[1]: https://sachachua.com/blog/2020/12/org-mode-create-a-quick-timestamped-note-and-capture-a-screenshot-by-prefilling-a-capture-template-via-emacs-lisp/
2025-01-17 17:54:06 +01:00
3789a2b0e9
Revert "Shorten scheduled and deadline leaders in Org agenda for space"
This reverts commit 823139669e.

Turns out I need space for the range count of dates ranging multpile
days.  Bummer.
2025-01-12 15:30:04 +01:00
823139669e
Shorten scheduled and deadline leaders in Org agenda for space 2025-01-12 15:26:32 +01:00
1e6e15669e
Remove some obsolete configuration
And clean up a bit.
2025-01-04 17:58:59 +01:00
f98b0e461f
Change default Org source block results handling back to output
This is what I usually use, so let's stick to it.
2025-01-04 15:40:55 +01:00
635054aa4a
Replace company by corfu
I haven't really used `company` in the recent past, so removing this
package does not hurt much.  Maybe `corfu` will be more practical for
me, as it also only relies on builtin in-buffer completion and does not
require additional magic.  However, I usually do not use popup
completion dialogs much, because I find them obstructive.
2025-01-03 17:28:46 +01:00
beceb909fc
Clean up SLIME configuration
SLIME somehow interfered with exporting Org lisp source blocks, leading
to some cleanup.
2024-12-31 15:41:36 +01:00
a1e372e31e
Use builtin project instead of external projectile from now on
`projectile` is nice, but I rarely use a fraction of its functionality
and not having to use an external package for project management feels
more robust.
2024-12-31 14:57:56 +01:00
70e85b9419
Show value output of Org source blocks by default
This is a sensible default for ELisp blocks, so let's use that.  Already
existing blocks that depend on the old default need to be updated, though.
2024-12-30 13:34:46 +01:00
f4ff678cd1
Diminish auto-revert-mode in mode-line 2024-12-30 10:57:24 +01:00
e89baa204e
Clean up Lisp programming configuration
`eldoc` is part of general programming configuration.
2024-12-30 10:57:09 +01:00
ffe7eaf727
Minor identation fix
Done automatically, not fighting it.
2024-12-30 10:39:46 +01:00
ae5657fcc9
Add small utility to zoom into dedicated window
Taken from prot, see comment.
2024-12-30 10:39:29 +01:00
d2ae0e1bf5
Show minor modes in mode-line again
Seeing active minor modes directly might be informative.  Try to reduce
the list of shown minor modes to only interesting ones using the (still
existing) diminish configuration.  Remove now obsolete configuration of
the minions package.
2024-12-30 10:34:16 +01:00
9f52c576b2
Move tab-bar history activation to main init function
This is where such global mode activations belong.
2024-12-25 16:01:06 +01:00
7deb6204be
Ensure this configuration is run using Emacs 29 or later
This allows to remove some old code.
2024-12-25 15:50:40 +01:00
353ce2960b
Provide autoload for lsp-mode
This allows activation before `lsp-mode` is loaded.
2024-12-25 13:21:28 +01:00
facd9ccc52
Remove misplaced plist deserialization for lsp-mode
Using plists for deserialization has to be enabled already while
compiling `lsp-mode`, so it was set too late and resulted in errors; see
[1].  Since I do not need plist deserialization, we can also make things
simple and just keep it disabled.

[1]: https://emacs-lsp.github.io/lsp-mode/page/performance/#use-plists-for-deserialization
2024-12-25 13:18:26 +01:00
ccb1e02cda
Do not automatically use company-mode for completion
`globel-company-mode` has not been used since quite some time, and
completion in the individual programming modes should be handeled by
LSP.  Disabling `company-mode` also allows to use standard completion
features, which is nice.
2024-12-25 11:46:21 +01:00
9e898e2100
Do not require lsp-mode to be installed anymore
eglot should do the trick for most of my needs, so no need to
force-install lsp-mode.
2024-12-21 20:53:52 +01:00
f646a2f98a
Default to eglot for Python programming
This is to ease the configuration, as eglot is built in.  lsp-mode might
provide a better programming experience, but I do not do much Python
programming nowadays.
2024-12-21 20:51:25 +01:00
2837712f5c
Completely redo agenda buffers when jumping to today
This allows stale buffers from previous days to be updated in one go.
2024-12-20 11:56:31 +01:00
60463a01e3
Do not print “Template” in checklist when no other items exist
I tend to remove “Template” anyway when it's the only block inserted as
checklist, so let's do this automatically.

This commit also includes a minor refactoring of moving around variable
declarations to be closer to the code that actually uses them.
2024-12-20 10:54:20 +01:00
3a397139f2
Do not clock into interrupted task when it's the default task
Clocking into the default task should only happend as last resort.
2024-12-14 10:32:02 +01:00
661c5f9b22
Add small utility to quickly update complex Org reports 2024-12-14 09:39:22 +01:00
bac4fb389a
Fix handling of last day in workload overview report
Previously, the last day added had been removed on the assumption that
it was the frist day after `end-date` (after which the while loop
aborts).  However, when this last day is filtered because of
`:skip-matches`, this would result in accidentally removing a valid day
from the overview time period.  This has been fixed by checking for this
very case, and keeping the last day added in case it is still within the
requested time period.
2024-12-04 16:23:05 +01:00
fd3b43bee0
Make markdown comment face more readable by removing strike-through
Use italics instead, this is good enough for me.
2024-11-30 17:37:17 +01:00
311d6e81b6
Explicitly set visibility when jumping to current clock in Org mode
This is another try to reduce the number of Org items that are unfolded
when jumping to the current clock.  This is particularly important with
periodic items with many subtasks, because unfolding all siblings might
be irritating (at least to me).
2024-11-30 15:26:07 +01:00
ff868b57b4
Do not use short answers for confirmations
Just learned about `use-short-answers` (from a comment [here][]).
However, when long answers are expected for confirmation, it's often an
indication that the question at hand might be serious enough to take the
time to type these out (as recommended by the docstring of
`use-short-answers`).

[here]: http://irreal.org/blog/?p=12595
2024-11-24 12:01:13 +01:00
8521d627b4
Add convenience function to retrieve auth-source entries
Again inspired by https://magnus.therning.org/2024-09-01-improving-how-i-handle-secrets-in-my-work-notes.html.
2024-11-16 17:17:19 +01:00