Commit Graph

724 Commits

Author SHA1 Message Date
Daniel - eae1590e68
Add function to add link to currently clocked-in task
This might be handy while working on a task and realizing that it's related to
another one.
2021-03-20 12:34:39 +01:00
Daniel - 42d25198d9
Add link to current item when capturing simple TODO tasks
Sometimes, I need those, and it's easier to delete references than to add them.
Same with dates, where this behavior is already used.
2021-03-16 18:43:50 +01:00
Daniel - 8fc035cb01
Do not set defaults for python-mode
Keep the standards as they are and customize the variables when necessary.
Changing the defaults almost always causes trouble when running on other
machines.  For example, `python3` is the name of the Linux executable, but not
the Windows one.
2021-03-13 10:24:28 +01:00
Daniel - e971bfc915
Try out eglot for python mode
Inspired by [zamansky](https://cestlaz.github.io/post/using-emacs-74-eglot/).

There were some problems with the builtin version of `project`, I had to delete
the `elpa-ess` Debian package, because it was pulling in the builtin version of
`project` before `package.el` could set up the proper paths.  I need to
investigate how to avoid this behavior in general.
2021-03-13 09:48:24 +01:00
Daniel - c0986d240b
Fix Org Mode state trigger definition and extend trigger list
The generic definition for the "todo" state-change must have overwritten the
other, more specific definitions for the other TODO-type states.  Fixed this by
removing the generic definition.

Also added some more tag triggers as well.
2021-02-19 16:31:17 +01:00
Daniel - e1d66f5328
Disable auth-source-pass
I am not using it right now, and the entries in my local password store cause
permanent warnings.
2021-02-14 13:55:29 +01:00
Daniel - a01d9f768c
Do not save ad-hoc TRAMP proxies
This only unnecessarily clutters the use customizations.  If proxies are
important, configure them explicitly, which is easy; if they are not important,
they don't have to be saved.
2021-02-14 13:07:47 +01:00
Daniel - 532a2330af
Explicitly set TRAMP default method
Using sshx as default on non-Windows systems seems to be a more robust choice
than using ssh, because the latter might be prone to errors caused by my
user-specific shell configuration.  And while we are at it, using plink on
Windows is more reasonable than using ssh, at least in my working environment.
2021-02-14 12:58:50 +01:00
Daniel - 9cf17c973f
Show sum of daily efforts directly in the agenda
Now that column view does not show effort sums any longer, we need another means
to show daily efforts.  It turns out that this can be accomplished easily using
two simple functions and `org-agenda-finalize-hook`.

This is taken from
https://emacs.stackexchange.com/questions/21380/show-sum-of-efforts-for-a-day-in-org-agenda-day-title#21902.
2021-01-29 17:11:55 +01:00
Daniel - ac31d0eb89
Do not sum up efforts in Org column view
Indeed, in my workflow, the effort estimate of an item is independent of the
effort estimates of all its subitems.  It thus does not makes to sum them up,
and indeed the "{:}" in the column view format causes the (independent) effort
estimate to be overwritten by the sum of the efforts of its subitems every time
column view is turned on.
2021-01-29 15:41:08 +01:00
Daniel - e2c0f4526c
Autoload some functions from org-download
This package is important to include screenshots in Org buffers, which in turn
might be important when working on Windows.
2021-01-24 14:48:34 +01:00
Daniel - b5dc549a4f
Explicitly use python3 as default Python interpreter 2021-01-23 14:49:37 +01:00
Daniel - 6dd6cf88ab
Fix a bug when checking signatures accidentally containing CRLF
From our previous attempts to get S/MIME working when using Outlook, the
function `mm-copy-to-buffer` had been adviced to change all LF to CRLF, to allow
`mm-copy-to-buffer` to find the beginning of the body.  However, when the body
itself is binary and accidentally contains an CRLF, that content is modified as
well.  This might break the content, as it happend with the signature of
elpa.gnu.org, which indeed contained an CRLF.

We are now a bit more non-invasive and replace the original version of
`mm-copy-to-buffer` with one that explicitly also searches for ^\r\n in addition
to just ^\n.  Let's see how good that will work.  Signature checking for
elpa.gnu.org is functioning again, and S/MIME still seems to be working.
2021-01-17 12:45:48 +01:00
Daniel - e4f02647a2
Refactor code to update magit's repository list to separate function
This allows easier updates of this list, without having resort to executing the
corresponding code manually.  In the future, we could even update that list
automatically by attaching the new function to some of projectile's hooks or
something.
2021-01-17 09:15:01 +01:00
Daniel - 123c72664b
Ensure some essential packages are loaded if not present 2021-01-16 14:35:40 +01:00
Daniel - a49d7fc76d
Remove calls to some obsolete CL functions 2021-01-16 14:34:48 +01:00
Daniel - 8729f7e84c
Add password-store to auth-sources 2021-01-06 17:32:54 +01:00
Daniel - 0dbc839c45
Do not forward mails as RFC822 MIME by default
This seems to cause problems in representation (both in Thunderbird and Emacs
itself) and does not add much benefit.
2021-01-06 17:06:29 +01:00
Daniel - bac20f30c3
Disable candidate restriction in ivy
The main motivation is me often mistyping S-SPC for SPC, loosing my current
candidates and frustrating myself.  This is even more frustrating when inserting
text into non-selection inputs (org-capture), which is why we had disabled ivy
completion for org-capture previously.  Since we are no using
ivy--regex-ignore-order for candidate regex building anyway, input restriction
is not necessary anymore, and so we remove the shortcut altogether.
2021-01-02 16:36:44 +01:00
Daniel - 0e21e68aca
Fix typo in variable assignment
Oops!
2021-01-02 16:19:15 +01:00
Daniel - bc95317b2b
Include ivy-hydra
This might be helpful when working on completions.
2021-01-02 16:16:46 +01:00
Daniel - e7b50ed3d4
Provide more completion in Org roam buffers
This may be helpful.
2021-01-02 15:27:12 +01:00
Daniel - 0fe34a99bb
Fix call to obsolete function in magit initialization
magit has been update in the wake of dash's update, and the function called here
does not seem to exist any longer.
2021-01-01 17:31:36 +01:00
Daniel - b51153e587
Update dash 2021-01-01 17:31:32 +01:00
Daniel - 8d7302f38d
Revert "Do not enable company completion in Org Mode buffers by default"
This reverts commit 2622b048b6.

The main annoyance has been completion in org source blocks, and this has been
disabled now.  Additionally, `company-complete` only seems to work when
company-mode is enabled.  So let's enable it again and see how far we get.
2020-12-30 11:40:59 +01:00
Daniel - 2a02120a1d
Disable native handling of tabs in org source blocks
When company is active, this leads to completions offered as a first step in
shell blocks, for example, which is both unnecessary and triggers a bug in
ivy (the cursor is invisible afterwards).  Furthermore, this completion is
almost always unnecessary, as the snippets a usually either quite simple or
copied from elsewhere.  If completion is still required, editing the code block
within the native major mode (C-c ') should be sufficient.
2020-12-30 11:23:33 +01:00
Daniel - d9807d915c
Use ivy for region completion again
This was only annoying in eshell, but maybe I get used to this in the future.
It's helpful in almost all other buffers, though, so let's use it again.
2020-12-21 15:48:16 +01:00
Daniel - 41e79fa130
Use dired-open also on Windows
There, use the standard utilities supplied by Emacs to open files externally,
but otherwise rely on dired-open to find the right way to open them.
2020-12-20 18:03:14 +01:00
Daniel - 6d3dada560
Open HTML files in Emacs by default
Most of the time, I just want to see the text and edit it, and thus I open HTML
files in Emacs anyway (usually rendering them via `shr-render-buffer`).
2020-12-20 17:57:58 +01:00
Daniel - 29ab4d6335
Always create standalone documents from markdown files
It's confusing me that the output of pandoc is a document fragment by default,
so let's instruct Emacs to generated complete, standalone documents instead.
2020-12-20 17:29:14 +01:00
Daniel - 6e23836a1d
Always use pandoc for markdown export
Pandoc is the default for me.
2020-12-20 17:27:07 +01:00
Daniel - 5b7671ba7f
Always generate standalone docx documents from org files
Not yet clear whether this has any impact on the result, though.
2020-12-20 17:21:23 +01:00
Daniel - b40c8672bc
Add explicit autoload for gnus-registry-split-with-parent
Apparantly, when Gnus starts up for the first time, this function seems to be
undefined, because we are calling gnus-registry-initialize quite late in the
init process.  Let's try to fix this by having this autoload.
2020-12-20 09:00:38 +01:00
Daniel - 904f7e6902
Make sure mails are also encrypted to self
This should also be covered by gpg's configuration, but better safe than sorry.
2020-12-12 18:21:37 +01:00
Daniel - 56c9f940ce
Fix line-ending issues with MIME and Outlook
Outlook seems to expect CRLF in S/MIME signed+encrypted mails, so we add those
somewhere in the process of encoding the mail.  Furthermore, Outlook is sending
MIME messages with CRLF line endings, and we have to take care of that when
looking for the end headers.

The changes proposed here are preliminary and subject to further testing.
2020-12-12 18:05:57 +01:00
Daniel - 106d13519c
Do not enable helm-mode globally
Generation of candidates for Emacs Lisp completion is noticably slow, do not
know why, need to investigate further.
2020-12-08 19:54:15 +01:00
Daniel - d105b7765f
Do not use counsel for listing bookmarks
Bookmark are included in our main helm menu, no need to have a separate funtion
here.
2020-12-07 18:42:41 +01:00
Daniel - 459fdff428
Enable helm completion in region (and others)
Do not use it for eshell, though, as it adds a space after completing filenames.
2020-12-07 18:42:01 +01:00
Daniel - 31f3cc58d2
Remove temporary fix to support gpgsm S/MIME verification
Emacs apparanetly supports this now out of the box.
2020-12-06 09:16:57 +01:00
Daniel - 57515fff34
Restructure Gnus' MIME configuration
Let's group configuration related to MIME decoding and MIME encoding, to better
understand what these variables are actually doing and to decrease maintanence
complexity.
2020-12-06 09:15:37 +01:00
Daniel - 33394059ad
Dim backgrounds when ace-window selection is on
This way, it's easier to see when the selection mode is active.
2020-12-06 08:55:29 +01:00
Daniel - 421a272733
Do not ask for automatic password storage
This can be annoying when used with ivy/helm.  When the need to store passwords
in the auth sources arises, we'll do it manually.
2020-12-05 20:37:10 +01:00
Daniel - 8fba9cad3b
Add default notes file as standard refile target 2020-12-03 18:06:25 +01:00
Daniel - 81e193e1bc
Globally enable Gnus' scoring
Scoring didn't work in my IMAP mailing list folders, but not it should.  In all
other folders, as long as there is no scoring file, nothing should happen.
2020-12-03 18:03:48 +01:00
Daniel - 0ea56b203b
Do not show tabs in tab-bar-mode 2020-11-29 17:21:39 +01:00
Daniel - 94c1c76e4d
Add some minor default configuration for tab-bar 2020-11-28 09:29:44 +01:00
Daniel - ebf14b6643
Rebind global toggle hydra to not shadow tab-bar mode keys 2020-11-28 09:22:17 +01:00
Daniel - 6742695f53
Enable flycheck mode in Emacs Lisp only when buffer has a file
Flycheck used to be activated unconditionally, resulting in annoying warnings
when evaluating Lisp expressions in the minibuffer with `pp-eval-expression`,
and in the scratch buffer.
2020-11-28 08:50:47 +01:00
Daniel - 5ba0b27ec4
Warn if global key bindings for helm are not available
If helm is installed as system package, the global keybindings may be missing.
The user should be informed about this and reinstall helm from melpa.
2020-11-21 11:30:59 +01:00
Daniel - 822b8a7430
Do not load default configuration from elsewhere
This only leads to surprises.
2020-11-21 11:30:59 +01:00