Commit Graph

1005 Commits

Author SHA1 Message Date
Daniel - 939b1e882a
Fix package name in org-ql use-package declaration
Package pinning won't work otherwise.
2023-03-27 19:22:46 +02:00
Daniel - ad2fbe31f7
Remove obsolete fix for org-ql link matching
This has been fixed upstream, no need to keep it any longer.
2023-03-25 17:32:49 +01:00
Daniel - 90293c7735
Remove whitespace when inserting interrupted task in capture message
Not quite sure whether this is really necessary, but it won't hurt.
2023-03-25 11:09:04 +01:00
Daniel - a01bbe28e7
Fix wrong Org QL queries in constraint check agenda view 2023-03-11 10:02:32 +01:00
Daniel - 4e10c06799
Recognize Org bable header arguments when exporting
For this, `org-export-use-babel` has to be non-nil.  To still inhibit source
block evaluation on export (both for performance and for security reasons), set
`:eval` to `never-export` by default.
2023-03-01 20:35:15 +01:00
Daniel - 7fb9b84449
Do not refresh non-selected magit status buffers on Windows
This setting is experimental and a test whether performance on Windows can be
increased this way without causing too much confusion.
2023-02-19 12:44:46 +01:00
Daniel - b5f03ddf96
Distribute some variable settings to specific configuration sections
Two configuration changes have been made:

- Removed `require-final-newline`, which originally had been set to nil; this is
  not necessary (I think), because this is a buffer-local variable that is
  usually set by the respective major mode when necessary; the default value is
  nil anyway.

- Activate `minibuffer-depth-indicate-mode` by default, to signify the depth of
  recursive minibuffer edits when they happen.
2023-02-18 17:01:30 +01:00
Daniel - 92d43a6306
Move more packages from core configuration to more specific sections
Also generalize the “dired” section to a more general “file handling section”,
as it already contained the configuration of `trashed` anyway.
2023-02-18 15:35:01 +01:00
Daniel - 491bcf5b26
Continue minor restructuring of main init.el
Remove some more redundant or obsolete (or even wrong) package declarations.
Also move some package declarations from the core configuration to more
specialized sections; this is not completely done yet, however.
2023-02-18 13:16:15 +01:00
Daniel - 91866466c6
Remove some redundant package declarations for completion
And fix a typo in a comment – yes, this did not got it's own commit!
2023-02-18 12:52:40 +01:00
Daniel - d30669571c
Remove some unused key binding 2023-02-18 12:16:02 +01:00
Daniel - 25912eeb3d
Allow help to reuse the current buffer
When following links in the help buffer, inhibiting reuse of the current buffer
pops up a new one, but still updates the current buffer with the followed link.
The result is having two buffers with the same content, usually side by side.
2023-02-18 12:15:02 +01:00
Daniel - 0c2a30a8c2
Add additional information for detaul completion
Only the value for `completions-detailed` is non-default, the rest has only been
included for reference's sake.

