summary refs log tree commit diff
path: root/emacs/etc (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-10-17ref(text): set abbrev-file-nameFranck Cuny1-0/+1
Change-Id: I626a96e103ec9da29ea2f7d756ced8b41904eb21
2022-10-17ref(lsp): switch from lsp-mode to eglotFranck Cuny6-61/+33
The experimentation was a disaster: lsp-mode was buggy, slow, littering the interface with a lot of things I did not understood or needed. eglot is definitely simpler and works better for me. Change-Id: Ie7e7e6f1c8e7b26aa5cb79d636f3ad53c1493617
2022-10-17ref(prog): wrap comments at column 120Franck Cuny1-2/+2
Change-Id: Idd2b673af070b7cca02b1e62d6a3c40bdad1b7ec
2022-10-17ref(edit): reorganize the moduleFranck Cuny1-12/+17
Change-Id: I62d5734643113e51a5b1ddaf59b4773a9c06598a
2022-10-17ref(completion): remove vertico-multiform and reorganize the moduleFranck Cuny1-21/+17
I don't know what vertico-multiform is, and it's not loading - let's delete it! Change-Id: I82f1c505236e7892635711b5c73d3df8b097df41
2022-10-15ref(ui): remote the regex for uniquifyFranck Cuny1-4/+0
Change-Id: Iea6eea6013e13d964f1f903b6713f0e0ad2df997
2022-10-15ref(navigation): re-organize the module and load packagesFranck Cuny1-45/+31
Load explicitly the packages I want and group the module for settings, bindings and hooks. Change-Id: I9e22043819bba096ee5d33e53fa03926eb559cc1
2022-10-15ref(flymake): add comments for the sectionsFranck Cuny1-0/+3
Change-Id: Ic81ec491542ded173460058e5c97c798317c7a08
2022-10-15ref(text): group settings and require the modulesFranck Cuny1-15/+19
Require the modules that are needed at the top of the file and organize the code in sections: settings, bindings and hooks. Change-Id: Iced9ac0e6801b91cf9b9055176873ae73f7205bf
2022-10-14ref(rust): delete the moduleFranck Cuny1-24/+0
I'm not going to need this Change-Id: I692dbbaf14c574b988aa9989057c06a553971e1c
2022-10-14ref(python): use black when availableFranck Cuny1-3/+7
Use python3 for the interpreter. Change-Id: Ib3193cb73b1303de543d8dc1873f1efe2320cd20
2022-10-14ref(org-mode): drop references to notmuchFranck Cuny1-12/+0
I forgot to clean this up when I delete the code for notmuch. Change-Id: I56e0ad26ee3f0375d1814f47c6856931501b70da
2022-10-14ref(text): use gfm-mode for README.md filesFranck Cuny1-1/+7
Change-Id: I590cff96b935202c6d8b2bd9c0d3fe56e0699cc8
2022-10-14ref: don't coerce eldoc's buffer to a small windowFranck Cuny1-1/+1
Change-Id: Ib831efa39358ac6bd1d1ecc7d484ce479749cae8
2022-10-14ref: move flymake and eldoc configuration to their own librariesFranck Cuny4-15/+45
Change-Id: Ida9e0f7d6ee25cf5fe8e208d1ae5c77aa28cfe0f
2022-09-24fix(prog/lsp): apply a number of fixes related to LSPFranck Cuny3-59/+23
Now that I've switched back to LSP, there's some configuration to delete and some to update. The configuration related to rust is fixed (lsp-ui was not loading properly), and I'm also disabling the inlay hints (they are very intrusive, I'll need more tweaks to find something that works for me). For the LSP configuration itself, I'm tweaking a few more things, especially related to the UI. Finally, deleting configurations for eglot and go: eglot is replaced by lsp-mode, and go's configuration is in its own file. Change-Id: I73fb4b66c8816dd6e20efa358c81e3c306b8255f
2022-09-24feat(packages): install corfu-docFranck Cuny2-0/+4
Change-Id: I59e41c5a4a8949a2c04aea391eb74f5bbbd71549
2022-09-22feat(lang/nix): format the buffer on saveFranck Cuny1-0/+5
Delegate the formatting of the buffer to the LSP server. Change-Id: Iabb7b838fba71dffcff5dd272aa5895801d6db3c
2022-09-17ref(completion): add more packages for completionFranck Cuny5-12/+28
Get LSP to work with cape and corfu for the completion. Change-Id: Id8f01b1dee77957ff5ba27ed471707b7b9c7dc93
2022-09-17feat(lang/nix): configure Emacs for nixFranck Cuny2-0/+22
Change-Id: I4e92859e96362268431bde6dd4a81f73a8796b0d
2022-09-17ref(tree-sitter): move the configuration to its own fileFranck Cuny3-10/+22
Change-Id: I424e4d32e05d6bf21f6abb3cc68cad598af31708
2022-09-17feat(lang/rust): configure Emacs for rustFranck Cuny2-0/+20
Change-Id: Iaaccc75333b8b36e2fdb0ae4a6eb84408eb61300
2022-09-17ref(email): remove configuration for notmuchFranck Cuny2-80/+0
I'm not going to read my emails with Emacs ... Change-Id: I649239057e5a0c35ebbb1eb329b9bee956dd2668
2022-09-17feat(lang/go): configure Emacs for goFranck Cuny2-0/+31
Change-Id: I2f33baa1ef2f75d770203da210065fed15f567e8
2022-09-17feat(lsp): configure lsp-mode for EmacsFranck Cuny3-0/+29
Despite all the hype around eglot, it's not working well enough for me. I keep running into issues where the text is poorly formatted (I might have more than one formatter running, so it could be my fault). It also have to frequently reconnect to the server, which is really annoying (and I did not use to have that problem with lsp-mode). Change-Id: I5763487882599053adf9fd05c612422ad94edbe1
2022-09-17feat(lang/python): configure Emacs for pythonFranck Cuny2-0/+18
Change-Id: I4f1ae59be8c10f344bec93b86c70a893123e92de
2022-09-17feat(packages): install all required packages via straightFranck Cuny2-73/+78
Remove all the code related to installing packages, and created a new module that lists all the packages I need to install. This does not seem to be breaking anything so far ... Change-Id: I02f07c6a95bfde55d0897d804ea4d32097a79842
2022-09-17feat(packages): configure straight for managing packagesFranck Cuny1-0/+14
straight has a few nice properties: - reproducible package management - clone packages to make it easier to work on them when needed - can use packages that are not in melpa (e.g. other git repositories) Change-Id: I6a5203bd843e68a040467d63faca8d597150b190
2022-09-17feat(aspell): more wordsFranck Cuny1-1/+2
Change-Id: I34514531f8c0a2f3d3af31861b242a4eb55def64
2022-09-15fix(prog): set python indentation to 4 spacesFranck Cuny1-1/+1
That's what everyone use. Change-Id: I312dd88218e2d82be0aad8fd6377483ffb2c0390
2022-09-07feat(UI): use the default themeFranck Cuny1-15/+0
Change-Id: Iadad81181e7f97e89613edefa89afdc244753b98
2022-09-07feat(project): consider cargo's crate as projectFranck Cuny1-0/+9
Add a helper to define directories that contain a 'Cargo.toml' file as a project. Change-Id: If099172eb6f35ecbea06a06fb39b7f64a5a809b7
2022-08-22feat(rust): add initial configuration for rustFranck Cuny2-2/+9
Use rustic and configure it to use eglot as the backend for LSP. Change-Id: I71bd51a863f1a03b0b3f2d218d970d5ea0867e9e
2022-08-10feat(feed): https://pluralistic.net/Franck Cuny1-0/+1
Change-Id: I1b9800394d241811cec760b66610e1428ae4112d
2022-07-07feat(org-mode): elisp links to these functions are safeFranck Cuny1-0/+4
By default, when opening a link to some elisp code, org-mode prompts for confirmation. I don't need to do that, I consider these functions safe. Change-Id: I4b0f2a65d132bad5820690ae157454c981d09b8b Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/619 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07feat(org-mode): reset check boxes for repeated tasksFranck Cuny1-0/+22
Add a couple of functions in order to reset the check boxes for repeated tasks. If the tasks has the property `RESET_CHECK_BOXES', when it's marked as completed, the check boxes are unset. Also configure the capture template for emails to only show when I'm in a notmuch buffer. Change-Id: I3511a0bb035ab57722b4409a19feb9a14dc85298 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/618 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07feat(org-mode): get rid of some custom functionFranck Cuny1-19/+13
This is not needed anymore, and it looks like the code is also formatted differently for the agenda. Change-Id: I391d0bfda9e4077df8c6ef7e2f7822b085ae4292 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/617 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07feat(org-mode): add more TODO keywordsFranck Cuny1-1/+2
I want some keywords related to reading (books, articles, feeds, etc). Change-Id: I2c599606b7f537946200dc0e805856d51c9c5b0a Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/616 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07feat(org-mode): add a new file to the agenda: habits.orgFranck Cuny1-3/+2
Change-Id: I926607d5541dfd0455685acb324dd2b56484dfc1 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/615 Reviewed-by: Franck Cuny <franck@fcuny.net> Tested-by: CI
2022-07-07feat(org-mode): add capture template for emailsFranck Cuny2-4/+9
Add a new template for org-mode capture related to emails. It's useful to create tasks based on an email, and the module `ol-notmuch' helps with that: it extract the subject (among other stuff). Change-Id: Id211c1f9952d1093dac8f7466ffd818537961ee9 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/614 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07feat(notmuch): tweak a bit more the configurationFranck Cuny1-13/+57
Add a few more things to the default configuration: - set the MUA with the version of Emacs/notmuch - cache the addresses - define the tags used to archive emails - set the fcc dir - add a number of saved searches - format the search result Change-Id: Iec21e76e7ac4fce0d299e367b2c59bf8bbbe9718 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/613 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07ref(elfeed): remove more feedsFranck Cuny1-38/+1
Change-Id: Ib927dcdcdab39e09823540a73cb90cddebde2185 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/612 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07ref(elfeed): set the default search filter to 1 monthFranck Cuny1-1/+1
Only show entries from the last month, I don't need to see things that are older. Change-Id: I387eac7172fd44df28a513c1fbcc361d762c337a Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/611 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-07ref(elfeed): delete commented out codeFranck Cuny1-63/+0
Change-Id: I25e307b3019ddffcbe83f954effd60a8b6fa4057 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/610 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-02ref(org): lower case for template menuFranck Cuny1-4/+4
Change-Id: I557fc12c1d00af891ec1607b4b921d3f38051016 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/606 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-02feat(org): add a capture template for tasks related to mailFranck Cuny1-0/+10
By pressing "m" I can create a task related to the current opened email. Change-Id: I63b7cc69cd6ba4fe66e9fbb526e073f75e0a7b3b Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/605 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-07-02feat(notmuch): define saved searchesFranck Cuny1-1/+17
Define some saved searches to make it easier to navigate incoming emails. I can jump to them by using the "j" key. Change-Id: Ie7faed224de25b72134604dbcf82568e18c2044b Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/604 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-27ref(prog): clean up comment settingsFranck Cuny1-2/+3
Change-Id: Ic3ec94047e39618d9d1bbc5aa9afce8565b87208 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/583 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-27fix(completion): load explicitly consultFranck Cuny1-0/+1
If I don't do this for some reasons now I can't rely on functions like `consult-buffer'. Change-Id: Iee6a051d66a9903bc3bebdc5762180f8816a5427 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/582 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
2022-06-26fix(prog): configure eglot for buffer formattingFranck Cuny1-12/+14
Load eglot when Emacs starts, and delegate buffer formatting for supported language to LSP. The LSP for nix is using `nixpkgs-fmt' already, so there's no need to configure this ourselves. Change-Id: I6ee4adcc34b30c75031974c10a47fd3f7d240bed
2022-06-26feat(prog): require go-modeFranck Cuny1-7/+5
Change-Id: I2b008d6039714475d7bbf487ac7674dd80b1bac4
2022-06-26feat(prog): enable tree-sitterFranck Cuny2-0/+11
tree-sitter is an incremental parsing system, and this change installs the binding for Emacs. It improves significantly the code highlighting system (as it does not rely on regex when the language is supported by tree-sitter) and improves performance in general. Change-Id: Ibc3d6c7133b323d6cc63ffb248cd83f71ac5c94a
2022-06-26fix(prog): simplify flymake's configuration to work with eglotFranck Cuny1-11/+7
I've been running into issues between flymake and eglot for a while now. After modifying the file, flymake would report errors on possible typo I made while editing, but once I've fixed them, the diagnostic would not be updated until I either restart eglot or kick another flymake run. After some debugging I'm pretty convinced this is due