Commit Graph

754 Commits

Author SHA1 Message Date
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
Daniel - 79b11b864e
Ensure packages for general appearance are installed 2020-11-21 11:05:49 +01:00
Daniel - 243fb9179f
Ensure flycheck is available when needed 2020-11-21 11:01:11 +01:00
Daniel - 26ae993c1b
Set default file name for abbreviations
Even if not customized, abbreviations should go into the private directory.
2020-11-21 10:59:23 +01:00
Daniel - 4555e0f789
Remove delay when sending freshly completed input in eshell
See comment in code for more explanation.
2020-11-19 19:43:28 +01:00
Daniel - b39894e6a6
Reorder helm-emms default sources
I mostly use helm-emms to access streams, and thus I would like to have them on
the top.
2020-11-17 09:14:34 +01:00
Daniel - 4d6aaf5711
Resolve some flycheck hints
Random selection.
2020-11-14 21:06:22 +01:00
Daniel - fe5c7c2bd2
Use xref for dumb-jump
This seems to be the recommended way to run dumb-jump now.
2020-11-14 18:51:49 +01:00
Daniel - 330a52a40f
Enable flycheck for Emacs Lisp by default
It used to be slow, but it's not the case anymore.  This should help identifying
problems in my ELisp code, but might cause some trouble on Windows.  Let's see …
2020-11-14 18:41:29 +01:00
Daniel - 3f10d6e415
Use locally installed version of `helm-emms'
That is, install `helm-emms' directly from the buffer.
2020-11-14 18:08:57 +01:00
Daniel - 78edfa6c75
Let flycheck use the current load-path as load path 2020-11-14 18:08:45 +01:00
Daniel - fca3c03107
Use local version of `helm-emms'
This one works with emms 6.0 and later, even when including
`helm-source-emms-streams'.  Thus, we also use the default value of
`helm-emms-default-sources' again.
2020-11-14 17:36:36 +01:00
Daniel - a1b4d294c5
Restore default key binding for `helm-emms' 2020-11-14 17:36:20 +01:00
Daniel - 12dbc5a465
Revert "Remove `helm-emms'"
Let's try to revive `helm-emms'!

