summaryrefslogtreecommitdiff
path: root/emacs/custom/fcuny-prog.el (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-24emacs: move function for go-mode-compileFranck Cuny1-5/+6
The function needs to be defined before we use it in the `use-package` for go-mode.
2021-08-24emacs: fix hook syntax for lsp-modeFranck Cuny1-1/+1
2021-08-24emacs: add lsp-treemacsFranck Cuny1-0/+5
It's useful to show errors across a project
2021-04-30emacs: enable staticcheck with lspFranck Cuny1-0/+8
2021-04-04emacs: configure compile modeFranck Cuny1-0/+11
2021-04-04emacs: configure dap-mode and compile-modeFranck Cuny1-1/+34
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.
2021-01-13emacs: no snippetsFranck Cuny1-1/+1
2021-01-04emacs: rename the directoryFranck Cuny1-0/+0
2020-12-09emacs: add binding for lsp's imenuFranck Cuny1-0/+2
2020-12-07emacs: update configuration for LSPFranck Cuny1-5/+13
I want to remap the prefix for `lsp-mode` from `<s-l>` to `<C-c l>`, since I'm already using super for i3. Diminish the mode, there's no need to have this in the modeline. Update some of the variables (some were deprecated / replaced with different names).
2020-06-18emacs: update prog moduleFranck Cuny1-14/+8
clean up and drop what I don't need
2020-06-18emacs: move puppet config to progFranck Cuny1-0/+5
clean up init.el from files I'm not loading.
2020-06-04emacs: drop hydra for prog modeFranck Cuny1-41/+1
I can't bother learning / remembering to use it. I'm removing it again from this configuration, and will drop it completely. There's no need to pull / maintain another dependency which will break if I don't use it.
2020-05-10emacs: stuff for goFranck Cuny1-9/+11
2020-03-19emacs: merge configuration related to prog-modeFranck Cuny1-10/+84
For the various prog-mode, merge the configuration into a single file so that it's easier to maintain (I guess ?)
2020-02-09lsp: add peek definition to hydra.Franck Cuny1-0/+1
2020-01-13emacs/prog: more cleanup for lsp/go.Franck Cuny1-4/+18
A few changes to the configuration related to go, mostly to drop some code that is not needed anymore. Add a few more bindings for LSP. Add `company-posframe`, which is a nicer UI for company.
2020-01-13emacs/prog: switch to lsp-modeFranck Cuny1-5/+35
Previously I was using the package `eglot` to provide LSP functionality. However, the package uses flymake for it, while my setup in general uses flycheck. Since lsp-mode supports both, I'm switching to ls-mode. I'm moving the code for company to the 'prog' module, so that all things related to general programming is in one location. Since I'm switching to lsp-mode mode primarily for go, I can also delete a bunch of extra functionality that is now provided by lsp-mode.
2019-12-23emacs: use eglot for LSPFranck Cuny1-0/+9
I'm giving LSP a try with go, and I've decided to go with eglot for now, instead of lsp-mode. I gave a try to lsp-mode and the configuration was not obvious, it was slow, it kept asking questions, and the UI was pretty awful.