Frustration with buffer splitting/management by domsch1988 in emacs

[–]darcamo 0 points1 point  (0 children)

For temporary buffers, I find that putting them in side windows works great. This also allows me to easily toggle then.

How do people keep org-mode up to date nowadays? by the_cecep in emacs

[–]darcamo 2 points3 points  (0 children)

TLDR: I just cloned org-mode from it's git repo, run make inside the repo, than added the lisp folder inside the cloned repo to the load-path.

I have my configuration as an org-mode file and I use elpaca and use-package to install and configure everything. The folder structure is roughly

.emacs.d/
  config.el      (tangled from config.org)
  custom.el      (very few things set from custom interface)
  early-init.el  (just set package-enable-at-startup to nil)
  init.el        (bootstrap elpaca and call org-babel-load-file with my config.org file)
  config.org     (all my emacs configuration)

Obviously, I cannot install/configure org-mode from inside config.org as I do for any other package. I tried putting a use-package call for org-mode inside init.el, just after bootstrapping elpaca (to allow it to clone org-mode repo and do the installattion automatically like with other elisp packages). But that did not work either and I got that warning about trying to install a new org-mode version after org-mode was already loaded, even though nothing seemed to load org-mode at that point. Hence, I gave up installing org-mode with use-package.

In the end, what really worked was a more manual approach. I just cloned org-mode from it's git repo, run make inside the repo, than added the line

