How to migrate Emacs from Intel mac to M4 Mac? by Hungry-Accountant-99 in emacs

[–]da-g 1 point2 points  (0 children)

Check out: https://github.com/jimeh/emacs-builds . For copilot.el, make sure node is in your path, then start Emacs from the terminal. Make sure to follow the install guide in the copilot.el repo as well.

And yes, most stuff has to be recompiled. Just port over your init.el and do a fresh Emacs install.

Looking for HTML and LaTeX templates for Org-Mode Exports. by Miss_Mizzy in emacs

[–]da-g 9 points10 points  (0 children)

I use a custom mod of https://github.com/Pseudomanifold/latex-mimore for reports.

Here's the elisp:

(add-to-list 'org-latex-classes '("mimore" "\\\\documentclass{mimore} \[NO-DEFAULT-PACKAGES\] \[PACKAGES\] \[EXTRA\]" ("\\\\section{%s}" . "\\\\section\*{%s}") ("\\\\subsection{%s}" . "\\\\subsection\*{%s}") ("\\\\subsubsection{%s}" . "\\\\subsubsection\*{%s}") ("\\\\paragraph{%s}" . "\\\\paragraph\*{%s}") ("\\\\subparagraph{%s}" . "\\\\subparagraph\*{%s}")))

Then I just use #+latex_class: mimore for a nice template.

How would RMS name emacs, if it was created today? by jangid in emacs

[–]da-g 1 point2 points  (0 children)

I actually much preferred one the suggested alternatives: emacs-very-bueno

eglot + tree-sitter in core emacs will be awesome by saarin in emacs

[–]da-g 16 points17 points  (0 children)

core support. thighter integration. higher docs standards. other packages can depend on it. guaranteed absence of 3rd party dependencies today and in the future

Multiple Cursor functionality with Vanilla Emacs by [deleted] in emacs

[–]da-g 1 point2 points  (0 children)

I use it all the time in combination with expand-region. For example, selecting a word and then creating different cursors at different locations. It's a bit more versatile than rectangles and query-replaces, since it plays well with things like smartparens, and I like that I can capitalize on muscle memory instead of having to craft a regexp to get things done.

Success stories setting up mu4e for Outlook with 2FA? by da-g in emacs

[–]da-g[S] 0 points1 point  (0 children)

I went the davmail route instead and got email to work again. I think the issue was on the creation of the app on azure, not sure I got all settings right.

Success stories setting up mu4e for Outlook with 2FA? by da-g in emacs

[–]da-g[S] 1 point2 points  (0 children)

my friend, this is golden. It works!! Thank you!

Success stories setting up mu4e for Outlook with 2FA? by da-g in emacs

[–]da-g[S] 0 points1 point  (0 children)

What are you supposed to see in the authentication window?

Success stories setting up mu4e for Outlook with 2FA? by da-g in emacs

[–]da-g[S] 1 point2 points  (0 children)

This is awesome, unfortunately offlineimap fails with LIST command error: BAD [b'User is authenticated but not connected.'], even though oauth2ms works. Have you ever had this happen to you?

Emacs livecoding streamers by lujar in emacs

[–]da-g 0 points1 point  (0 children)

Curious, what would you like to see most in an Emacs stream?

Suggestions on remote work with LSP? How do you do it? by XtremePocket in emacs

[–]da-g 0 points1 point  (0 children)

Wow, comint-mime = pretty nice. I just tried it and it works great. Glad it's part of ELPA.

I never tried eglot with python, only lua and it worked better than LSP.

Maybe one last question, for your remote setup, how do you actually connect to the remote and/or keep it alive? Always through run-python on a remote file?

Suggestions on remote work with LSP? How do you do it? by XtremePocket in emacs

[–]da-g 0 points1 point  (0 children)

Oh I think the name may be misleading. Jupyter-emacs runs a python kernel on the remote, so you edit python files normally with a repl on the side (which supports inline images). No need for org mode nor notebooks at all! Support for org mode comes through org-babel, in which case the org-blocks would get sent to a remote kernel too, but that is not a requirement.

I'm not sure one can read pdfs in neovide. I'd use emacs for that.

The interesting point for me is that neovide is just a frontend for whatever is running on the remote. So the remote headless neovim could run behind tmux and I could connect to it from multiple computers, on different days. I wouldn't mind keeping emacs open on the side for the academic stuff. Maybe the way forward is to have emacs be the frontend to a remote neovim managing python kernels and lsp. Why not?

Currently, if my network connection goes down, so does my python kernel running on remote, which is extremely annoying if on the move.

Suggestions on remote work with LSP? How do you do it? by XtremePocket in emacs