This reverts commit abc06188b7.
2020-11-14 17:09:00 +01:00
Daniel - 1e5fb1ac97
Expand history items in eshell by default
When did it this change?
2020-11-14 15:17:56 +01:00
Daniel - 4a1506fc4c
Explicitly specify org roam db location
Seems to have changed with the latest update, making it explicit avoids issues.
2020-11-14 15:17:28 +01:00
Daniel - bfa7672cfc
Add shortcut to find variable location
For consistency.
2020-11-14 15:17:14 +01:00
Daniel - 18b90d758e
Do not use ivy for completion in regions
This makes eshell completion use drop down menues instead of the standard
complete-until-ambiguous style I am used to.  Moreover, in Org Babel shell
source blocks, ivy completion in region causes a drop down menu of possible
commands to appear after a block has been created and entered for the first
time, which not only is annoying, but also sometimes causes to cursor to
disappear (set `cursor-type' to 'bar to revert).
2020-11-14 11:50:31 +01:00
Daniel - 2622b048b6
Do not enable company completion in Org Mode buffers by default
It's rather annoying, from my point of view.  The original use case was to
complete file names in links, and this can be done by calling `company-complete'
explicitly.
2020-11-14 11:39:31 +01:00
Daniel - 0f4262044a
Remove obsolete configuration for dired+ 2020-11-14 11:32:29 +01:00
Daniel - a7fea93b81
Allow automatic display of HTML email messages
They are getting more and more common, and their text counterparts are often
unreadable.  Pity.
2020-11-07 13:18:57 +01:00
Daniel - 1aaa7a003a
Allow signing mails with sender IDs
Before Emacs 27.1, setting those variables wasn't necessary, but apparently it
is now.
2020-11-07 12:10:20 +01:00
Daniel - 5924bb32e3
Set default value for eshell history size
The builtin default of 128 is too low, resulting in recently used commands to be
forgotten quickly, so let's use a more conservative (in the literal sense of the
word) value.  Customization still takes precendence over this new default,
though.
2020-11-07 09:01:17 +01:00
Daniel - ea9afe72d7
Delay initialization of Gnus' registry
Apparently, with the advent of Emacs 27.1, Gnus clears up everything before
startup.  Sadly, this also removes any initialized registry, such that we are
left with an uninitialized registry on startup.  To remedy this, let's postpone
the registry setup right after Gnus has started.
2020-11-06 21:25:18 +01:00
Daniel - 75ce3481b1
Remove obsolete ldap package configuration 2020-10-31 14:57:31 +01:00
Daniel - 6fe33daf17
Allow for fine-grained effort estimation for tasks
There are often small tasks that do not require the former minimum of
15 minutes, resulting in effort estimations that are too high.  Conversely,
larger tasks are often hard to estimate correctly, which is why the higher
numbers are now further apart.
2020-10-03 10:35:23 +02:00
Daniel - 1d89551f1b
Add missing autoload specification 2020-10-02 19:52:57 +02:00
Daniel - 9994a3ac82
Update key bindings for handling Org Mode links
F9 is a comparably prominent key binding, and we now bind it to the more
important `db/org-add-link-to-other-item'.  The formar binding to
`db/org-find-links-to-current-item' is bound to F11 now, since it will still be
used often, but not more often then inserting links (I think).  The old binding
for F11 to `org-capture' has not been used much, and so we can dispense of it.
2020-09-26 16:46:34 +02:00
Daniel - 1c065bb46b
Add simple function to insert links to other items at point 2020-09-26 16:44:40 +02:00
Daniel - 48d9979fbd
Add default key binding for backlink searching in Org Mode buffers 2020-09-26 15:24:29 +02:00
Daniel - b0a36749e6
Refactor Org Mode link finder function
The main entry point is now `db/org-find-links-to-current-item', which decides
how to obtain the ID and CUSTOM_ID of the item to look for.  The main work is
done by `db/org-find-items-linking-to-id', which does some checks, build the
query, and then calls `org-search-view' (which, indeed, does the actual work).
Users should call `db/org-find-links-to-current-item' only.
2020-09-26 15:20:11 +02:00
Daniel - a6f77f8d71
Add simple helper function to find items linking to the current one
Only ID links are supported by now.
2020-09-26 14:14:45 +02:00
Daniel - b1d82f875f
Do not let org-roam change matching data when determining the face
It is not clear what function really changes the matching data, but it's called
by `org-roam--id-link-face', and this is where we save the matching data now.

