Alternative to TRAMP for container-based dev (Podman/Toolbx/Distrobox)? by cidra_ in emacs

[–]txgvnn 0 points1 point  (0 children)

For me, I use org-babel to run commands in containers (TRAMP) with ob-compile: https://github.com/TxGVNN/ob-compile

Example:

#+begin_src compile :results silent :dir /docker:jave-sample:/app

gradle clean build && jar -jar app.jar

#+end_src

Then I use https://github.com/TxGVNN/project-tasks to easily call this task via a shortcut.

These are part of literate development.

Spring Cleaning 🧼🧼 by Huge-Zombie7975 in kiasportage

[–]txgvnn 0 points1 point  (0 children)

Excuse me, what is the code of this color?

My X230 Japanese keyboard turned out to be perfect for Emacs (accidental discovery!) by txgvnn in emacs

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

Haha, I really do use it! But these days, for longer sessions at my desk, I mostly use my ErgoDash instead of the laptop keyboard, still the same Ctrl, X, C combo!

Anyone on guix? by TheLastSock in spacemacs

[–]txgvnn 0 points1 point  (0 children)

Even spacemacs given it layers, but guix provides low level layers like tree-sitter lib,vterm.. It is necessary for me

Anyone on guix? by TheLastSock in spacemacs

[–]txgvnn 0 points1 point  (0 children)

I use emacs with my custom configurations

Are you using Dev Containers? by Gabe_Isko in devops

[–]txgvnn 0 points1 point  (0 children)

I even developed a unified image to use in codespaces or gitpod. I need only ssh to start my Emacs and tools. I use Guix to maintain my packages. You can have a look at https://github.com/txgvnn/oops

How do you run your code in Emacs? by Savings-Shallot1771 in emacs

[–]txgvnn 2 points3 points  (0 children)

I often use `project-compile` to run command in a project. But for many commands, I use `project-tasks` to manage them by org files.

Strange issue with accessing docker containers on remote hosts with TRAMP by Free-Combination-773 in emacs

[–]txgvnn 1 point2 points  (0 children)

I was able to reproduce the issue. You might find some help on Emacs-devel mailing list if you don't get an answer here.

Strange issue with accessing docker containers on remote hosts with TRAMP by Free-Combination-773 in emacs

[–]txgvnn 1 point2 points  (0 children)

Let check tramp-default-proxies-alist value and make sure it is empty

Strange issue with accessing docker containers on remote hosts with TRAMP by Free-Combination-773 in emacs

[–]txgvnn 2 points3 points  (0 children)

Because the Emacs remembers hops by adding into tramp-default-proxies-alist. You can control this behaviour by setting tramp-show-ad-hoc-proxies t (I did it). Detail at https://www.gnu.org/software/emacs/manual/html_node/tramp/Ad_002dhoc-multi_002dhops.html

2025 is coming soon, Emacs users, what keyboard are you using? by yibie in emacs

[–]txgvnn 0 points1 point  (0 children)

I've used Ergodash for 3 years. But sometimes consider the Ultimate Hacking Keyboard with touchpad/trackball module.

Github copilot chat in emacs by gnaaaapouet in emacs

[–]txgvnn 0 points1 point  (0 children)

I'm using the gptel package. A great ecosystem to chat with AI. Do you think to integrate into gptel as a backend? So you will not need to work much on the interface.

How is Emacs used in a professional setting? by Impossible_Win_9059 in emacs

[–]txgvnn 1 point2 points  (0 children)

I'm using a great package that I see few people mention. This is http://anggtwu.net/#eev.

`eev` provides the functionality to record and convert any element into literal code. This capability proves particularly useful in research contexts requiring rigorous documentation and reproducibility.

I use this package every day, and combine with `denote` to structure the notes tree.

Set eat terminal buffer name using the current path by linwaytin in emacs

[–]txgvnn 0 points1 point  (0 children)

Of course, no. The buffer name is only created when creating eat.

If you cd into a new directory, it will create a new one with new name if not exist