Note that these configurations currently do not effect, as ivy and counsel do
not honor them.
2023-02-18 12:08:06 +01:00
Daniel - 6c17b944e2
Use full path completion for org-goto
This allows jumping to headlines in the current buffer much like using
imenu-based searches, but using native Org mode.
2023-02-14 16:17:48 +01:00
Daniel - 457a1d9be4
Open projects via project.el in dired by default
Inspired by https://www.n16f.net/blog/replacing-projectile-by-project/.
2023-02-14 11:56:01 +01:00
Daniel - 9d10f673f1
Mark projectile as basic external package 2023-02-14 11:53:49 +01:00
Daniel - 47d7e31800
Let display-buffer handle window placement for shells
This provides the same functionality, but makes it more configurable.
2023-02-13 13:22:51 +01:00
Daniel - 0ff7bba709
Explicitly make Help reuse windows whenever available
I think this is the default anyway, but let's make it clear.
2023-02-13 13:12:08 +01:00
Daniel - a3247158aa
Further cleanup of core configuration
Remove the separates “Fixes” section and inline its content to other
configuration sections.  Fuse “Core Configuration” and “Basic Builtin Packages”
sections as those had always been similar anyway.
2023-02-12 18:49:09 +01:00
Daniel - cc0d6456b6
Move Warnings buffer to side
This buffers keeps popping up when Emacs is compiling code in the background.
Maybe keeping it as a side buffer is less distracting?
2023-02-12 18:36:45 +01:00
Daniel - 05904e404e
Conduct minor cleanup of core configuration settings
I am not sure yet whether I want to move configuration for files.el into a
separate use-package declaration, but maybe it's cleaner this way and easier to
find via imenu?
2023-02-12 11:45:12 +01:00
Daniel - 65748689c6
Regroup some basic settings to use-package declarations
This also sets `switch-to-buffer-in-dedicated-window` to `pop`, sorry for the
mixup.
2023-02-11 20:29:43 +01:00
Daniel - daa7882732
Do not auto-fill in textile-mode
Text edited in this mode is usually meant for Redmine Wiki pages and the like,
and line-wrapping there is then done by the browser.  Manually inserted line
breaks only disrupt here.
2023-02-10 20:59:11 +01:00
Daniel - 24aaf17d0e
Obey display rules when switching buffers manually
Set as per recommendation from
https://www.masteringemacs.org/article/demystifying-emacs-window-manager.
2023-01-30 19:56:43 +01:00
Daniel - 8ba3d91880
Remove explicit value for :wrap header arg in default list
It does not seem to be possible to overwrite this setting in individual src
blocks.
2023-01-25 19:42:19 +01:00
Daniel - 624aa84a79
Explicitly set default Org babel header args
It's clearer that way.  Also wrap results in a text src block by default,
instead of in a src block of the same language as the executing block.
2023-01-23 18:26:54 +01:00
Daniel - 12e3d1fcd0
Load Org babel support for sql by default 2023-01-21 18:44:44 +01:00
Daniel - b34ca3263f
Fix accidental typo in package declaration 2023-01-21 11:14:45 +01:00
Daniel - 734beb154d
Sort and clean up general programming configuration
`counsel-projectile` is gone, have not used it (directly?) or a long time.
2023-01-21 11:12:44 +01:00
Daniel - c048d4dc29
Remove some redundant use-package declaration for magit-repos
This package is automatically loaded by magit.
2023-01-21 11:10:52 +01:00
Daniel - f762ed10de
Move some package configuration to builtin section 2023-01-21 11:06:22 +01:00
Daniel - db381a428c
Reorder configuration for basic builtin packages
This should help to keep this section clean and structured.
2023-01-21 10:55:27 +01:00
Daniel - 1d50213f49
Allow external renderes for unsupported image formats 2023-01-21 10:52:42 +01:00
Daniel - a3f8a95c4b
Disable automatic pining of unknown hosts
See https://www.n16f.net/blog/investigating-a-ffap-issue-in-emacs/ for more
information.
2023-01-21 10:52:23 +01:00
Daniel - e5577f8094
Fix `org-read-date` not recognizing hh:mm parts on startup
The problem seems to be the dynamically scoped variable `org-time-was-given`,
which is used by `org-read-date` to decided whether an hh:mm part is present.
The variable `org-time-was-given` is set by `org-read-date-analyze`, but only
when it's (globally) bound, which it is not on startup (since it's only declared
via `defvar`).  Manually setting the variable to nil binds the variable and
everything seems to work nicely.
2023-01-16 19:13:26 +01:00
Daniel - c1476df9e8
Ignore done tasks in "Tasks on hold" agenda view 2023-01-16 17:09:33 +01:00
Daniel - f3354790c2
Include also non-tasks in HOLD agenda view
use case: GOALs may just be tagged with :HOLD: but do not have to have the HOLD
keyword; in this case, they should also appear in this agenda view, since they
will not be shown in the stuck agenda view anymore (among others).
2023-01-15 14:07:44 +01:00
Daniel - 41ea9114b4
Deprecate sdvc in favor of the builtin dictionary lookup
dict.org now also includes Webster's 1913 dictionary as per
Irreal (https://irreal.org/blog/?p=10824).
2023-01-14 20:41:03 +01:00
Daniel - a557e7420d
Ignore HOLD items in SOMEWHEN list 2022-12-30 10:51:55 +01:00
Daniel - b5f88be7e8
Fix return value of our around advice for `org-store-link`
Turns out `org-store-link` actually returns something and other code (e.g.,
`org-capture`) depends on this.  Fix this, and on the way also recognize the
special case where `org-store-link` does not update `org-stored-links`.
2022-12-22 11:11:37 +01:00
Daniel - 8511ebb82a
Replace personal function redefinitions with around advices
This way the original function definition is left intact and can be found via
the help buffer.

The manual overwrite of `org-ql--link-regexp` has been left as it is, as it's a
`cl-defun` definition and I am not quite sure how turn this into an ELisp around
advice without breaking things.

The manual fix for `enriched-decode-display-prop` has also been left untouched,
maybe this should be an around advice as well?
2022-12-21 09:46:58 +01:00
Daniel - 1eee33ea5d
Replace some one-time advices with define-advice
From my point of view, this makes it clearer that the functions thus defined are
not meant to be used anywhere else.

Some one-time `advice-add` calls are still there, though, mostly because the
associated functions would be too long to inline them directly into their
present locations.
2022-12-20 14:21:48 +01:00
Daniel - a54ade74a4
Push links to Org items always to top of currently known links
When adding a link to an item via `org-store-link`, and the link is not known
yet, the links is always put at the beginning of the list of currently known
links, as stored in `org-stored-links`.  This allows to conveniently insert this
link via `org-insert-link` by just choosing the first element of the list, which
is selected by default.

However, when the link to the requested item is already present in
`org-stored-links`, the link is not pushed to the beginning of
`org-stored-links` by `org-store-link`, but kept where it is.  When calling
`org-insert-link` to insert a link to the item, manual selection of the correct
link is required, which is annoying and unnecessarily interrupting the current
workflow.  Even worse, when overlooking the notification that the link is
already stored, one will assume that the link to the requested item is at the
top of `org-stored-links` (which is isn't), subsequently inserting false links
when blindly calling `org-insert-link`.  (Yes, this has happend to me …)

This patch fixes this issue by ensuring that links to items (regardless whether
they have already been known or not) are always put at the front of the
`org-stored-links`.  This patch also removes the rarely used
`db/org-clear-stored-links` function, whose purpose was to provide some kind of
workaround, but turned out not to be convenient enough to actually be
used (because it also removed potentially useful links when clearing the cache).
2022-12-20 08:46:47 +01:00
Daniel - 46581c8867
Fix some indentation 2022-12-19 10:19:06 +01:00
Daniel - 260840aa0a
Move Org mode link abbreviations to :init block
This allows to overwrite the default value via customization.
2022-12-19 10:18:15 +01:00
Daniel - 817186dd0a
Update list of Org link abbreviations
Add the two famous git plattforms and stick to HTTPS exclusively.
2022-12-19 10:14:44 +01:00
Daniel - 11e51d7890
Add some Org link abbreviations for personal convenience 2022-12-19 10:09:04 +01:00
Daniel - f798d8f952
Remove duplicate definition for how to handle invisible edits in Org
Also change the default value to `show-and-error`, this seems the most
reasonable for my workflow.
2022-12-16 13:54:29 +01:00
Daniel - 461f212529
Simplify file pattern query for grep
The original version of `grep-read-files` includes file names in its default
values, giving an irritating completion candidate list when used with ivy.
Changed this to just let `completing-read` do the completion itself.
2022-12-15 16:29:36 +01:00
Daniel - 3428a5fe55
Add some consistency checks for custom agenda views 2022-12-10 11:34:19 +01:00