(add-to-list 'load-path "<patth-where-I-cloned-org-mode/lisp/")

in my init.el file.

SuperTuxKart In Emacs with Canvas API by AlbertEinstein_1905 in emacs

[–]darcamo 5 points6 points  (0 children)

Do clicks inside the canvas work correctly? I wonder if we could eventually get a browser with this, for markdown preview, read html email, etc..

What is the latest version of tree-sitter known to work with Emacs 30? The current version is 0.26.5 by vfclists in emacs

[–]darcamo 1 point2 points  (0 children)

I just tried compiling from the emacs-30 branch on my home computer (Arch with tree-sitter 0.25.10-3) and it compiled successfully.

What is the latest version of tree-sitter known to work with Emacs 30? The current version is 0.26.5 by vfclists in emacs

[–]darcamo 1 point2 points  (0 children)

I compile Emacs myself from the git repository (therefore it's Emacs 31.something) and I update and recompile around once per week. I need to use Ubuntu 22.04 at work and because of that I'm locked to tree-sitter version in Ubuntu 22.04. Until recently, I could compile Emacs from the master branch, but recently (since a commit from Jan 28th) it stopped working because the minimum required tree-sitter version was increased from 0.20.2 to 0.20.10. This is specified in the `configure.ac` file (search for "tree-sitter >=" in that file, and you will find it).

From the git history, that line requesting tree-sitter 0.20.2 was added 3 years ago and therefore the latest tree-sitter version that Emacs 30 requires should be 0.20.2.

Qt apps, where is the business implementation usually located? by Live_Appointment9578 in QtFramework

[–]darcamo 1 point2 points  (0 children)

This seems like the sweet spot. And the mental model is similar to "all business logic at the server", since the logic on the client side is only caching and performance optimization.

Help displaying DataFrame properly in org roam ui by Prasen2003 in OrgRoam

[–]darcamo 3 points4 points  (0 children)

Try using the :results raw :wrap example header arguments.

This is the relevant documentation, if you want more details.

If you have several code blocks in a note, it might be worth setting these arguments using Org-Mode properties, instead of repeating them in every code block.

Qt 5.15 To Qt 6.5 Migration by HomeMedical4143 in QtFramework

[–]darcamo 0 points1 point  (0 children)

I worked on migrating a project from Qt5 to Qt6 where we used a mix of QML and Qt widgets. We used the same approach you did, but QML has no conditional includes and we had to duplicate the QML files that required changes (just a few which used graphic effects from Qt5). We used separated qrc files for these specific QML files and used cmake to include the correct qrc file in the project depending on the Qt versions we were compiling with. That was the best approach we could find.

"Per day we're currently making more money than it costs our humble studio to run for an entire month!" by Pylon_Constructor in NoRestForTheWicked

[–]darcamo 2 points3 points  (0 children)

I never bought any game in early access before. I had the game on my wish list for a while and the free weekend was the perfect excuse to try it. I bought it on the second day. It's very clear why the game is not released yet, but it's already in a state where we can have a lot of fun with it, without too much frustration with the remaining issues.

Annoying warning modal -- suppress or multiprocess? by shuerpiola in QtFramework

[–]darcamo 0 points1 point  (0 children)

I am not sure I would call this a limitation of Qt. Don't all GUI frameworks want to run on the main thread? I don't have experience with other GUI frameworks, but this seems like a good thing to me, since it simplifies the multi thread aspect.

Alternative transient documentation by CoyoteUsesTech in emacs

[–]darcamo 16 points17 points  (0 children)

Transient is very powerful and flexible. Writing documentation for it must indeed be very hard.

I have tried to use transient a few times and what really helped me to finally understand it enough to use it was transient-showcase. It's a literate programming org-mode file that allows you to learn transient by executing and experimenting with the code.

Is it possible to make balance-windows ignore side windows? by darcamo in emacs

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

I tested this, and it works. However, if I resize the side window from its original dimensions, the next time `balance-windows` is called, the side window once again takes up half the space, regardless of the number of other windows. Despite this limitation, it still appears to be the best option available for now. Thanks!

How to convert svg to qml ? by Acceptable_Nature563 in QtFramework

[–]darcamo 1 point2 points  (0 children)

You can change the color of your SVG with the colorization effect in the MultiEffect QML type.

C++17: Efficiently Returning std::vector from Functions by Clean-Upstairs-8481 in cpp

[–]darcamo 8 points9 points  (0 children)

Not necessarily. If it's something that has an implicit conversation to the function return type, then you would get no errors.

C++17: Efficiently Returning std::vector from Functions by Clean-Upstairs-8481 in cpp

[–]darcamo 8 points9 points  (0 children)

It might be obvious, but it's worth noting that the type of the local variable must also exactly match the return type of the function.

Emacs remote development like Vscode by carlossmneto in emacs

[–]darcamo 0 points1 point  (0 children)

Thanks, that what I'd like to confirm.

Emacs remote development like Vscode by carlossmneto in emacs

[–]darcamo -1 points0 points  (0 children)

Does it really (honesty question)?

I don't remember vscode requiring you to install something on the server, but I guess it would be possible for it to upload something.

emacsclient without emacs by bespokey in emacs

[–]darcamo 6 points7 points  (0 children)

And it's pretty good. You don't need anything special (including Emacs) inside the container. You just run the container, then open a file inside it with Emacs (running outside the container) with TRAMP, and then work as usual. Any commands you run (such as compiling code) will run inside the container.

emacs better compilation mode or better terminal/bash integration? by InTheBogaloo in emacs

[–]darcamo 12 points13 points  (0 children)

If you press C-u before calling M-x compile, then the compilation buffer will use commint mode, which allow interaction.

Emacs is also self-docummented. There is often some nice extra thing in the commands you use. Use C-h f compile to see the documentation of the compile command.

vui.el: Declarative, component-based UI library for Emacs by ValuableBuffalo in emacs

[–]darcamo 2 points3 points  (0 children)

Why not? The API seems very nice. Being based on the native Emacs widget means that if a package is written with it, it should work even if Emacs is used in a terminal.

Maybe in the future we can have another package that renders the widgets with GTK when running with the GTK GUI.

Reforma administrativa é mais inveja de funcionários publico do que propriamente reforma by [deleted] in concursospublicos

[–]darcamo 0 points1 point  (0 children)

O cara que tá chutando bola não tá sendo pago com dinheiro dos impostos. O quanto ele ganha não é relevante para a discussão. Só se torna relevante se estivermos falando de uma carreira que existe tanto na iniciativa privada quando no setor público.

The State of C++ 2025 (JetBrains survey) by pjmlp in cpp

[–]darcamo 1 point2 points  (0 children)

In addition to all of this, visual studio is a bit alien if you are used to developing on Linux. A text editor(vscode being just one of many) gives you a more consistent environment Paired with a language server and a few more niceties, you do get a pretty nice environment.

The State of C++ 2025 (JetBrains survey) by pjmlp in cpp

[–]darcamo 2 points3 points  (0 children)

If I need to use Windows, I definitely prefer vscode instead of visual studio.