| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Delegate the formatting of the buffer to the LSP server.
Change-Id: Iabb7b838fba71dffcff5dd272aa5895801d6db3c
|
|
|
|
|
|
| |
Get LSP to work with cape and corfu for the completion.
Change-Id: Id8f01b1dee77957ff5ba27ed471707b7b9c7dc93
|
|
|
|
| |
Change-Id: I4e92859e96362268431bde6dd4a81f73a8796b0d
|
|
|
|
| |
Change-Id: I424e4d32e05d6bf21f6abb3cc68cad598af31708
|
|
|
|
| |
Change-Id: Iaaccc75333b8b36e2fdb0ae4a6eb84408eb61300
|
|
|
|
|
|
| |
I'm not going to read my emails with Emacs ...
Change-Id: I649239057e5a0c35ebbb1eb329b9bee956dd2668
|
|
|
|
| |
Change-Id: I2f33baa1ef2f75d770203da210065fed15f567e8
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I4f1ae59be8c10f344bec93b86c70a893123e92de
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
That's what everyone use.
Change-Id: I312dd88218e2d82be0aad8fd6377483ffb2c0390
|
|
|
|
| |
Change-Id: Iadad81181e7f97e89613edefa89afdc244753b98
|
|
|
|
|
|
|
| |
Add a helper to define directories that contain a 'Cargo.toml' file as a
project.
Change-Id: If099172eb6f35ecbea06a06fb39b7f64a5a809b7
|
|
|
|
|
|
| |
Use rustic and configure it to use eglot as the backend for LSP.
Change-Id: I71bd51a863f1a03b0b3f2d218d970d5ea0867e9e
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Change-Id: I926607d5541dfd0455685acb324dd2b56484dfc1
Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/615
Reviewed-by: Franck Cuny <franck@fcuny.net>
Tested-by: CI
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Change-Id: I25e307b3019ddffcbe83f954effd60a8b6fa4057
Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/610
Tested-by: CI
Reviewed-by: Franck Cuny <franck@fcuny.net>
|
|
|
|
|
|
|
| |
Change-Id: I557fc12c1d00af891ec1607b4b921d3f38051016
Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/606
Tested-by: CI
Reviewed-by: Franck Cuny <franck@fcuny.net>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Change-Id: Ic3ec94047e39618d9d1bbc5aa9afce8565b87208
Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/583
Tested-by: CI
Reviewed-by: Franck Cuny <franck@fcuny.net>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I2b008d6039714475d7bbf487ac7674dd80b1bac4
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 to the variable
`flymake-no-changes-timeout`. I've been running for a few hours without
it being set and I've not been able to reproduce the problem.
The other variables are set to their default value, this is not needed.
Change-Id: I770857a93b6d90193f39ee0dceaa19b0b928a3d8
|
|
|
|
| |
Change-Id: I8cfd546b668035ff3627cd0ac6a2082cd3d2dea8
|
|
|
|
|
|
| |
When using LSP to format the code, I keep running into weird behavior
with eglot. I think it's because the code is being formatted while
flymake is running but I need more evidence.
|
|
|
|
|
|
|
| |
This is the tool recommend by the nix community to format nix code (see
[1]).
[1] https://github.com/nix-community/nixpkgs-fmt
|
|
|
|
|
|
|
| |
Add a list of hosts I ssh to frequently.
This list is used by the function `my/ssh-cd-home' to make it easy to
open a dired buffer on that machine.
|
|
|
|
|
|
|
| |
This gives me the possibility to use `--group-directories-first' which
is easier to read when browsing directories.
Change-Id: I01f303fd4b23b186945964c09a0f45c3e6c634a4
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't add `exec-path-from-shell' to the hook `emacs-startup-hook' has
it's executed after `init.el' has been loaded. We need to run this when
we're at this stage while processing all the init files, so that we
configure correctly the path.
For example, before this change, `aspell' was not used as the spell
checker on mac before we were setting it to nil (the path was not set
properly when we were initializing ispell through flyspell).
Change-Id: I37d3e8d1c08b50966f1fe0df2579c06e37830e9a
|
|
|
|
|
|
|
|
| |
In a repository, I might have multiple `go.mod' files, and I want to
treat of of the directories as a project, even within the same
repository.
Change-Id: I09937d9961464bff0f9d673d1eb50484eb8ea10e
|
|
|
|
| |
Change-Id: Iccef9b065eb4bee917b0084fb0b34e76f09223f2
|
|
|
|
|
|
|
|
|
|
|
|
| |
The way I was setting the path for yasnippets was incorrect: the
variable `yas-snippets-dir' is expectnig a list of path, not a regular
path.
I also need to enable yas globally in order to insert them.
Change-Id: I437d6fcd8a976d1f42a13707008436dc15547d56
Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/203
Reviewed-by: Franck Cuny <franck@fcuny.net>
|
|
|
|
|
| |
I've multiple go modules inside a git repository. Without support for
workspaces, gopls is confused and does not work correctly.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
That way I can export org-mode files to markdown (then I can copy the
generated markdown to our wiki).
|
|
|
|
|
| |
For a given SLO, calculate what's the allowed downtime for different
time period.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
We don't care, as long as these files are ignored in `.gitignore' it
does not matter where we write them.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The modus themes are part of emacs now.
|
|
|
|
|
|
|
|
|
| |
Define a list of packages in `init.el', and then use plain `require' in
the various custom modules.
The first two packages installed that way are:
- notmuch
- exec-path-from-shell
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
It's useful to keep track of the repositories, the code reviews, issues,
etc. It's also easier to do code reviews that way (at least the initial
reading).
|
|
|
|
|
| |
Add a few bindings to run the tests, and make the test output more
verbose by default.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
I mostly use project.el anyway.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This library is going away. Also update the docs.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Enable the LSP for nix, and also ensure we're formatting the buffer when
saving a buffer.
|
| |
|
| |
|
|
|
|
|
| |
As I'm slowly moving to wayland for the X server, I need to add pgkt to
the possible list of window system (pgkt == pure gtk).
|
|
|
|
|
| |
Add a new template to capture bookmarks. The link needs to be in the
clipboard, and the title of the entry uses the title of the page.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
project.el is part of emacs, so that's fewer external dependencies.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Now that there's no mono-repo to worry about, I can use again
projectile.
Also add the integration with counsel.
|
| |
|
|
|
|
| |
That includes terraform and hcl.
|
| |
|
|
|
|
| |
It looks like these packages were moved to a new one named `git-modes'.
|
| |
|
| |
|
|
|
|
| |
Remove unused code.
|
| |
|
| |
|
|
|
|
| |
It's fragile and make some stuff unreadable.
|
| |
|
|
|
|
|
| |
The theme configuration keeps breaking after each update. Let's use
tango-dark instead.
|
|
|
|
|
| |
I don't have to deal with magit anymore, so I can drop all the stuff
that removed the VC stuff.
|
| |
|
|
|
|
|
| |
The name of the host is added at the beginning of the prompt, and a
background color is set to make it obvious.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
No need for powerline, and don't need to display the time either (since
it's already visible easily on both macos and linux).
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Add a function to open the file at point. In an eshell session, I can
then move the cursor to a file or a directory, and call
`fcuny/eshell-open-file-at-point`: for a file, a new buffer is open, if
it's a directory, we're changing the working directory to the given
path.
Bind the function to "C-o" in eshell.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Work's monorepo is extremely large which is causing performance issues
for magit. But there's magit features that I want to use when working on
personal projects.
Split the configuration between work/personal so that I can still use
what I want when working on my projects.
|
|
|
|
|
|
|
|
| |
Enable `flyspell-prog-mode` in order to get suggestions for spelling
errors.
Enable `company-mode` to get completion at point for unit and network
directives.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Not white, not lightly yellow, just close to white but not too bright.
|
|
|
|
|
|
|
|
|
| |
- smaller font for the modeline
- use the '3d' modeline from modus' theme
- include the host's name in the frame's title
- slightly larger font in linux
- include time and date in the modeline
- configure the modeline to include explicitly what we want
|
| |
|
| |
|
|
|
|
|
|
|
| |
Configure how we want to open an help buffer (on the left, with a
defined width), and let's jump to it.
Enable =visual-line-mode= for help buffers, otherwise it's unreadable.
|
|
|
|
|
| |
Once the initialization of our configuration is done, we start a shell
session with `eshell'.
|
|
|
|
| |
Otherwise the shell freeze every now and then.
|
| |
|
|
|
|
|
| |
Replace the prompt with `@<hostname>' when our current eshell path is on
a remote host.
|
|
|
|
|
| |
The default one is not working, and I don't think it's obvious to me
what it was anyway.
|
| |
|
|
|
|
|
|
|
|
| |
Add a new function (and a new binding) to export the latest output from
eshell to a buffer.
The code comes from
https://gitlab.com/protesilaos/dotfiles/-/blob/master/emacs/.emacs.d/prot-lisp/prot-eshell.el#L114
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Apparently org-bullets is not supported anymore
Signed-off-by: Franck Cuny <franck@fcuny.net>
|
| |
|
|
|
|
|
|
| |
Since on macOS the filesystem is not case insensitive, it means that a
file named `projects.org` will be associated with YAML if the regexp is
only `PROJECT`. Making the regexp more strict fixes this issue.
|
|
|
|
|
|
| |
Instead of having the active timestamp in the header, we can store it in
the drawer. There's not a lot of value for having this in the header, we
mostly care about the creation time for the agenda.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
For some reasons using `defvar` for the files does not work with the
agenda.
Rewrite the org-capture templates to specify the files instead of
relying on the variable, since it's not working (at least on linux with
emacs 27.2).
Add a custom command for the agenda, to see what I care about for the
week.
|
|
|
|
|
| |
- don't underline the highlighted line
- don't scale / change the font for the agenda
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Let's not worry about synchronizing files between machines, since I want
to dissociate work from personal stuff.
Let's reduce the amount of files managed by org, and let's have fewer
templates too.
|
| |
|
|
|
|
| |
Let's use HTTPS instead of SSH for all my projects.
|
|
|
|
|
|
|
|
|
| |
I'm going to deprecate the SSH endpoint for gitea, and use HTTPS instead
for accessing the repositories.
For this, I need to configure properly the credential part for the
different forges (github/gitea for now), and update the URL in the forge
configuration for emacs.
|
|
|
|
| |
Use it with the forge package.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
We need a `provide` and we should only configure it if the binary is
present.
|
| |
|
| |
|
|
|
|
| |
Don't use plain white for the background, but a very light yellow color.
|
|
|
|
|
| |
Don't use the current branch when building a link to sourcegraph, as we
might be on a feature branch that is not available on the remote.
|
|
|
|
|
|
| |
Since the hostname from the git remote is appended to
'sourcegraph.twitter.biz', we can get rid of the mapping and just build
the URL using `format`. This simplifies even more the solution.
|
|
|
|
|
| |
The function needs to be defined before we use it in the `use-package`
for go-mode.
|
| |
|
|
|
|
| |
It's useful to show errors across a project
|
|
|
|
|
|
|
|
| |
The mapping for git.twitter.biz was incorrect.
The package `git-link' has functions to take to format the URL for
sourcegraph, we don't need to maintain them on our end, which simplifies
a bit the code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This article [1] shows how to use sourcegraph with the package
`git-link'. However, it requires to modify the configuration of the
repository to add a new remote named 'git-link'. This is inconvenient,
and this can be automated.
This change adds a function to automatically generate the remote URL
when the remote origin of a repo is set to twitter.biz.
We also add the configuration for our own gitea instance.
[1] https://sideshowcoder.com/2020/07/02/opening-sourcegraph-from-emacs/
|
|
|
|
|
| |
This packages help interacting with various forges. We add a new entry
to the default list for our own gitea instance.
|
| |
|
| |
|
|
|
|
|
| |
When creating a new buffer for eshell with `fcuny/eshell-here` rename
the buffer using parts of the directory.
|
|
|
|
| |
From https://www.masteringemacs.org/article/complete-guide-mastering-eshell
|
|
|
|
|
|
|
|
|
| |
With zsh I report how long a command takes to execute when it takes more
than a few seconds, and it's pretty useful.
This article [1] shows how to do the same with eshell.
[1] https://www.birkey.co/2021-06-20-why-eshell-part-1.html
|
|
|
|
| |
It breaks every time I update the package.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Debug Adapter Protocol (DAP) is wire protocol to communicate between a
client and debug server. This is similar to LSP, but for debuggers.
This initial configuration focuses on enabling the mode and setting the
layout for the various buffers (in this case I want the different
buffers on the right screen and keep the main part focused on the code).
I also disable some widget to use the debugger with hydra.
There's still a number of things that are incomplete when it comes to
integrate DAP and delve (the go debugger): there's no way to call
functions, to have access to the variables, etc. But this is a good
start though, to debug simple problems without relying on print
statement.
This also update the configuration for =go= so that =M-x compile=, when
editing a go file, by default will use =go build=. This is not what I
always need / want but this is a good default.
|
| |
|