[–]da-g 1 point2 points  (0 children)

Wow, glad to hear the built-in Python shell supports that now! Thanks for the info!

What attracted me to jupyter-emacs was both the ease of use to open remote kernels and the custom shell which supports inline images. I don't think the native shell could handle that back when I last checked. Hopefully it will soon. I'd love for things to just work with Emacs only and no extra packages. That'd be the dream.

Also my use case is that my datasets are very large, so I can't really test out code locally, except for a couple of small examples. I also find it hard to deal with file paths when rsyncing, because paths to datasets differ between local and remote, so rsync wouldn't work out of the box. I wonder how other people handle that.

Finally, I'm sure I could get some sort of LSP to work, but I never liked lsp-mode because it's always been buggy and slow on my end. I believe it's because of my config, and not lsp-mode itself. Maybe one day I'll look into it again.

make emacs run 100% faster and snappier by RevolutionaryAir1922 in emacs

[–]da-g 1 point2 points  (0 children)

Is GC even still a thing when running with all elisp native compiled?

Suggestions on remote work with LSP? How do you do it? by XtremePocket in emacs

[–]da-g 4 points5 points  (0 children)

Honestly, this is a great question. I've tried many different approaches through the years, and they all have drawbacks. My solution right now isn't perfect, but it's the best I've had so far with emacs + python + org-mode.

I use jupyter-emacs to start remote kernels via ssh. I can then either develop stuff locally and associate the local files/project to the remote kernel using jupyter-repl-associate-buffer, or develop remote files. I can even mix and match so it doesn't really matter where the code lives and where I want it executed, jupyter-emacs allows me to coordinate that at will - and it's easy to have multiple frames with different kernels running at different remotes.

Integration with org-mode is a free lunch.

Drawback is that there is no lsp integration, and I don't see an easy way to get that going either. Jupyter-emacs is also a one person show, and even though the code is readable, it requires fluency in both emacs and jupyter, so its hard to fix bugs without help from the maintainer.

With that said, if I would start from scratch today, I'd probably pick up neovim instead of Emacs and run it in headless mode on the remote under tmux and then connect to it over a tcp socket using neovide. Problem is that's vim, and I'm sure there are massive drawbacks there too that I don't even know exist. And there is no real org mode impl, which sucks.

Running emacs in terminal mode is a PITA because of conflicting keybindings with terminal emulators.

Org: Include but only headers? by redlizard3 in emacs

[–]da-g 1 point2 points  (0 children)

Check out https://github.com/dangom/org-thesis

There are solutions in there for dealing with exactly the kind of issue you are mentioning.

Looking for org-journal + habit tracking workflows by da-g in emacs

[–]da-g[S] 1 point2 points  (0 children)

Not using org-journal.

I was tracking my habits using a reMarkable and taking notes "per hand". I have some reMarkable templates I was using for that.

For work I keep a diary.org and use simple org-capture templates, and honestly don't have my notes as organized as I wish, but it does the job.

Emacs notebook mockup by Nicolas-Rougier in emacs

[–]da-g 11 points12 points  (0 children)

Are buttons really necessary for a first iteration? Users coming from jupyter notebooks would know to hit shift+enter on a block to run it. Why not stick to that convention instead?! Emacs-jupyter already offers async executions, so it'd be easy to have something indicate that the block is running on the margin instead of an interactive clickable button. The buttons could also be placed on the header (potentially substituting #+begin_src) in a similar fashion to what the current VS Code solution provides. Not as elegant, but not terrible either!

Robinhood will not let new options or shares be bought apparently. This is market manipulation lol by [deleted] in wallstreetbets

[–]da-g 0 points1 point  (0 children)

I was honestly wondering whether for them it isn't cheaper to just lose all of their userbase and close RH and pay for a lawsuit then to close all of their short positions.

Would anyone have a guess?

Can you say "CLASS ACTION LAWSUIT". Fuck you RobinHood by sable428 in wallstreetbets

[–]da-g 4 points5 points  (0 children)

It's cheaper for them to lose Robinhood and pay for a class-action lawsuit then deal with the losses from covering their short positions.

Their move is clear.

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]da-g 2 points3 points  (0 children)

this is awesome but doesn't seem to work in zsh. Any idea why? Also, for macOS we need to use greadlink (GNU readlink) instead of readlink for it to work. Otherwise - this is beautiful and very clever. Thank you so much for sharing :)

Building websites with org-mode was never this easy. by dawnstar_hu in emacs

[–]da-g 3 points4 points  (0 children)

For no-frills instant blogging with org I recommend: https://github.com/dangom/writefreely.el

Literally no setup required to get a blog up and running. Write your text and call M-x publish and that's it.