TODO: check whether this has been reported or even fixed upstream.
2020-09-26 14:12:21 +02:00
Daniel - c11aeb6666
Experimentally enable company completion in Org Mode buffers 2020-09-26 11:12:11 +02:00
Daniel - f3df40bf40
Add missing autoload for project linting function 2020-09-21 10:39:36 +02:00
Daniel - bdc8a53fe3
Minor reformatting in package signature for db-projects 2020-09-20 14:24:43 +02:00
Daniel - a576ef123d
Automatically update hydra for shortcuts after customization 2020-09-19 14:02:50 +02:00
Daniel - 4e7245f858
Experimental: do not show deadlines in top agenda view
We have a separate view for deadlines, that should actually be sufficient.
2020-09-17 15:53:04 +02:00
Daniel - 6ee9e84bb1
Reduce number of ls switches when on windows
They do not seem to be supported by mingw's ls?
2020-09-17 15:52:56 +02:00
Daniel - 01be58c2e1
Prevent the default font from being changed by gconf
Thanks, stackexchange!
2020-09-12 14:42:35 +02:00
Daniel - 39c06d670b
Move tramp and calc configuration into use-package statements 2020-09-12 14:20:30 +02:00
Daniel - d10e85e208
Fix typo in regular expression 2020-09-12 13:30:53 +02:00
Daniel - cb9ef5a8d4
Merge configuration sections on constants and path settings 2020-09-12 13:15:27 +02:00
Daniel - 3fb7c80312
Demand basic configuration packages
Since package loading is defered by default, explicit demanding is required
here.
2020-09-12 12:54:01 +02:00
Daniel - 7b9dd53c3a
Moving around use-package declarations 2020-09-12 11:49:37 +02:00
Daniel - a4daabd42c
Move private directory creation to corresponding config section 2020-09-12 11:40:35 +02:00
Daniel - 085a57d281
Add subword-mode for programming 2020-09-12 11:32:52 +02:00
Daniel - b9add4858a
Group configuration for use-package 2020-09-12 11:32:39 +02:00
Daniel - 5aea5ba37e
Introduce new configuration section for paths 2020-09-12 11:32:27 +02:00
Daniel - 471933e25c
Gather some configuration on appearance in corresponding section 2020-09-12 11:31:59 +02:00
Daniel - 6e9e6d2bce
Move definition of lisp-indent-function to Lisp section 2020-09-12 11:31:05 +02:00
Daniel - 053c3350e9
Add another missing closing parenthesis
Shouldn't copy and paste so much …
2020-09-12 11:30:40 +02:00
Daniel - d0b0cc06ff
Only bind f5 once
Easier to see what is going on.
2020-09-12 11:21:30 +02:00
Daniel - 331272afc1
Add configuration and key bindings for bm package 2020-09-12 11:14:37 +02:00
Daniel - 9e8ee7f47f
Move around use-package declarations
Should make a little bit more sense now, but not much …
2020-09-12 11:03:41 +02:00
Daniel - 4bae02e8c7
Create new configuration section for general programming
Covering configurations for magit, projectile, and the like.
2020-09-12 11:03:40 +02:00
Daniel - 6c0d7661a8
Move helm shortcut function to navigation section
Makes more sense to me.
2020-09-12 11:03:40 +02:00
Daniel - d9eb84b0a3
Make shr render html-pages more consistently
Configuration from https://protesilaos.com/dotemacs.
2020-09-12 11:03:38 +02:00
Daniel - 7134ce2999
Allow to switch directories in Eshell without writing `cd' 2020-09-12 10:40:42 +02:00
Daniel - 192af9ca14
Show only clashes in ediff 2020-09-12 10:35:51 +02:00
Daniel - d9180abf04
Demand loading personal customizations
This somehow got broken when setting the default loading behavior to defer.
2020-09-12 10:35:05 +02:00
Daniel - 53c03eb488
Add missing closing paranthesis
Sorry for that.
2020-09-12 10:34:50 +02:00
Daniel - 644dac0c43
Add use-package declaration for magit-repos
That's cool!
2020-09-12 10:25:50 +02:00
Daniel - b4c5a52b3e
Add some simple configuration for git-commit 2020-09-12 10:25:43 +02:00
Daniel - 48b6394757
Remove obsolete defer options
Deferring to load packages is the default now.
2020-09-12 10:10:43 +02:00
Daniel - 5bea8030fc
Move all Org Mode configuration to corresponding section 2020-09-12 10:02:40 +02:00
Daniel - 58f74cdd41
Add configuration for org-tree-slide
That's fun!

Again from https://protesilaos.com/dotemacs/.
2020-09-12 10:01:32 +02:00
Daniel - fca3367ab4
Let tabs act natively when in Org Mode src blocks 2020-09-12 09:51:05 +02:00
Daniel - a02fc189ab
Keep org links after insertion 2020-09-12 09:50:47 +02:00
Daniel - 93f5389d39
Move calendar configuration to separate use-package declaration
Also make Monday the first day of the week.
2020-09-12 09:41:38 +02:00
Daniel - 9727c17dd9
Don't make diary entries from org agenda
The standard diary is not used in this configuration, and using the "i" key for
clocking is much more natural then.
2020-09-12 09:40:47 +02:00