Commit Graph

1163 Commits

Author SHA1 Message Date
Daniel - d7ce497278
Add basic eglot configuration 2023-12-28 15:27:34 +01:00
Daniel - 3211acd21b
Extending lsp-mode configuration
Based on input from
https://andreyor.st/posts/2023-09-09-migrating-from-lsp-mode-to-eglot.
No configuration yet for eglot, though.
2023-12-27 21:45:41 +01:00
Daniel - 73de5e94ad
Show current number of matches in isearch
By courtesy of https://zck.org/improved-emacs-search, via [Irreal: A
Slight Isearch Improvement](https://irreal.org/blog/?p=11364).
2023-12-27 15:40:25 +01:00
Daniel - 30bd59c9da
Fix wrong keybinding definition for toggling the Org roam buffer 2023-12-23 21:35:50 +01:00
Daniel - 18e612b447
Show Org roam buffer in selected window before updating its content
This is to address the issue of malformed content in the Org roam
buffer, see https://github.com/org-roam/org-roam/issues/1586.  The
excellent description of @camdez in [there][1] is the basis for this
workaround.

[1]: https://github.com/org-roam/org-roam/issues/1586#issuecomment-1412250226
2023-12-23 21:17:48 +01:00
Daniel - 4eeb5527bc
Fix keybinding definitions for Org roam
Were defined in the wrong map, probably because this map was the correct
one in Org roam v1.
2023-12-23 18:24:31 +01:00
Daniel - 4fd8b655f9
Fix typo in comments 2023-12-23 15:31:01 +01:00
Daniel - 4bce1dec3e
Globally enable company-mode
This is an experimental setting to increase usage of completion
functionaly in my workflow.  It's not clear yet whether I will find this
disturbing, though.
2023-12-23 15:29:02 +01:00
Daniel - c0c5dfd080
Include unlinked references in Org roam buffer
This is an experimental setting to spot missing references easily.
Performance cost might be prohibitive, though.
2023-12-23 15:28:24 +01:00
Daniel - 4dfb36858a
Move Org roam db autosync activation to use-package definition
No need to conditionally enable it in main initialization function when
it can be done directly directly after loading `org-roam`.  This keeps
the configuration of the package local, i.e. syntactically together.
2023-12-23 15:27:06 +01:00
Daniel - 76c8717c24
Uniformly add single blank lines around captures Org items 2023-12-19 09:08:41 +01:00
Daniel - 479f9dbaf7
Remove obsolete configuration for synonyms package 2023-12-03 11:08:23 +01:00
Daniel - 7456943c07
Limit line width in git commit messages to 72 characters
This is per https://cbea.ms/git-commit/#wrap-72 and makes the line width
in git commit messages independent of the global fill-column setting.
2023-11-27 17:14:00 +01:00
Daniel - 9a90e458f9
Adjust some code formatting
To avoid accidental reindentation via `lisp-indent-function`.
2023-11-25 10:17:25 +01:00
Daniel - a6ac99d013
Add autoload declaration for `org-cycle-hide-drawers`
Tihs avoids a byte-compiler warning.
2023-11-18 21:58:09 +01:00
Daniel - bbd547c1b7
Hide Org drawers during visibility cycling by default
This is taken from the release notes of Org 9.6,
cf. https://orgmode.org/Changes.html.
2023-11-18 16:25:32 +01:00
Daniel - aa0a7e9791
Unbind `org-agenda-redo-all` in agenda buffers
It's annoying that `org-agenda-redo-all` always jumps back to today, so let's
try to avoid this by not having it bound anymore.  I am usually completely
satisfied with `org-agenda-redo` anyway.
2023-11-18 14:19:25 +01:00
Daniel - 712a314923
Try a bit harder to avoid recentering after agenda buffer redo
New try: temporarily nullify `recenter`, seems to work so far and keeps point on
the same line.
2023-11-18 14:18:41 +01:00
Daniel - 836bcaa0ff
Add small commit for structuring Org configuration 2023-11-04 09:34:28 +01:00
Daniel - 593a2ab9df
Get rid of last byte compiler warnings in Org configuration 2023-11-03 17:24:14 +01:00
Daniel - e675ec4b47
Ensure helm key bindings to be correctly set even w/o customization 2023-11-01 21:11:57 +01:00
Daniel - 6c18d9ce9d
Ignore tasks on WAIT in stuck project list 2023-11-01 21:02:43 +01:00
Daniel - 7a42aedd9c
Add missing require statement for `helm-bookmark`
It's not automatically loaded with `helm`, apparently …
2023-10-29 13:16:06 +01:00
Daniel - 99aa8e5e56
Remove obsolete configuration for `typing` package 2023-10-28 19:06:24 +02:00
Daniel - 65f49dfabb
Eliminate byte-compiler warnings from eshell configuration 2023-10-28 18:59:21 +02:00
Daniel - 51d6111b47
Remove obsolete key bindings for ediff mode
I do not use them, and they cause byte-compiler warnings.
2023-10-28 18:51:17 +02:00
Daniel - 067a8cdacf
Eliminate some more byte-compiler warnings 2023-10-28 18:51:04 +02:00
Daniel - a41428eff0
Remove byte-compiler warning for enabling use-package imenu support 2023-10-28 18:14:07 +02:00
Daniel - 2f2eac0b38
Reorganize Gnus configuration to remove most byte-compiler warnings 2023-10-28 18:13:47 +02:00
Daniel - 7b3b0811a1
Separate TeX configuration into separate package
This allows to not have to install the `auctex` package without errors on
startup, cf. 886598e.
2023-10-28 12:06:27 +02:00
Daniel - 886598e0d8
Remove eval-when-compile for non-essential auctex package
This leads to an error on Emacs startup when auctex is not installed.
2023-10-28 11:35:32 +02:00
Daniel - f94e909987
Fix enabling imenu support for use-package
The setting has to be done before loading `use-package` (which yields a new
byte-compiler warning, narf).
2023-10-27 16:58:10 +02:00
Daniel - 88bc5b3162
Remove unnecessary require statements for `helm-emms`
The removed packages are loaded by `helm-emms` directly.
2023-10-27 16:32:30 +02:00
Daniel - dae26fcc5a
Do not perform adaptive sorting in personal shortcut helper
This never worked anyway, I would probably have had to define the source
globally for adaptive sorting to work, or something like that.  However, I am
usually happying with the interactive narrowing of the candidates, so let's get
rid of adaptive sorting for now.
2023-10-27 16:31:02 +02:00
Daniel - b3d620d884
Get rid of some more byte-compiler warnings in main init file 2023-10-27 16:30:19 +02:00
Daniel - 535bdda429
Clean up personal shortcut helper function
Get rid of some helm sources I usually don't use, to speed up function
execution.  Indeed, on Windows 11, if this function takes too long, the Emacs
frame will loose its focus, which is super annoying!
2023-10-26 15:36:31 +02:00
Daniel - 52559e8cf8
Fix location of multisession data path
It's session data, and thus goes into `emacs-d-userdata`.
2023-10-19 16:35:19 +02:00
Daniel - 37a12c4d16
Reenable automatic indentation in Org mode buffers
This partially reverts 39f652e.
2023-10-15 15:02:01 +02:00
Daniel - 39f652e070
Do not automatically indent anymore in Org mode after newline
`org-return-indent` is obsolete since 9.4, one should use `org-return` with
`indent` set to `t` instead – and I am not sure whether it will work if I rebind
`org-return` to some interactive lambda form.  So let's try to not indentent
automatically anymore, maybe this is good enough?
2023-10-15 11:20:04 +02:00
Daniel - 4051fc1a38
Remove workaround to inhibit `eproject-mode` in `message-mode`
`eproject-mode` seems to be gone, at least it's not in elpa anymore (there's
still a `elpa-eproject` package in Debian, though).
2023-10-15 10:41:41 +02:00
Daniel - 04c5040f75
Get rid of byte compiler warnings in Dired configuration 2023-10-15 10:21:34 +02:00
Daniel - eb8e696374
Fix use-package indentation also for `common-lisp-indent-function` 2023-10-14 21:55:54 +02:00
Daniel - 71e89d2976
Handle some byte compiler warnings in main initialization file 2023-10-14 21:55:30 +02:00
Daniel - 86879ec84e
Update assignment to obsolete BBDB variable 2023-10-05 10:27:54 +02:00
Daniel - 435a9f52a9
Ignore further user data files in main .emacs.d directory
Files of the `transient` package are now kept under `private/`.
2023-10-05 10:26:51 +02:00
Daniel - a287d2af01
Increase Gnus' large-group limit
200 is not enough, let's try 500.
2023-10-05 10:21:47 +02:00
Daniel - 48836d41f7
Move main initialization function to the end of init.el
It's called at the end, so it can very well also be located there.  This also
avoids some byte-compiler warnings due to the order of declarations.
2023-10-02 13:08:57 +02:00
Daniel - 15ee9caea0
Globally define private userdata directory
This is instead of repeating the path again and again in the code.  It's cleaner
this way, also easier to spot mistakes (see the now fixed definition for
`abbrev-file-name' …).
2023-10-01 18:47:33 +02:00
Daniel - 3004f96949
More local data from `url` package to private/ 2023-10-01 18:29:11 +02:00
Daniel - 31268927e0
Revert "Remove obsolete lisp indentation setting for use-package"
This reverts commit aa4ac442a0.

Turns out this setting is not obsolete, as my whole init file would be
reformatted without it … keeping it for now.
2023-10-01 18:27:36 +02:00
Daniel - 975c2869ea
Move some user-specific data to private/ and clean up .gitignore
There may be more data to be moved to private/, but for now it's enough like
this – I think.
2023-10-01 18:00:39 +02:00
Daniel - 08ccbbbfab
Reorder initial use-package settings
This way no warnings are emitted by the byte compiler.
2023-10-01 17:47:46 +02:00
Daniel - cb66fb4976
Move smex save file to private directory 2023-10-01 17:41:09 +02:00
Daniel - aa4ac442a0
Remove obsolete lisp indentation setting for use-package 2023-10-01 17:11:11 +02:00
Daniel - 2f6aa6a1f7
Introduce major-mode-remap-alist into auto-mode configuration
Also distribute the current auto-mode setting from `db/run-init` to the
individual packages, to allow overwriting via customizations.
2023-10-01 17:04:55 +02:00
Daniel - a4556632b0
Remove advice for moving message attachments to the end of buffer
This is configurable since Emacs 29.1.
2023-10-01 15:39:02 +02:00
Daniel - cfdd235f94
Set multisession directory before loading package
This allows to overwrite this default via customize.
2023-10-01 15:36:45 +02:00
Daniel - e01e02970f
Comment personal M-SPC binding to be the default since Emacs 29.1
So that it can be removed later on, maybe.
2023-10-01 15:31:05 +02:00
Daniel - f7254fc6a4
Configure multisessions' directory to be under private/
It contains data to be stored between sessions and thus belongs there.
2023-10-01 15:30:18 +02:00
Daniel - 563ce633a0
Remove obsolete setting for df program on Windows
This variable is obsolete since Emacs 27.1.
2023-10-01 15:25:55 +02:00
Daniel - 2d1fd71265
Ignore HOLD entries on Waiting-For list 2023-09-14 19:03:47 +02:00
Daniel - 1b860b9273
Add some minimal default configuration for YAML files 2023-09-14 16:19:10 +02:00
Daniel - 6e20565ef0
Fix typo in Org capture template 2023-09-10 15:09:48 +02:00
Daniel - c085dda842
Allow to provide password to SQL blocks via ID
This is better than having to store the password in plaintext.
2023-08-17 18:40:59 +02:00
Daniel - a6324a668d
Move custom org-password function to db-org
This is where it belongs, even if there's a warning about free variable
referencing.
2023-08-17 17:06:42 +02:00
Daniel - 53f60f1d82
Use vls as (additional?) player for EMMS
This is to increase the available choices for EMMS in case mplayer does not work
for some reason.
2023-08-15 18:10:50 +02:00
Daniel - cbd97e8c3e
Remove loading of obsolete `helm-config` library 2023-08-13 10:56:30 +02:00
Daniel - de271c1295
Remove obsolete tab-bar faces for solarized-dark-theme
This has been fixed upstream, see
https://github.com/bbatsov/solarized-emacs/issues/427.
2023-08-08 17:31:57 +02:00
Daniel - bc5df22b55
Fix wrong case statement to check server start 2023-08-06 15:09:38 +02:00
Daniel - 42af8216e0
Define magit-projectile synchronization function after loading magit
This is supposed to inhibit this warning:

```
Warning: Eager macro-expansion skipped due to cycle:
… => (load "db-utils.el") => (macroexpand-all (defalias 'db/sync-magit-repos-from-projectile …)) => (macroexpand (eval-when-compile …)) => (load "db-utils.el")
```

It should make calling this function also more robust.

Also updated the implementation to be more “dash-y”.
2023-07-23 17:02:15 +02:00
Daniel - d0aa2bf33d
Restrict Org cache advice to Org 9.5.5 and earlier
Org 9.6.7 does not seem to have these performance issues anymore.
2023-07-19 19:46:27 +02:00
Daniel - 0c0009b655
Add leading space in org agenda lines
This is required by the regular expression in `org-agenda-show-clocking-issues`,
without this space, no consistency checking is done.

Also indent all other agenda views, for consistency.
2023-07-17 19:54:38 +02:00
Daniel - b3ab6d7a9d
Fix some identation 2023-07-10 17:07:35 +02:00
Daniel - 1ce7564f57
Exclude finished items from Waiting and On-Hold list
Forgot this in c45ca29.
2023-07-10 16:51:01 +02:00
Daniel - bf88128d25
Do not show SCHEDULED items in agenda task backlog
They are shown in the time grid already, no need to duplicate them in the
backlog.
2023-07-09 10:39:53 +02:00
Daniel - c45ca29ad0
Unify WAIT and HOLD lists
Both lists now include also non-TODO-items and only filter by tag and scheduling
information.
2023-07-07 16:46:34 +02:00
Daniel - 1b62989720
Move deadlines before NEXT list in main agenda view
Deadlines should be looked at first before choosing a task from the NEXT list.
2023-07-07 16:43:39 +02:00
Daniel - d6bd360593
Reverse treatment of universal argument for helm shortcut menu
Usually, when searching for important documents vie `db/helm-shortcuts`, I
forget to include the universal argument, abort the current search and repeat
it.  This is annoying.  Since listing documents is fast enough, including them
by default should alleviate this issue.

When retrieving the list of documents is too slow and should be disabled
interactively, providing a universal argument excludes this listing now.
2023-07-07 16:27:09 +02:00
Daniel - 536d3b37ba
Rewrite ansi-term `defadvice` with `define-advice`
Only two instances of `defadvice` remaining, will rewrite those somewhen.
2023-07-01 17:31:22 +02:00
Daniel - d8a41ca0cf
Move Dired utility functions to general utility library 2023-07-01 17:02:12 +02:00
Daniel - 2dc1a4e6e0
Disable `delete-selection-mode`
Accidentally touching keys while having an active region happens far too often
to me, so let's keep things safe for now.  Deleting an active via C-w is easy
enough when needed.
2023-07-01 12:44:48 +02:00
Daniel - 3b6dcaecf9
Do not show past SCHEDULED items in NEXT list
Items scheduled in the past are shown in the grid view anyway, there's no need
to duplicate those in the NEXT list.
2023-06-21 17:46:20 +02:00
Daniel - 5b6af3ad3d
Fix agenda title for task backlog
It's not the NEXT list, this is the list two above that list.
2023-06-21 17:45:45 +02:00
Daniel - 8cdc1de7ca
Add some sensible defaults for proced
Used proced quite often lately, because it offers a nice process overview on
Windows without having to leave Emacs.

Default taken from [lw's blog][1], nice post!

`proced-enable-color-flag` will only be available from Emacs 29 on, but let's
included it nevertheless to be “future proof”.

[1]: https://laurencewarne.github.io/emacs/programming/2022/12/26/exploring-proced.html
2023-06-03 09:31:19 +02:00
Daniel - f742b213fc
Hide NOTEs and TOPICs tagged with SOMEWHEN on main project agenda
Those items will show up in the dedicated SOMEWHEN list, where they belong.
2023-06-01 21:05:51 +02:00
Daniel - d190f7af80
Do not enable `auth-source-pass` by default
When logging in via TRAMP and sudo, the root password is transmitted
automatically.  This does not feel right to me, so let's not enable
`auth-source-pass` for now.
2023-05-28 17:45:28 +02:00
Daniel - 242d5cbcba
Add function to retrieve library version
This could come in handy when checking for necessary library versions.
2023-05-18 19:07:21 +02:00
Daniel - 88855f6713
Fix typo in auth-source package declaration 2023-05-07 10:05:36 +02:00
Daniel - 28b9918325
Add utility function to create selector functions from table headers
This might be useful to work with table data from Org tables in source blocks,
maybe.

Does this exist somewhere already?
2023-04-30 17:26:56 +02:00
Daniel - 7bd8c0ef2b
Remove obsolete function to conditionally enable lispy
Not using this anymore.
2023-04-30 17:25:53 +02:00
Daniel - 8df66edf25
Automatically retrieve passwords from password-store when available
This saves typing time.
2023-04-30 12:27:58 +02:00
Daniel - a4823651a1
Use Common Lisp indentation by default
It's not perfect, but I think it's still closer to what I like.
2023-04-29 17:29:53 +02:00
Daniel - a44b7b660e
Remove obsolete function to skip tags in agenda views 2023-04-29 17:28:35 +02:00
Daniel - 8c9c47f6e3
Prominently display of active filters in agenda view
Displaying the current filters in the mode line alone often goes unnoticed for
me, so I need a more direct display.  Let's add it to the first structural
header.
2023-04-29 17:27:50 +02:00
Daniel - 2d6b40088e
Delete shell buffers windows on `delete-other-windows`
More often, I want the shell buffer to be gone when calling
`delete-other-windows` than not, so let's make this the default.
2023-04-28 16:32:53 +02:00
Daniel - 1e262aef13
Allow `scroll-left` command 2023-04-26 16:54:04 +02:00
Daniel - 9904e24333
Make shell side windows more persistent
Do not delete shell side windows when deleting other windows and do not make
them selectable by default (although `ace-windows` does not seem to respect this
setting).
2023-04-16 16:37:08 +02:00
Daniel - b6bdb4f9e2
Allow to display shell and eshell in same side window
Inspired by
https://www.gnu.org/software/emacs/manual/html_node/elisp/Frame-Layouts-with-Side-Windows.html.
2023-04-16 11:29:34 +02:00
Daniel - cfe1dcfa0a
Explicitly display shell and eshell buffers in side window
This should inhibit their windows from being split by `display-buffer` to
display normal buffers, but during early testing also magit buffers went to this
side window.  This configuration may thus not be final yet.
2023-04-16 10:57:26 +02:00
Daniel - 1f248358bc
Remove obsolete hook to reset checkboxes
The function called here has been removed.
2023-04-09 10:28:07 +02:00