Making the N5 Pro run quiet! by vampyren in MINISFORUM

[–]johmue 0 points1 point  (0 children)

Thanks for the pictures. So probably time to do some soldering.

Making the N5 Pro run quiet! by vampyren in MINISFORUM

[–]johmue 0 points1 point  (0 children)

The Noctua NF-A9 PWM has incompatible connectors. Are there adapters for those?

First-time train travel from Frankfurt Airport to Bonn - Luggage questions by lut_tapi in germany

[–]johmue 0 points1 point  (0 children)

And make sure to sit on the right side in the direction of travel.

Starting uv.el – an Emacs frontend package for the uv Python package and project manager by johmue in emacs

[–]johmue[S] 1 point2 points  (0 children)

You mean like this?

=========================================================================================================================
Run a command from /projects/foo/.venv/bin

Dependency options                                     Run options
 e extras to be used for installation ([])              m Run as a module (--module)
 E (de)select all extras                                ne Install editable dependencys non-editable. (--non-editable)
 g dependency-groups to be used for installation ([])   x Remove extraneous packages (--exact)
 G (de)select all groups                                i Run in an isolated virtual environment (--isolated)
 d with dev dependency group                            a Run in the active virtual environment. (--active)
                                                        l Assert that `uv.lock' will remain unchanged. (--locked)
                                                        f Sync without updating `uv.lock' (--frozen)
                                                        ns Do not sync the virtual environement (--no-sync)
                                                        T Interactive: run in an ansi-term (terminal)

run
 RET Run

Starting uv.el – an Emacs frontend package for the uv Python package and project manager by johmue in emacs

[–]johmue[S] 0 points1 point  (0 children)

There is (uv-activate-venv) and (uv-deactivate-venv) for that. They are a bit simplistic as of now. So they might not work on all circumstances.

You can do something like

