Commit Graph

1439 Commits

Author SHA1 Message Date
Daniel - e5c7494622
Fix wrong definition of org capture template for interruptions 2021-05-17 21:49:01 +02:00
Daniel - a269047a0d
Fix Org capture templates for Read and Response
The Read capture template did not properly ask for the topic and did not have a
placement indicator for the cursor, fixed that.  The Response capture template
now has a “Reply ” action word to indicate the proper action, and also has a
placement indicator in it.  This way, it should be easier to use these capture
templates.
2021-05-16 08:35:04 +02:00
Daniel - 6c4daa1cf5
Move reading list to main overview
As with the next action list, it's better to keep the reading list in sight so
that when I decide what to do next, it's there and showing me all the
possibilities.
2021-05-16 08:17:53 +02:00
Daniel - 299ab9d147
Sort next actions by category in addition to priority
At work, I am using the category to record the cost centers of the corresponding
actions.  Maybe sorting the next action list gives a better understanding of the
overall set of actions by clustering them by category?
2021-05-14 19:24:24 +02:00
Daniel - fb245e6358
Display next action list in main agenda view
I somehow have the feeling that my next action list is not “present” enough and
so I am afraid to miss things.  As an experiments, let's try to display the next
action list in the main agenda view to always have it in sight.
2021-05-14 19:24:20 +02:00
Daniel - 0899a9079e
Clean up all links in headline when linking to it
So far, we only considered one link in a headline and replaced it with its
description when linking to it.  When there are multiple links, this will fail.
This commit changes this by iterating over all links in the headline, not only
the first one.
2021-05-12 18:29:34 +02:00
Daniel - 7960f763f4
Keep headline around links when linking to them
So far, when a link is discovered in a headline, we only keep the description of
that link.  This will throw away the context of that link, which is
undesirable.  So let's keep it.
2021-05-12 18:20:18 +02:00
Daniel - 268ddeb1aa
Avoid complete links in descriptions when adding links to Org items
When inserting links to other Org items or to the currently clocked-in item, the
complete target headline is used as a description in the newly inserted link.
When that target headline is itself a link, the newly inserted link will contain
the complete link as a description, rendering it unreadable and also
malformed (it's not allowed to have two consequtive brackets in the description
of a link).  To remedy this, we now explicitly check the target headline for
being a link, and if so, only use the description of it as the description in
the newly inserted link.
2021-05-12 17:47:45 +02:00
Daniel - d6d2d4787d
Do not immediately finish capture when responding to mails
In that case, I sometimes want to add extra information, like scheduling a
date or adding extra references.  This is not easily possible when the capture
is closed immediately.
2021-05-12 17:03:12 +02:00
Daniel - a9ffee27f4
Bind scroll-lock-mode to Scroll-Lock-Mode key
Inspired by https://karl-voit.at/2021/04/10/GLT21-emacs-org-features/.  Thanks!
2021-05-01 20:27:34 +02:00
Daniel - a6a85cdb8b
Use only file name in Org mode refile targets instead of buffer name
Using the buffer name does not seem to play well together with org refile
keeping the last choice on top of the candidate list, because a slash is
automatically appended to this entry.  This results in an invalid refile
location.  Thus reverting back to only using the file name, it's fine this way.
2021-05-01 20:25:19 +02:00
Daniel - 453c6e37bf
Add missing parenthesis
This happens if one does not restart Emacs that often …
2021-04-30 15:39:12 +02:00
Daniel - a0b1f4df0d
Do not use `org-store-link` when inserting links to other items
When the link to another item is already present in the history of
`org-store-link`, nothing is updated.  Inserting the topmost link then results
in a wrong link being inserted.

