social.tchncs.de is one of the many independent Mastodon servers you can use to participate in the fediverse.
A friendly server from Germany – which tends to attract techy people, but welcomes everybody. This is one of the oldest Mastodon instances.

Administered by:

Server stats:

3.8K
active users

#emacs

136 posts117 participants4 posts today
HoldMyType<p><span class="h-card" translate="no"><a href="https://23.social/@alios" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>alios</span></a></span> <br>GOAL: or Isolated , interoperable env , shells by path, w/ central config cc</p><p>envs need not be interoperaple for different langs , say cc has a "devenv.lib.mkshell" for a rust tool `x` which is a runtime dep of epkgs 'ey`for rust work<br>Now If I enter this devshell with nix `develop ` and do a ` cargo install x` here <br>path of x is <br>&gt; .devenv/state/cargo-install/bin/<br>Do note that my PWD is not ${HOME} here.<br>&gt; But if I do a cargo install x from ${HOME} , it ll be in ~/.cargo/bin<br>Now lets say I install a melpapackages `ey` with my dotfiles' emacs.nix "emacs overlay`<br>It may be<br>`ls ~/.emacs.d/elpa/ | grep ey.elc` iff it's byte-compiled.<br> ey won't find it `x` , till you explicitly add this emacs load-path or to NIX-BUFFER's default.nix list of deps /project [This is just for the projects of 1 lang , nearly any serious work has &gt; = 2] ,<br>or write .envrc /per project , so no global devenv/devshell. <br>Not every dir need be byte compiled <br>Possible reasons<br>While - <br>1. Nix does follow the XDG specs, Emacs does not fully follow it for its configuration and data files.<br>2. NIx Does not follow FHS hierarchy, Emacs Does.<br>3. Nix build re reproducible.<br>4. Nix is content addressed , store (hashed) paths <br>nix-instantiate --eval-only --expr '(import &lt;nixpkgs&gt; {}).emacs.outPath', it could be emacs or go or cargo or whatever your need, it need not have .<br>Some of your emacs data can be here. But I care bout getting deps in the path</p><p>One possible way could be to write a global devshell just for my init.el and launch it from there. But it's not easily extendable , more langs' projects ll put me back to square one.<br>Just nix-buffer seems to unsustainable <br><a href="https://mathstodon.xyz/tags/nix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nix</span></a> <a href="https://mathstodon.xyz/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a></p>
Thomas Ingram<p><span class="h-card" translate="no"><a href="https://mastodon.social/@amszmidt" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>amszmidt</span></a></span> <span class="h-card" translate="no"><a href="https://mathstodon.xyz/@oantolin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>oantolin</span></a></span> This seems like an unwarranted response over a disagreement and is quite rude. </p><p>I regularly browse the <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> tag and can easily say majority of the posts are regarding GNU Emacs.</p>
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Rongzhao Yan, Paolo De Santis, and Maximilian Küffner for assigning their copyright to the FSF! More at: <a href="https://u.fsf.org/463" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">u.fsf.org/463</span><span class="invisible"></span></a> <a href="https://hostux.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> \<a href="https://hostux.social/tags/Wget" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wget</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
Philip Kaludercic<p>Neat and related: When writing HTML with some math, I don't really want to write MathML by hand (let alone depend on MathJax or something like that). LaTeXML turns out to be helpful again, specifically via the <a href="https://metacpan.org/dist/LaTeXML/view/bin/latexmlmath" rel="nofollow noopener noreferrer" target="_blank">latexmlmath</a> (which btw. can be used above as well, and <em>is</em> faster). Either way, I have quickly hacked together a function that uses <code>latexmlmath</code> to convert TeX-math in a comment into MathML:</p><pre><code>(defun mathml-from-tex () "Convert TeX in a comment to MathML in a buffer. The TeX has to be written in a single-line comment prefixed with a \"MathML:\" string. For example: &lt;!-- MathML: \frac{-b \\pm \\sqrt{b^2 -4ac}}{2a} --&gt; Everything until the end of the comment (or line) is passed to \"latexmlmath\" (part of the LaTeXML suite) and injected into the next line of the buffer. A comment indicating the end of the math block is also added, so that multiple invocations of the command can replace the old output." (interactive) (save-excursion (goto-char (line-beginning-position)) (unless (search-forward-regexp (rx (literal comment-start) (* space) "MathML: " (group (* nonl)) (literal comment-end)) (line-end-position) t) (user-error "No instruction found")) (if (eobp) (insert "\n") (forward-line 1)) (let ((end "EndOfMathML") ;TODO: use &lt;/math&gt; (math (match-string 1)) (start (point))) (when (search-forward-regexp (rx (literal end)) nil t) (delete-region start (line-end-position))) (save-excursion (insert end) (save-excursion (insert (if (eolp) "" "\n"))) (comment-line 1)) (call-process-region math nil "latexmlmath" nil t t "-")))) </code></pre><p>I also attach a quick demo, see below.</p><p><a href="https://commenting.onthe.incoherenceofthe.net/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> <a href="https://commenting.onthe.incoherenceofthe.net/tags/latex" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>latex</span></a> <a href="https://commenting.onthe.incoherenceofthe.net/tags/mathml" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mathml</span></a></p>
pavodive<p><strong>Spiral: a trainer package to learn elisp</strong></p> <p><a href="https://lemmy.ml/post/28768444" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">lemmy.ml/post/28768444</span><span class="invisible"></span></a></p>
takeonrules<p>“Automating Adding Books to My Org-Mode Document”</p><p>This post describes an <a href="https://dice.camp/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> workflow I designed and developed around scanning books into my book-tracking <a href="https://dice.camp/tags/OrgMode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OrgMode</span></a> document. It has, what I consider, a not-often-detailed use of `org-capture`.</p><p><a href="https://takeonrules.com/2025/04/17/automating-adding-books-to-my-org-mode-document/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">takeonrules.com/2025/04/17/aut</span><span class="invisible">omating-adding-books-to-my-org-mode-document/</span></a></p>
Craig Brozefsky<p>Spent the last couple days learning <a href="https://infosec.exchange/tags/HelixEditor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HelixEditor</span></a> as a contrast to my <a href="https://infosec.exchange/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> maximalist tendencies.</p><p>I managed to crash it once so far, with an out of bound Rope slice, but otherwise I am impressed with how much I can do with it even without plug-ins or a scripting language.</p><p>I especially like the match mode and the tree-sitter based movement.</p>
Omar Antolín<p><span class="h-card" translate="no"><a href="https://mastodon.social/@amszmidt" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>amszmidt</span></a></span> Really? You think the claim that the vast majority of Mastodon posts with the hastag <a href="https://mathstodon.xyz/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> are about GNU Emacs is "absolute nonsense"? You and I must not be seeing the same posts! :D That's exciting to me because I am curious to read more about non-Gnu Emacsen.</p>
Alfred M. Szmidt<p><span class="h-card" translate="no"><a href="https://mathstodon.xyz/@oantolin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>oantolin</span></a></span> Is GNUS part of Emacs (the text editor) or part of <a href="https://mastodon.social/tags/GNU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GNU</span></a> <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a>? Magit? Eww? Calc? </p><p>None of these are part of Emacs. They are separate programs, useful but separate.</p>
Alfred M. Szmidt<p><span class="h-card" translate="no"><a href="https://mathstodon.xyz/@oantolin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>oantolin</span></a></span> <a href="https://mastodon.social/tags/GNU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GNU</span></a> <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> implements Emacs, but also implements more (and less). Sometimes it goes against the idea of Emacs,</p>
Omar Antolín<p><span class="h-card" translate="no"><a href="https://mastodon.social/@amszmidt" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>amszmidt</span></a></span> Also you should probably take into account that empirically speaking the hastag <a href="https://mathstodon.xyz/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> on Mastodon means GNU Emacs specifically (at least the vast, vast majority of the time).</p>
Alfred M. Szmidt<p><span class="h-card" translate="no"><a href="https://mathstodon.xyz/@oantolin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>oantolin</span></a></span> Not all Emacs behaved that way, specifically TECO Emacs and LispM Emacs (ZWEI). Emacs is an extensible text editor, not a Lisp environment. This is not to be confused with <a href="https://mastodon.social/tags/GNU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GNU</span></a> <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a>, which is more.</p>
Alfred M. Szmidt<p><span class="h-card" translate="no"><a href="https://mathstodon.xyz/@oantolin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>oantolin</span></a></span> Emacs predates Lisp Machines. Emacs is an editor, nothing more or less. It is not a Lisp environment, or a Lisp implementation. </p><p>And yes, it is about Lisp, an extensible language. Emacs is special, but it is for other reasons. </p><p><a href="https://mastodon.social/tags/GNU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GNU</span></a> <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> is a far shot from <a href="https://mastodon.social/tags/LispM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LispM</span></a> <a href="https://mastodon.social/tags/LispMachine" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LispMachine</span></a>, and ZWEI is a far shot from <a href="https://mastodon.social/tags/GNU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GNU</span></a> <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a>.</p>
Crandel 🇺🇦 :arch: :emacs:<p><span class="h-card" translate="no"><a href="https://infosec.exchange/@mretka" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>mretka</span></a></span> I'm using <a href="https://fosstodon.org/tags/sway" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sway</span></a> wm on <a href="https://fosstodon.org/tags/archlinux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>archlinux</span></a> and <a href="https://fosstodon.org/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> for development</p>
Alfred M. Szmidt<p><a href="https://mastodon.social/tags/GNU" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GNU</span></a> <a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> is not a <a href="https://mastodon.social/tags/LispMachine" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LispMachine</span></a> <a href="https://mastodon.social/tags/LispM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LispM</span></a>. If you think that .. you're lost your editor.</p>
Charles Choi 최 민수<p>TIL you can compose a mail message in Emacs and have your external mail program send it .</p><p>(setopt send-mail-function 'mailclient-send-it)</p><p><a href="https://sfba.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a></p>
James Endres Howell<p><span class="h-card" translate="no"><a href="https://mathstodon.xyz/@oantolin" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>oantolin</span></a></span> There's tools and then there's tools. Before I got confident in <a href="https://fosstodon.org/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> <a href="https://fosstodon.org/tags/Lisp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Lisp</span></a> I used to use (may god forgive me) Excel to do stuff like this.</p><p>Which was, I hope we can agree, unambiguously better than not being able to automate those processes. But not ideal.</p><p>We have lost so much in thirty or forty years, worst of all the autonomy to automate.</p><p>"But it feels like something from the seventies!" Yes, correct, that is exactly how it feels. Like something I can understand, control, and USE</p>
Charles Choi 최 민수<p>My hot take on `use-package`: I stopped giving guidance on using it to setup Casual because it was too difficult for me to know what the “right” solution should be. Every competing opinion on how to use it was functional.</p><p><a href="https://sfba.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a></p>
Jack Baty<p>I like doing as much as I reasonably can within <a href="https://social.lol/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a>, but I don't buy the argument that this reduces "context switching" in any meaningful way. If I'm going to go from writing code to reading email, it's context switching whether I'm in the same app or not.</p>
Alex<p>This is for the <a href="https://hachyderm.io/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> experts:</p><p>I have `use-package-always-ensure` set to t.</p><p>Today I added a new (use-package).<br>The new package is not installed though.</p><p>Any ideas why it is not? <br>I was under the impression that adding the use-package would be enough. What am I misunderstanding?</p><p>\(^-^)/</p>