Commit Graph

1822 Commits

Author SHA1 Message Date
Daniel - 7d5c6624e6
Improve eshell git prompt check for ongoing merges
Checking for filenames is fragile if gitdir files are being used (as is common
for submodules).  Better try to resolve MERGE_HEAD via git.
2023-03-23 20:02:40 +01:00
Daniel - 6bac3973f9
Make eshell git prompt function more robust
When checking whether we are in a git repository or not, remove all symbolic
links in the current path before looking for a .git in the current path;
otherwise, symbolic links might mislead `locate-dominating-file` to find some
.git directory which is only reachable via symbolic links, which subsequently is
ignored by git (rightly so!) and thus yields errors.

Also, catch the case that the current git repository is not initialized yet by
checking the return value of `git rev-parse --abbrev-ref HEAD`.
2023-03-23 19:50:35 +01:00
Daniel - 13cbd90ec6
Improve checklist insertion
Do not reveal whole subtree, but only the body.  Also jump to first open
checklist item after checklist insertion.
2023-03-21 16:52:27 +01:00
Daniel - ba9edc5f12
Display remaining effort of items in workload reports
This is rather experimental, but seems to work fine so far.  The most
complicated part is to compute the overall clocked time of an item.

Any clocktime modifiers like “today” or “total” are currently ignored.
2023-03-19 20:56:15 +01:00
Daniel - 10ee65f55a
Automatically set property to avoid double checklist insertions 2023-03-19 13:21:18 +01:00
Daniel - efa55cb75d
Insert checklists at end of subtrees, before possible children 2023-03-19 13:14:01 +01:00
Daniel - a01bbe28e7
Fix wrong Org QL queries in constraint check agenda view 2023-03-11 10:02:32 +01:00
Daniel - 26d9dc0614
Make inserting whitespaces around checklist a bit more intelligent
Not quite sure yet whether this is really it, and maybe it would be better to
create some new utility functions to ensure enough blank lines before and after
point.  But let's try it out first and fix it later.
2023-03-11 09:47:42 +01:00
Daniel - ddbcfee3d9
Allow to jump to template checklist instead of inserting it
This is a convenience shortcut.  Maybe the code to insert the complete checklist
also needs to go into another function, for implementatio clarity.  Do this as
soon as it seems appropriate or necessary.
2023-03-05 16:35:23 +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 - c5f1e98bf8
Make storing note upon headline change more robust
Let's not wait until our code turns out to be broken, but fix it now.
2023-02-14 16:42:34 +01:00
Daniel - fb60b22c5e
Reference blog entry showing how to programmatically add Org notes
The current implementation of `db/org-update-headline-log-note` seems to be
fine, but if it turns out to be broken, we can try the approach of Sacha Chua.
2023-02-14 16:30:10 +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 - 9b8d3d6d44
Ignore duplicates when computing daily agenda effort 2023-02-12 13:49:43 +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 - aec896c939
Always display shell buffers at bottom of frame in dedicated window
Inspired by https://www.masteringemacs.org/article/demystifying-emacs-window-manager.
2023-02-11 19:33:19 +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 - 91be906e72
Add Eshell alias for viewing files like with less
See https://howardism.org/Technical/Emacs/eshell-why.html.
2023-01-21 10:49:56 +01:00
Daniel - 95920f8291
Extend default scope for `db/org-get-location` when in agenda files
When inside a file that is part of `org-agenda-file`, the default scope to
search for locations via `db/org-get-location` (used for example when
interactively inserting links) is extended to include all agenda files, and not
only the current buffer.  The idea behind this is to consider all agenda files
as one large data collection, and not only individual files.  This inhibits the
usual error, when trying to insert links at items located in refile.org, that
links are only displayed for items in refile.org itself – which are usually not
many – when instead links to items in the default org files where actually
requested.

This should not be an issue for performance, as searching through all agenda
files for valid locations is fast even on Windows.
2023-01-20 18:39:00 +01:00
Daniel - d9b0543409
Remove obsolete warning in workload overview report docstring 2023-01-16 19:21:49 +01:00
Daniel - d373976965
Fix off-by-one error in workload overview report end-date handling
Pushed one to much, so just removed it afterwards.
2023-01-16 19:20:44 +01:00
Daniel - 558bb0b1cc
Make timestamp format in workload overview report consistent
Brackets for both timestamps.
2023-01-16 19:16:04 +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 - bb7da2e08e
Change timestamp format in workload overview report to internal time
`org-read-date` seems to have bug that it does not consider the hh:mm part of an
input string sometimes.  Trying to work around this by using internal times
whenever possible, but it's not complete yet.
2023-01-16 19:09:04 +01:00