mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#emacs

124 posts110 participants13 posts today
YankeeDoodleAndy<p>Anyone have a fun way to enable minor modes based on file name or directory in <a href="https://hachyderm.io/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a>? I could add file/dir-local variables, but I'd rather set this in my config. I'm essentially looking for the :mode keyword in use-package but for minor modes. I could always set a find-file-hook I guess but I feel like I'm missing something "better".</p>
ThierryStoehr<p>[Linux Arverne] Il y a une « Formation "initiateur et initiatrice Linux" - vacances de Pâques » ce jeudi 24 avril à partir de 18h, à Clermont-Ferrand.<br>Si certains et certaines sont intéressés par le sujet du <a href="https://framapiaf.org/tags/format" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>format</span></a>, de <a href="https://framapiaf.org/tags/Orgmode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Orgmode</span></a> (voire de groff ou de <a href="https://framapiaf.org/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a>) je suis partant étant dans les parages, <a href="https://www.linuxarverne.org/vie-de-lassociation/autres-activites/220-formation-initiateur-et-initiatrice-linux" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">linuxarverne.org/vie-de-lassoc</span><span class="invisible">iation/autres-activites/220-formation-initiateur-et-initiatrice-linux</span></a></p>
Aaron “#e14n pro” Madlon-Kay<p>If you have <a href="https://mastodon.social/tags/Orgro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Orgro</span></a>, the text is fetched and parsed as Org Mode markup. I don't think there are any vulnerabilities there.</p><p>For the web, instead of redirecting I could fetch the content and display it as plain text on my site.</p><p>But if we're talking <a href="https://orgro.org/web?url=https://malicious.example.com" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">orgro.org/web?url=https://mali</span><span class="invisible">cious.example.com</span></a> and we don't even want to mistakenly send a request to malicious.example.com (divulging IP? other info?) then I guess I have to shelve this entire feature.</p><p><a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> <a href="https://mastodon.social/tags/OrgMode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OrgMode</span></a> <a href="https://mastodon.social/tags/vulnerability" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vulnerability</span></a> <a href="https://mastodon.social/tags/infosec" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>infosec</span></a></p>
Aaron “#e14n pro” Madlon-Kay<p>Along the way I had the idea that you could open any Org Mode file in <a href="https://mastodon.social/tags/Orgro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Orgro</span></a> by opening <a href="https://orgro.com/web?url=https://example.com/link/to/my/file.org" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">orgro.com/web?url=https://exam</span><span class="invisible">ple.com/link/to/my/file.org</span></a>.</p><p>I suppose if you don't have Orgro then it should redirect you to the specified URL.</p><p>Then I realized: isn't that just one big open redirect vuln?<br><a href="https://cwe.mitre.org/data/definitions/601.html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">cwe.mitre.org/data/definitions</span><span class="invisible">/601.html</span></a></p><p>Is there any way to square this circle?</p><p><a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> <a href="https://mastodon.social/tags/OrgMode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OrgMode</span></a> <a href="https://mastodon.social/tags/vulnerability" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vulnerability</span></a> <a href="https://mastodon.social/tags/infosec" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>infosec</span></a></p>
Aaron “#e14n pro” Madlon-Kay<p>I had been thinking it would be cool if you could open <a href="https://orgro.com/manual" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">orgro.com/manual</span><span class="invisible"></span></a> and get it to open the manual in the Orgro app. If you don't have <a href="https://mastodon.social/tags/Orgro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Orgro</span></a> then you get what it links to right now, which is the GitHub rendering.</p><p>To that end I've been on a wild series of yak shaves to implement deep linking in Orgro.</p><p><a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> <a href="https://mastodon.social/tags/OrgMode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OrgMode</span></a></p>
szpon<p>So, uh... Please be patient with me, I'm doing custom <a href="https://circumstances.run/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> thing for the first time.</p><p>I want to make which-key-like minibuffer prompt with qmk/zmk keycodes (yes, there's minor mode for qmk already, but I don't want to use it) and I would like to look on other projects utilising minibuffer this way. Which-key is too overwhelming for me. Guides are also welcome (but please, don't link to the docs).</p>
The Emacs Cat<p><a href="https://mastodon.social/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> Time Stamp</p><p><a href="https://olddeuteronomy.github.io/post/emacs-time-stamp/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">olddeuteronomy.github.io/post/</span><span class="invisible">emacs-time-stamp/</span></a></p>
Phil<p><a href="https://mastodon.scot/@simon_brooke" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@simon_brooke@mastodon.scot</a> <a href="https://fosstodon.org/@Tallish_Tom" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@Tallish_Tom@fosstodon.org</a><span> <br>That doesn't decrease the cost of using up 100,000x more compute and RAM than necessary to communicate most messages/ notes.<br><br>It only pushes that direct monetary cost on the reader, while still contributing to excess power use and waste.<br><br>Let's look at a typical workload case.<br><br>My website (</span><a href="https://bajsicki.com" rel="nofollow noopener noreferrer" target="_blank">https://bajsicki.com</a><span>) weighs about 31kb total (HTML, css and some js from hugo).<br><br>Just loading it up in </span><code>surf</code><span>, the lightest browser I know, eats up 163MB of RAM.<br><br>That's for just the home page, which barely has any content in it. <br><br>To contrast:<br><br>Loading up the plaintext from which I generate my entire blog (</span><code>bajsicki.com.org</code>, a perfectly legible 179kb file, also in <code>surf</code><span>), uses 157MB of memory.<br><br>And it contains ALL the posts I have ever made, and a number of drafts that I haven't published.<br><br>Opening the same file in </span><code>gedit</code><span>, uses 53.9MB. And you instantly have editing ability, which browsers don't offer. And you can pick your own fonts.<br><br>Opening it in </span><code>nvim</code> eats up 12.5MB. <code>Nano</code><span> still eats up 5.3MB in comparison.<br><br>No, I'm not testing ed.<br><br>So looking at this example, we can see that web browsers have the /worst/ compute-to-content ratio out of all options. <br><br>Let's round nano up to 6MB, and round surf down to 160MB.<br><br>So in the lightest web browser, we're still using 26x more RAM and compute than using nano in the case of a 179kb text file.<br><br>To display the same content. <br><br>That's absolutely deranged.<br><br>PS. Also, let's look at </span><code>cat</code> and <code>less</code><span>:<br><br></span><code>cat</code><span> is a 39kb binary file. I haven't been able to get its RAM usage. Still, it's smaller than the content, and prints to the terminal. So let's use the terminal. <br><br></span><code>xterm</code><span> 10.4MB<br></span><code>sakura</code><span> 41.7MB<br></span><code>alacritty</code><span> 25-60MB when idle<br><br>Running </span><code>less</code><span> takes 4.22MB of RAM on this 179kb file. <br><br>Better than nano.<br><br></span><code>more</code><span> uses 15.4MB.<br><br>Now for a comparison with </span><code>emacs</code><span>.<br>I run </span><code>Doom</code><span> with a good number of added packages, so my install is extremely bloated, and often laggy/ freezy, rarely crashy but it does happen when I mess around.<br><br>Let's see then.<br><br>Before:<br></span><code>64 buffers | 8846493 | 48 files, no processes</code><span><br></span><code>glances</code><span> tells me it's using 534MB RAM.<br><br>After: <br></span><code>65 buffers | 9025055 | 49 files, no processes</code><span><br></span><code>glances</code><span> tells me it's using 536MB RAM.<br><br>Granted, Emacs here doesn't have to load much as it's always running, yet compared to the terminals, and given it can open multiple files simultaneously, read email, etc.Actually let's see the first instance, reading the website in eww.<br><br>- RAM usage up to 545 (from 536), so 9MB of RAM.<br>- The </span><code>*eww*</code><span>buffer holds 1382 bytes.<br>- The website is perfectly legible, albeit lacks any formatting aside from links.<br><br>Compare:<br>- </span><code>lynx</code><span> 15.6 MB<br>- </span><code>links</code><span> 11 MB<br>- </span><code>w3m</code><span> 13.9 MB<br><br>Granted they load their own display stack, but if you're already running </span><a href="https://fed.bajsicki.com/tags/Emacs" rel="nofollow noopener noreferrer" target="_blank">#Emacs</a> then it's about cheaper to use <code>eww</code><span>.<br><br>We have, as a society, failed to contain our greed for shiny things.</span></p>
Matt Maguire<p>I&#39;ve been experimenting with doing plain text accounting using <a href="https://mathstodon.xyz/tags/ledger" class="mention hashtag" rel="tag">#<span>ledger</span></a>-mode in <a href="https://mathstodon.xyz/tags/Emacs" class="mention hashtag" rel="tag">#<span>Emacs</span></a> and the <a href="https://mathstodon.xyz/tags/hledger" class="mention hashtag" rel="tag">#<span>hledger</span></a> reporting tool to get a better handle on my finances, particularly in relation to share investments. On my blog I have posted a simple walk-through demonstrating what I have learned with regards to using these <a href="https://mathstodon.xyz/tags/foss" class="mention hashtag" rel="tag">#<span>foss</span></a> tools to help track trades in a share portfolio.</p><p><a href="https://mathstodon.xyz/tags/plaintextaccounting" class="mention hashtag" rel="tag">#<span>plaintextaccounting</span></a> </p><p><a href="https://www.teachmaths.org/20250424-pta-emacs2/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://www.</span><span class="ellipsis">teachmaths.org/20250424-pta-em</span><span class="invisible">acs2/</span></a></p>
hajovonta<p><span class="h-card" translate="no"><a href="https://indieweb.social/@xenodium" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>xenodium</span></a></span> <br>The same here, but I hack on another package. It is interesting that we move on somewhat the same path: I recently gave CFW a transient, made some animgifs, thinking about doing a video.</p><p><a href="https://mastodon.online/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> <a href="https://mastodon.online/tags/cfw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cfw</span></a> </p><p><span class="h-card" translate="no"><a href="https://masto.gregnewman.io/@greg" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>greg</span></a></span></p>
takeonrules<p>Spent time getting a new <a href="https://dice.camp/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> setup working. Between its opinionated key bindings and my <a href="https://dice.camp/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> bindings, I needed to reconcile the behavior.</p><p>I'm definitely building up a blog post or 8 of content. There's a lot of to do items given that I've been using <a href="https://dice.camp/tags/Macos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Macos</span></a> for 20 years.</p>
Free Software Foundation<p>Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Collin Funk, Yue Yi, and Wojciech Siewierski 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/Cppi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Cppi</span></a> <a href="https://hostux.social/tags/CopyrightAssignments" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CopyrightAssignments</span></a></p>
Jack Baty<p>Spent a couple of hours cleaning up my <a href="https://social.lol/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> config. Took some cues from Steve Purcell's approach. I /almost/ went literal with the whole thing, but that was a bridge too far. This is clean enough for now.</p>
zrzz<p>In the <a href="https://fosstodon.org/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> help buffer after "C-h f somefunc RET" the first TAB used to consistently take me to the definition link. Since the introduction of nativecomp there is often a pesky "native-comp-function" help-type button in the way requiring an extra TAB. I never want to select this so I am now using the following to make TAB skip it:</p><p>(button-type-put 'help-type 'skip t)</p>
unixbhaskar<p>Sipping hot lemon tea 🍋🫖 and some staring ....</p><p><a href="https://mastodon.social/tags/linuxkernel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linuxkernel</span></a> <a href="https://mastodon.social/tags/mailinglist" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mailinglist</span></a> <a href="https://mastodon.social/tags/tool" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tool</span></a> <a href="https://mastodon.social/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> <a href="https://mastodon.social/tags/notmuch" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>notmuch</span></a> <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a></p>
Álvaro R.<p>My LLM shell compose buffers now get a transient menu <a href="https://indieweb.social/tags/llm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>llm</span></a> <a href="https://indieweb.social/tags/chatgpt" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>chatgpt</span></a> <a href="https://indieweb.social/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> <a href="https://indieweb.social/tags/ai" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ai</span></a> <a href="https://indieweb.social/tags/anthropic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>anthropic</span></a> <a href="https://indieweb.social/tags/gemini" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gemini</span></a> <a href="https://indieweb.social/tags/ollama" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ollama</span></a> <a href="https://indieweb.social/tags/deepseek" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>deepseek</span></a></p>
🏳️‍🌈Trentskunk🏳️‍🌈:unverified:<p>EWW plus engine-mode and Lingva makes for a pretty nice way to practice reading spanish..😀 </p><p>I should see if I can find some young adult spanish ebooks. 🤔 </p><p><a href="https://mstdn.social/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> <br><a href="https://mstdn.social/tags/spanish" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>spanish</span></a></p>
joat<p>Anybody know of an <a href="https://mastodon.scot/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> way to do the equivalent of "column -t"?<br>I known that org mode tables have nice electric table alignment but can it be done in a regular text file?<br><a href="https://mastodon.scot/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a></p>
Erik L. Arneson :emacs:<p><span class="h-card" translate="no"><a href="https://social.lol/@jbaty" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>jbaty</span></a></span> I'm pretty happy with about 180 use-package lines in my <a href="https://fosstodon.org/tags/Emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Emacs</span></a> config.</p>
choan<p><span class="h-card" translate="no"><a href="https://laterracita.online/@oneeyedman" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>oneeyedman</span></a></span> ahora, si yo no llevara años de <a href="https://social.anartist.org/tags/emacs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>emacs</span></a> encima, probaría <a href="https://social.anartist.org/tags/neovim" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>neovim</span></a>. Que también tiene de todo... menos elisp.</p>