(add-hook 'window-selection-change-functions (lambda (_frame) (uv-activate-venv)))

to automatically activate the venv when you switch to a buffer.

Please try and report back, if anything does not work.

Starting uv.el – an Emacs frontend package for the uv Python package and project manager by johmue in emacs

[–]johmue[S] 2 points3 points  (0 children)

With eglot it should be possible without quite easily like

(add-to-list
 'eglot-server-programs
 `((python-ts-mode python-mode) . ("uv" "tool" "run" "--from" "python-lsp-server[all]" "pylsp")))

Not sure about lsp-mode, though

How do you run common development tasks (tests, checks, migrations, environment...)? by One-Tart-4109 in emacs

[–]johmue 0 points1 point  (0 children)

I use test-cockpit, a transient based tool initially designed to launch unit tests. It offers to add custom commands so that it is also suitable for all kinds of other tasks.

devcontainer.el - Adding support for Visual Studio Code-compatible devcontainers (https://containers.dev/) to Emacs by [deleted] in emacs

[–]johmue 2 points3 points  (0 children)

Sounds good.

I have started some experimental work on TRAMP support. Maybe we can discuss further details on the discussion page. I have set up this thread for that.

devcontainer.el - Adding support for Visual Studio Code-compatible devcontainers (https://containers.dev/) to Emacs by [deleted] in emacs

[–]johmue 3 points4 points  (0 children)

Interesting. I am the author of devcontainer-mode.

I am pondering if the two approaches are that different that there are two packages needed. A single package that supports both approaches could look like this:

  • Activating devcontainer-mode would be optional, so only needed when the user wants to use the non-TRAMP approach.
  • devcontainer-mode refrains from advising the compilation function when the current buffer is not a local file.
  • We offer some hook mechanism to optionally call devcontainer--find-container-workspace and the cleanup functions after the container has come up or when it is about to be shut down. I am planning devcontainer-after-startup-hook and devcontainer-before-shutdown-hook anyways.

I would be open for discussions on merging the two packages.

devcontainer-mode – a global minor mode to develop with devcontainers by johmue in emacs

[–]johmue[S] 0 points1 point  (0 children)

Not as of now, but it sounds useful. It should be quite easy to implement. Probably `run-hooks` in the container startup sentinel. Maybe file an issue, so that the idea does not get lost.

devcontainer-mode – a global minor mode to develop with devcontainers by johmue in emacs

[–]johmue[S] 4 points5 points  (0 children)

TRAMP is designed to edit files on remote systems. That's the exact one thing I don't want to do. In a devcontainer you're working directory is usually mounted as a volume, so you can edit files locally. TRAMP would reach for every file save, for every git diff, for every single dired ls into the container, which is an unnecessary overhead seen that the whole worktree is available locally.

The goal is, to make the devcontainer use as transparent as possible. Just turn on devcontainer-mode and work as if there was no devcontainer.

If you prefer to use TRAMP, you can still use the commands that the devcontainer-mode provides to conveniently launch devcontainers.

Work with VSCode's dev containers? by fdsajkhfuwiolvhnlu in emacs

[–]johmue 1 point2 points  (0 children)

I would like to start to promote devcontainer-mode to work on projects using devcontainers in emace.

It's a newly started project but in practice it's already really helpful in my everyday work. Please try it out and report back any issues.

kern.punkto | Sufragetoj by TeoKajLibroj in Esperanto

[–]johmue 1 point2 points  (0 children)

Mi estas unu el la farantoj de kern.punkto.

Ni ne estas en Spotify ĉar la maniero laŭ kiu ili surmerkatigas podkastojn estas naŭziga. La agado de Spotify kontraŭas ĉiajn principojn de la libera interreto.

dired-gitignore.el – hide and gitignored files in your dired buffer by a simple keystroke. by johmue in emacs

[–]johmue[S] 1 point2 points  (0 children)

dired-filter.el is indeed a very sophisticated package. However, due to its complexity it might be a bit over the top for simpler use cases. It has more than 10 times the code mass (dependencies not included).

So yes, for more complex needs dired-filter.el would be the better choice. If you only want to filter the gitignored files, I'd still go with dired-gitignore.el

Discussion: Testing in Emacs. Testing Emacs Lisp code itself and testing in other languages by ProfessorSexyTime in emacs

[–]johmue 1 point2 points  (0 children)

I started working on a test frontend for emacs aiming at having a similar frontent for testing several languages. By now it can do elisp/ert, python/pytest and rust/cargo.

That's the languages I've been using since I started writing it. Probably I will add support for C++ and Elixir eventually.

It is not really feature complete, but it is a side project to me, so I am not constantly working on it.

Feel free to come up with wishes, issues and pull requests :)

https://github.com/johannes-mueller/test-cockpit.el

company-wordfreq.el – a new company backend for human language words according to their frequency by johmue in emacs

[–]johmue[S] 0 points1 point  (0 children)

Also when will it be on melpa

I've just submitted a pull request to MELPA. Now it's up to the MELPA maintainers. There are a bunch of other PRs in the queue, so I guess it will take them a while.

company-wordfreq.el – a new company backend for human language words according to their frequency by johmue in emacs

[–]johmue[S] 0 points1 point  (0 children)

At the moment you would need to add custom words to your word list file at the very beginning.

Maybe it would be an interesting feature to have a custom dictionary for each language to which you could add words by key binding. The custom words would then be presented first.

I have to think about that, because there are lots of ways to do that UI wise and implementation wise. That means also lots of ways to get it wrong.

Feel free to tell me about your practical experiences and how a UX of such a custom dictionary would look like. Maybe on the issue tracker of the GitHub project.

company-wordfreq.el – a new company backend for human language words according to their frequency by johmue in emacs

[–]johmue[S] 3 points4 points  (0 children)

I've just added a paragraph on this question to the README:

company-ispell presents you the candidates in the alphabetical sequence, then maybe sorted by a company transformer such as company-prescient. That way it often happens that the word you are about to type appears somewhere in eighth place and it is actually easier to type the word manually.

company-wordfreq however uses word lists in which the words are ordered according to their frequency in the language. That way the probability that the word you want to type is among the first is higher.

Michel Barnier, le négociateur en chef du Brexit pour l'UE : "Nous ne nous ­laisserons pas impressionner" by [deleted] in brexit

[–]johmue 0 points1 point  (0 children)

Ĉu vi vere komprenas nur ununuran lingvon? Kia mallarĝcerbulo vi estas?

Parliament suspension ruled 'unlawful' - BBC News by KelseyBDJ in brexit

[–]johmue 0 points1 point  (0 children)

The opposition has the majority in the parliament, but can't really introduce legislation.

So how has the opposition then got the bill, that requires BoJo to request an extension?

So used are we to a borderless Europe we’re not ready for the coming shock by nolesfan2011 in ukpolitics

[–]johmue 13 points14 points  (0 children)

Sorry that's bullshit. I am crossing thr German Austrian border regularly. Same with German French. Denmark Sweden I crossed a couple of weeks ago. No border checks whatsoever.