nixos
eglot
nixos | eglot | |
---|---|---|
7 | 66 | |
102 | 2,178 | |
- | - | |
8.6 | 3.0 | |
3 months ago | 4 days ago | |
Nix | Emacs Lisp | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nixos
-
The Framework Laptop 13
I enabled the pstate driver yesterday for my T14s gen3 (AMD). It almost doubled my battery life, the fan never spins anymore and it's very very quiet and cool now. You need to specifically enable it in Linux kernel, this is how I did it:
https://github.com/pimeys/nixos/commit/17e8a9e2ce4b0f34ef6cf...
It should also be used together with the `shedutil` governor for the best results.
-
What’s New in Emacs 28.1?
Wayland support didn't make it... Oh well it is in version 29.
I've been using the wayland version with libgccjit many months now from their git repo and it is extremely snappy and stable editor.
My strategy to keep all of this together is a nix derivation that compiles the latest master branch with all the plugin. Oh and my config is an org file with clear comments...
https://github.com/pimeys/nixos/tree/main/desktop/emacs
All reproducible...
Btw. I recommend SystemCrafters video series Emacs from scratch. It teaches how to make a vanilla emacs to work like doom emacs does. It was helpful for me to understand the magic behind doom...
https://m.youtube.com/playlist?list=PLEoMzSkcN8oPH1au7H6B7bB...
-
XMonad – The Automated Tiling WM
I kind of have a thing for ThinkPads, and I have three laptops with NixOS:
- ThinkPad X1 Carbon 2018 model. Even the fingerprint reader works with this one. And fractional scaling for the 4k monitor! Config: https://github.com/pimeys/nixos/blob/main/hosts/purrpurr.nix
- ThinkPad T25. Everything except the fingerprint reader works. https://github.com/pimeys/nixos/blob/main/hosts/muspus.nix
- ThinkPad X230: Everything works here. The classic workhorse. https://github.com/pimeys/nixos/blob/main/hosts/meowmeow.nix
I never tried anything else except ThinkPads just because I'd miss the TrackPoint a lot...
-
Bye Cups: Printing with Netcat
I used to dread setting up printers on any operating system. I've done it countless of times with Linux, Windows and macOS, and it's been quite common to have some kind of fight with the printer until I get my paper out.
Only recently, by buying a Brother laser printer at home, and setting all my machines to use NixOS, I haven't been needing to think about printer problems anymore. All I need is this piece of config, and the printer will Just Work with the new computer:
https://github.com/pimeys/nixos/blob/main/modules/home-servi...
-
Nix is the ultimate DevOps toolkit
I did a month, diving directly into the deep end with flakes and all. I don't know, it really is hard in the beginning. Like, really hard. But eventually I got myself a setup I could use in my two laptops and workstation. A setup, that sets my home directory, all my programs and my custom desktop just the way I want. Everything is in the github repo, and installing with the flake will give me the exact experience I have in my other machines.
I tend to use lots of custom tools and commands, that are really painful to install and setup for a new machine. With NixOS all of it is just one command away.
But, I agree, it is REALLY HARD in the beginning to grasp things.
Here's my configs if you want to see how I approached my own setup: https://github.com/pimeys/nixos
-
When Miguel de Icaza stopped using Linux
And I come here always to remind people in the Apple bubble, that there are big groups of us who are not thinking like that!
I'm also soon in my 40s and I had my Apple years between 2004 and 2010. I came back to Linux and kind of hate the word tinkering even. The current Linux system offers something that nobody else does: your own desktop just how you like it.
I have my configs in GitHub: https://github.com/pimeys/nixos
With this config, I can take any ThinkPad (that are plentiful, great HW and cheap), boot from USB and get the same exact desktop experience I've had for almost a decade now in twenty minutes.
And what kind of desktop? A minimal tiling window manager on top of Wayland. Exactly the applications I need. The same wallpaper as always. The same editor, the same browser, the same keyboard shortcuts, the same kernel params, the same internet setup. Sound? Always worked. With PipeWire, it even seems to work better than on my Windows installation (and replacing PulseAudio with PipeWire was a one line config change).
Now. There will be no product manager somewhere that will dictate how I use my computer. If something changes in my workflow, that comes from my configuration. Nowhere else. No advertisement for new products, no suddenly disappearing applications. If something breaks from an update, I just boot to the version before I started them and I'm back to the previous state. When updates are leaving me to a state I'm happy about, I commit them to that GitHub repo and they will work exactly the same until I decide to update again. And I run the master branch of NixOS which is breaking sometimes, and it's still much more stable experience I ever had with OSX...
Of course this is not for everybody, but please understand when celebrating the commercial offerings how there's so many of us who do not want a desktop experience dictated by product managers. Who are kind of conservative how our workflows should stay the same for years, or decades. And we are still super productive, doing our work and very happy using Linux.
I'm going to copy&paste this comment to every single Apple post from now on...
eglot
-
LSP could have been better
Recently I stumbled upon this issue:
https://github.com/joaotavora/eglot/discussions/1127
I don't know enough about emacs and LSP to see the full picture, but it seems that both eglot's and corfu's maintainers, assumably very competent programmers, can't find a solution for this.
I only skimmed the thread. My understanding is that LSP dumps a long list of completion candidates at once and they can't decide a cache strategy that works well with existing code...?
-
Spurious errors with Eglot / pylsp
It could be. There are unfixed issues with eglot and corfu, and sadly not a lot of willingness to investigate.
-
Using Quarto with Emacs
Eglot errors when I add new Python code blocks. The error disappears when I reconnect the language server, but the same happens again when I add a new code block. My "workaround" now is that before I start working on the .qmd file, I just add a bunch of Python code blocks (for which I also have a function) and then reconnect the language server again. This way I can start working for a while until I need to add more code blocks again.
-
Looking for help in improving Typescript Eglot, Corfu, Orderless performance
This discussion has helped with some performance issues: https://github.com/joaotavora/eglot/discussions/993.
-
Typescript highlighting in emacs incomplete (compared to VSCode) even after using treesitter?
I guess eglot doesn't support it yet: https://github.com/joaotavora/eglot/pull/839
-
joaotavora/breadcrumb: Emacs headerline indication of where you are in a large project
This is not by pure chance, João is the developer of the Eglot LSP client and the breadcrumbs from LSP-mode had been requested as a feature, but as far as I remember João thought rightfully that this could be an independent package, see https://github.com/joaotavora/eglot/discussions/988
-
Returning emacs user - what packages are common now?
A substantial section of the community is using corfu instead of company, but I wouldn't say company is out of date by any means. In emacs 29 eglot will be a built in, which might act as a replacement for lsp-mode depending on what functionality you need.
-
Eglot upgrade strategy
I am currently running emacs 29 (built from emacs-29 branch) which – according to https://github.com/joaotavora/eglot – should contain the latest eglot.
-
916 Days of Emacs
Yep. You can use flymake or flycheck for that in combination with eglot or lsp-mode.
See https://github.com/joaotavora/eglot#diagnostics
-
Eglot, eldoc and golang
(I have reported this (that is, ElDoc missing docs for callable things at point, when Eglot is enabled) as an issue recently: First on GitHub-discussions https://github.com/joaotavora/eglot/discussions/1200, then on Debbugs https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62687. But the threads are very long, so I don't recommend reading them.)
What are some alternatives?
asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
lsp-mode - Emacs client/library for the Language Server Protocol
river - [mirror] A dynamic tiling Wayland compositor
dap-mode - Emacs :heart: Debug Adapter Protocol
dotfiles - And I say hey, what's going on?
clangd - clangd language server
i3-alternating-layout - Scripts to open new windows in i3wm using alternating layouts (splith/splitv) for each new window
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
cups - OpenPrinting CUPS Sources
web-mode - web template editing mode for emacs
nixpkgs - Nix Packages collection & NixOS
company-mode - Modular in-buffer completion framework for Emacs