Not using `org-store-link` at all fixes this problem and also leaves the history
of `org-store-link` untouched.  It also simplifies the implementation by not
relying on the complexity of `org-store-link`, but instead just only using
`org-entry-get` and `org-id-get-create`.
2021-04-29 19:52:54 +02:00
Daniel - 3bbf747aca
Do not include SOMEWHEN items in reading list
Those will be done somewhen, if at all, and are not necessarily associated with
any action.  So let's keep them off the reading list consisting of read actions.
2021-04-26 18:20:27 +02:00
Daniel - c0351f39b9
Extend agenda view for current projects
This view will now show stuck projects as well as periodic projects in addition
to the usual singleton projects.
2021-04-25 20:37:17 +02:00
Daniel - 323a59b622
Separate Next Action list from Reading list
This is a bit more overseeable.
2021-04-25 19:25:32 +02:00
Daniel - f21ae7576a
Do not include READ actions on the SOMEWHEN list
They are included in the main Next Action list now.
2021-04-25 18:30:36 +02:00
Daniel - 41bfbf9288
Experimentally include the READ list in the Next Action list
Usually, this list will be filtered away, but knowing it's there should help not
fogetting about it.
2021-04-25 16:49:13 +02:00
Daniel - bc07a89989
Include effort estimates in tags and todo lists
This is to see and also to filter those lists by effort.
2021-04-25 16:49:06 +02:00
Daniel - 293e137431
Do not schedule captured tasks by default
If this is necessary at all, if will be done during the clarification process.
2021-04-25 14:14:50 +02:00
Daniel - 9406291f5b
Remove list of stuck projects from Unsupervised agenda view
This list does not need to be inspected on a daily, but on a weekly basis.  It
can be accessed via the standard org-agenda command menu.
2021-04-25 12:08:17 +02:00
Daniel - 97b9141b31
Ignore Waiting-For actions on Next Action list
Obvious, but had missed that.
2021-04-25 11:17:25 +02:00
Daniel - 524c36a014
Add list for missed appointments
When a DATE action is missed, it will not show up in the agenda anymore.  So
let's track them individually.
2021-04-25 10:32:30 +02:00
Daniel - 7cc1c19c22
Clearly mark waiting-for and next-actions lists as such
The next actions list now also contains that have a deadline, but are not being
scheduled.  This is more in accordance with the GTD method, as items with a far
deadline can still be done today, and for this they have to appear in that list.
2021-04-25 10:27:53 +02:00
Daniel - ef7682b276
Allow projects to be marked as SOMEWHEN
This way, projects do not appear on the Unspecified agenda and are not subject
to rigorous Next-Action handling.
2021-04-24 20:41:44 +02:00
Daniel - 2e8d912c14
Update pyvenv command autoload list to include pyvenv-create
This might be used before loading pyvenv, so let's include it in the autoload
list.

However, it seems pyvenv is loading its autoloads anyway, so this change might
be irrelevant.  It's still nice to have it here for documentation.
2021-04-24 09:59:50 +02:00
Daniel - 277c360914
Allow WORKON_HOME environment variable to be overwritten
When running this Emacs configuration on different hosts (with different
operating systems …), virtual environments for Python may be available in
different locations.  So we allow the environment in which Emacs is started in
to overwrite the value of WORKON_HOME to accomodate for this.
2021-04-24 09:49:55 +02:00
Daniel - 36a1693610
Automatically restart python interpreters when switching virtualenvs
This apparantely does not work when simply deactivating the current virtual
environment, though.
2021-04-24 09:48:51 +02:00
Daniel - 32cb502915
Set WORKON_HOME environment variable for pyvenv usability
Again inspired by https://ddavis.io/posts/emacs-python-lsp/.
2021-04-24 09:40:11 +02:00
Daniel - 0d2897dff7
Try out lsp-ui-mode
This is fun :)
2021-04-22 15:51:45 +02:00
Daniel - eac4ff3146
Include some minimal package configuration for pyvenv
As described by https://ddavis.io/posts/emacs-python-lsp/.
2021-04-22 15:29:56 +02:00
Daniel - 02085570e6
Change key map prefix for LSP-mode
The super key is used by my window manager.
2021-04-22 15:29:32 +02:00
Daniel - 59fb5f3855
Increase some performance limits for lsp-mode
As suggested by https://emacs-lsp.github.io/lsp-mode/page/performance/.
2021-04-22 15:26:26 +02:00
Daniel - 9ac3640159
Replace eglot with lsp-mode as LSP backend
`lsp-mode` claims to be non-blocking and is equally easy to set up, so let's
give it a try.
2021-04-22 12:01:44 +02:00
Daniel - 0090975a5b
Use buffer-name in outline paths when refiling
Buffers are made globally unique, while filename usually are not, like my
various project diaries.  This new setting allows to distinguish targets in
equally named org mode files directly when refiling (and thus also when
inserting links).
2021-04-16 17:42:08 +02:00
Daniel - 56b1de2844
Remove duplication of refile target specification for current buffer 2021-04-16 17:34:40 +02:00
Daniel - 77f2dfc0eb
Fix missing specification of default buffer when inserting links
The `default-buffer` is apparently not optional when the current buffer is not
associated with a file.  If `default-buffer` is missing and the current buffer
is not a file-buffer, e.g., a note buffer, then `org-refile-get-targets` fails.
2021-04-16 17:31:55 +02:00
Daniel - cf86962d6f
Update dash 2021-04-16 15:19:22 +02:00
Daniel - 0a317afc29
Default to builtin region completion for shell mode
As for eshell, path completion in shell mode erroneously adds extra spaces when
using ivy.  Since the builtin completion is good enough for shell mode anyway,
let's stick to that.  No bad surprises.
2021-04-16 15:18:03 +02:00
Daniel - fa2dfed55c
Allow completion cycling up to at most 10 candidates
The limit is arbitrary, but should practically be good enough.
2021-04-16 15:17:25 +02:00
Daniel - 9a1dbf89f4
Never insert terminating space when completing in eshell
eshell is using pcomplete as completion meta-framework, which by default will
insert the value of `pcomplete-termination-string` to each finished completion.
However, when using newer versions of `ivy` for path completion, each completed
directory within a path is considered a finished match, and pcomplete will
insert a blank.  This is annoying, and since we do not require the final blank
otherwise, we can equally just disable it.
2021-04-16 14:25:58 +02:00
Daniel - 5348856628
Only convert LF to CRLF when encrypting with S/MIME
When only signing with S/MIME, `message-encode-message-body` complained about
not being able to find \n\n.  However, we only need the conversion when
encrypting with S/MIME, and apparently the LF → CRLF conversion hack is working
in that case.