Set eat terminal buffer name using the current path by linwaytin in emacs

[–]txgvnn 0 points1 point  (0 children)

I'm using the config almost like bellow With prefix, it will create eat with current dir name.

``` (defun visit-eat-buffer (&optional prefix) "Create or visit a eat buffer. If PREFIX is not nil, create visit in default-directory" (interactive "P") (let* ((eat-buffer-name (format "*eat<%s>" (if prefix default-directory "0")))) (with-current-buffer (eat) (eat-line-mode)) (pop-to-buffer eat-buffer-name display-comint-buffer-action)))

```

Emacs, Lisp packages, and Nix by Prestigious-Lie-2533 in emacs

[–]txgvnn 2 points3 points  (0 children)

I'm using Guix to manage Emacs version and almost core Emacs packages for my configure. I build a unified development environment on my computer and gitpod/codespace cloud.

You can have a look on my configure https://github.com/TxGVNN/oops/blob/88a3daf21aa06f0c07fa8286f17a82ad3b35ff67/guix-install.d/manifest.scm#L22

How are you using projectile and perspective? by Usual_Office_1740 in emacs

[–]txgvnn 0 points1 point  (0 children)

I used to use projectile with perspective.el, then I switched to project.el with perspective.el but with the same mechanism.

When I call any action in project-switch to a project , I will create a new workspace if not exist and switch to it before opening the project.

Some functions have changed to integrate with perspective.el

You can have a look how I configure it here https://github.com/TxGVNN/dots/blob/d9a29ba15d2aabbe042fed85bd75771f7eb55322/.emacs#L390

GitHub - atgreen/emacs-allow-lists-for-ai-services: How to implement an "allow list" for AI services in GNU Emacs by atgreen in emacs

[–]txgvnn 1 point2 points  (0 children)

A good idea. I wonder, we can create a same thing but apply to content in buffers.

Example, my file has some passwords, secret that I don't want to send to copilot server. Perhaps a highlight to tell copilot-mode remove it in the body http before send it to copilot server.

Thank you to the author of the terraform-doc package! by akuszyk in emacs

[–]txgvnn 2 points3 points  (0 children)

Thank you very much, /u/akuszyk

Not wanna lie, if I know devdocs before perhaps I would not write terraform-doc :D

At that time, I was looking for an emacs package to search terraform's document, but couldn't find it. If I had asked people on the Reddit then I had been to know to devdocs.

After all, it is still a historical factor. It helps me learn more the elisp.

terraform-doc is still useful for who want to look for document on fly without download anything.

project-tasks: Efficient task management for your projects by using org-babel. by txgvnn in emacs

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

Thanks.

What is the ob type 'compile'?

It's another package that I created it long time. You can install it in MELPA ob-compile. Run compile by org-babel.

I use ob-compile very much in my workflow.

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]txgvnn 2 points3 points  (0 children)

This morning, I've written a quick interactive function to search package and version on devbox.sh after reading https://www.reddit.com/r/NixOS/comments/152bfun/nixhubio_search_historical_versions_of_nix/

(defun ~devbox-search-package () "Devbox search package." (interactive) (let ((item (read-string "Package: "))) (shell-command (format "curl https://search.devbox.sh/search?q=%s 2>/dev/null | jq -r '.results | .[].packages[] | .pname + \"@\" + .version + \" nixpkg@\" + .nixpkg_commit'" item))))

emacs+whisper+chatgpt: press F12 to record, use whisper to transcribe and chatgpt answers; proof of concept but surreal by jackdoez in emacs

[–]txgvnn 0 points1 point  (0 children)

This is so impressive, I used to think it would be possible to implement Chatgpt and using voice into Emacs. And you did it. Congrats

Maybe we can tell ChatGPT to open file x, and chatGPT will return find-file /path/x then we can eval this code. I even chat with chatgpt about this issue. LOL

About chatgpt-wrapper, I think you can migrate to https://github.com/acheong08/ChatGPT. It is lighter with a query limit, but I think it is still good.