However, I think there should be some way to fix this properly within Gnus,
maybe via some configuration … I think I have to write to the Gnus Usenet group
for this.
2021-04-05 15:11:44 +02:00
Daniel - b0a3808973
Fix comment on LF → CRLF conversion after signing with S/MIME
Replaced "before" with "after", because we are converting after signing.  Ah
well.
2021-04-05 13:55:21 +02:00
Daniel - 318f7c8f44
Fix reference to wrong buffer when creating links to other items
When finding the location of an Org mode item to link to,
`org-refile-get-location` may return a point even if the target buffer is not
the default buffer.  Resolving point in the default buffer thus yields a false
marker and the inserted link is wrong.  To remedy this, also consider the file
name returned by `org-refile-get-location` to resolve point in the file buffer
for that file.
2021-04-01 17:02:01 +02:00
Daniel - 8f4fa01304
Remove redundant save of point and mark
`org-with-point-at` will do this already (at least for point).
2021-04-01 16:51:46 +02:00
Daniel - 1916eb6736
Move point when inserting link to other Org mode item
This is the natural flow, as usually one continues writing after the link, not
before it.
2021-04-01 16:51:03 +02:00
Daniel - 6a590da9cb
Disable automatic document highlighting in eglot
This causes lagging while highlighting symbols, and the highlighting itself does
not add much value.  Disabling it thus does not hurt and gets rid of the
lagging.
2021-03-31 21:27:20 +02:00
Daniel - e2bd3880f1
Directly set variable to always create ID properties for links
This is mostly because I haven't had time to understand what the `:custom`
keyword is actually doing.  Apparently, it introduces customizations without
user interaction, which in turn makes changing default values a manual
process (by changing customizations one has never done) thus resulting in
inconsistent behavior.
2021-03-28 20:01:29 +02:00
Daniel - 185f1d75f3
Reduce configuration done in `early-init.el`
As per the documentation (see "(elisp)Startup Summary"), only variable
customization that affect package initialization should go into the early init
file.  Defining package archives is explicitly mentioned as something that still
may go into the main init file.  So we move it there and adjust comments
accordingly.
2021-03-28 19:55:59 +02:00
Daniel - 4d0264b34b
Always create ID properties when creating links
This avoids headline-references (as opposed to referencing IDs) when implicitly
creating links in new items through `org-capture` when already in `org-capture`.
In that case, the %a template specifier will call `org-store-link`
non-interactively (as it seems) and the old setting of
`org-id-link-to-org-use-id` created links based to the headline of the target
instead of creating a new ID property.

Note that this will also always ignore CUSTOM_ID properties, but I haven't used
it anyway.
2021-03-28 17:38:18 +02:00