@sachac@emacs.ch
@sachac@emacs.ch avatar

sachac

@sachac@emacs.ch

Interests include: #Emacs, #OrgMode, #elisp, #nodejs, #python, #sketchnotes, #parenting, #cooking, #gardening, #knitting, #sewing, #lego, #captioning, #plover #steno, and #stoic philosophy. Originally from Manila, now in Toronto. Married to a Vim guy (go figure) and raising a 7-year old (editor preference unknown), along with two very loud cats.

Blog: https://sachachua.com (mostly Emacs News these days), sketches: https://sketches.sachachua.com. I also maintain planet.emacslife.com and subed.el

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ankit, to emacs
@ankit@emacs.ch avatar

I ran into some go code that use build tags. My existing test functions didn't work. To handle build-tags, I defined go-build-tags in .dir-locals.el and used the variable in my functions.

((go-ts-mode . ((go-build-tags . "device,json1"))))

https://git.argp.in/ankit/dotfiles/commit/c5c165c830f9f61c88d366b8a01efb083ea4c97a

kickingvegas, to emacs
@kickingvegas@sfba.social avatar

Okay here's another Transient I've made a while back, in this case for Avy. A bit esoteric, but this has enabled me to get a lot more out of Avy than just using avy-goto-word-1 or avy-goto-char-timer. Wondering out loud if I should publish this on MELPA.

Also yes, I've read Karthik's post on using Avy wrong. I readily admit I'm not sophisticated enough to put filter-select-act into practice.

#Emacs

oberbrunner, to emacs
@oberbrunner@mastodon.mit.edu avatar

Not that anyone likely cares, but I just refactored my config away from literate org-mode, into a collection of specific elisp files. The top level init.el is now quite clean.
I got tired of having to edit source blocks in the org-mode config and having to preload org-mode just to load my config, all just so it looks prettier (?) when reading it on github.
The elisp files still have sections, rg can search them just fine. I'm happy. https://github.com/garyo/emacs-config

kompot, to emacs Slovenian
@kompot@toot.si avatar

Zapisnik majskega srecanja in letak z vabilom na junijsko srecanje.

https://emacs.si/zapisniki/2024-05-09.html

rahguzar, to emacs
@rahguzar@emacs.ch avatar

I passively read the subreddit but I have zero desire to be on reddit. Often I come across questions I think I know the answer to and can only hope someone else answers it (and most of the time someone does it).

Case in point: https://old.reddit.com/r/emacs/comments/1coumhm/elisp_determine_if_mouse_posn_is_within_region/

I think they are looking for posn-point.

svbck, to emacs
@svbck@fosstodon.org avatar

Transients are seemingly getting more common (see Casual dired) so I decided to share my EMMS-dired-player transient.

I have been using it for a while and it does what I want it to do.

More here:

https://svbck.org/blog/2024-05-09-emms-dired-player-transient.html

zrzz, to emacs

My discovery for today is dired-omit-mode. It hides less interesting files (object files, backups etc). There are a few options to tweak what you want hidden.

The default binding is C-x M-o but I've also put it on just M-o in my config so that I can toggle it quickly.

elilla, to emacs
@elilla@transmom.love avatar

taking a break from my social media diet to note that I finally took the time to export my styling like many of you asked. I present you: girly-notebook-theme.el
https://github.com/melissaboiko/girly-notebook-theme

you have to install the fonts for it to work properly, see the README.

FAQ: no there's no dark bg version.

robert, to emacs
@robert@toot.kra.hn avatar

org-ai got an update today. It now supports the and the .ai APIs.

https://github.com/rksm/org-ai

ankit, to emacs
@ankit@emacs.ch avatar

Today I learned and practiced using Pikchr. Pikchr is a low-level diagram markup language. This is my second attempt at it and I think it clicked this time.

The program is available is a single function library and a CLI that emits SVG.

https://pikchr.org/

There is obviously an mode for it with preview and org-babel support that works well.

https://github.com/kljohann/pikchr-mode/

amoroso, to emacs
@amoroso@fosstodon.org avatar

The rootwork v0.2 blog posted about the author's journey through text editors, from classics such as vi(m) and Emacs to tools I've never heard of. They explain what they use the editors for and why.

https://write.as/hobbsc/wandering-words-on-text-editors

wirthy, to emacs
@wirthy@emacs.ch avatar

After spending some time learning meow's editing model, I've finished a moderate customization of the default qwerty layout. It's an attempt to find a synthesis of my emacs, vi, and CUA muscle memory while favoring selection-first editing.

https://codeberg.org/jasonp/dotfiles/src/branch/main/emacs/.emacs.d/site-lisp/meow-jpqwerty.el

kickingvegas, to emacs
@kickingvegas@sfba.social avatar

Ever been too scared to use the file manager Dired? I have and still remember what it's like, especially when I was new to it. But it doesn't have to be that way. Here's my take on making Dired a bit easier to use, for beginners and experienced alike.

Announcing Casual Dired, now on MELPA. Read more about it at the link below.

http://yummymelon.com/devnull/announcing-casual-dired---an-opinionated-porcelain-for-the-emacs-file-manager.html

ThierryStoehr, to emacs French

Text [, to setup your text editor] You want a "Better garbage collection" in your ?
Here is a solution: https://config.phundrak.com/emacs/basic-config.html#better-garbage-collection
This was explained during the 2024-05-02 french on-line workshop called "Atelier ", by the author @phundrak, thank you! And happy emacsing!

jtmoulia, to emacs
@jtmoulia@mstdn.social avatar

A guide on integrating + + using [mostly] builtin tooling and project local .dir-locals.el variables.

Specifically, this setup uses + for live syntax checking, for code running, for type-checking, and as the shell

Feedback would be welcome -- trying to get it robust + idiomatic.

https://jtmoulia.srht.site/guides/emacs-python-hatch/

SebasTEAan, to emacs German
@SebasTEAan@emacs.ch avatar

I create a new package for Emacs:
hide-secrets: https://gitlab.com/ostseepinguin1/hide-secrets-el

It hides various secrets like passwords, username, email addresses, IP addresses and hash sums in Emacs buffer, so you can show these buffers online without risking privacy.

It's still too early to put it on Melpa.

Feedback very much appreciated.

pkal, to emacs
@pkal@emacs.ch avatar

To anyone in and around Erlangen/Nueremberg, I am organising a german introduction to Emacs next week (10.5.) at my university. My intention is to give a high-level, value-driven overview instead of wasting time on accidental and superficial features such as Magit, Org-Mode, SLIME, etc. (there are plenty of those already).

You can find more details on my Uni-Website: https://wwwcip.cs.fau.de/~oj14ozun/emacs/.

bram85, to emacs

magit-find-file allows you to open a file at a certain revision, which could be a (relative) timestamp. Notation: HEAD@{3 days ago}.

Using these bits, I wrote a small #emacs command that displays a file at a certain moment, chosen with the built-in calendar.

(defun bram85-magit-find-file-as-of (datetime)  
 (interactive (list (org-read-date)))  
 (let ((rev (format "HEAD@{%s}" datetime)))  
 (magit-find-file rev (magit-read-file-from-rev rev "File: "))))  

#magit #git

bram85, to emacs

Inspired by @howard 's recent post sharing his configuration, I'm sharing mine. Elfeed is a powerful RSS feed reader for with a number of hooks to customize it.

My configuration:

https://apps.bram85.nl/git/bram/gists/src/commit/fd3d0991055863526be07dd12f4857ab32826768/gists/elfeed.el

Among others, it contains the following elements:

  • Custom function for printing entries:

  • Relative dates (using the relative-date package by @rougier )

  • Tags printed in :orgmode: notation

  • Ability to omit some tags from printing.

  • Record read dates in the elfeed database when entries are opened.

sqrtminusone, to orgmode
@sqrtminusone@emacs.ch avatar

I've got an question.

I have an org file for a long-running project. It's getting hard to manage because there are lots of different tasks, events, etc.

I think I want to create an "archive version" of that file, which would have the same structure but store items, say, with a timestamp older than 2 months. That would require two basic steps:

  • extracting a subtree from the original file;
  • merging the extracted subtree into the archived version.

I could implement that, but I wonder if there is any existing way for that? Or some other approach that would address the same issue?

sqrtminusone,
@sqrtminusone@emacs.ch avatar

Thanks Amy @grinn for pointing me to the necessary pieces of org-refile! It would have taken much longer to figure out otherwise.

I've made a function that org-refiles the entry at point into "archive/<file-name>.org", preserving the header structure. I only had to implement creating nonexistent headers because `org-refile' can create just one level out-of-the-box.

And another function that performs that operation on all entries found by `org-ql'.

The code is here: https://sqrtminusone.xyz/configs/emacs/#archiving-records

jnpn, to emacs
@jnpn@mastodon.social avatar

People are still hacking the old nxml-mode to add more sensible ergonomics

https://borretti.me/article/better-xml-editing-for-emacs

ps: author had a digital friend as support

jtr, to emacs
@jtr@fosstodon.org avatar

Scratching my head at an Emacs issue: Elfeed-org doesn’t seem to load my feeds. I’m not sure why, everything looks OK. I have my feeds.org and I have the path defined in rmh-elfeed-org-files and it does show the value it’s supposed to have.

Does anyone have a working config I can look at?

#emacs #elfeed #rss

howard,
@howard@emacs.ch avatar

@jtr Here's my configuration for #elfeed for #emacs
https://howardabrams.com/hamacs/ha-feed-reader.html#org77720a9

My feeds are located later in that #orgmode file under the section with the tag :elfeed:

https://github.com/howardabrams/hamacs/blob/main/ha-feed-reader.org#L93

zyd, to emacs
@zyd@emacs.ch avatar

I've been using this theme of mine for a while now. Its nothing fancy but I finally put it up on sourcehut.

https://git.sr.ht/~zyd/dingo-theme

Screenshot of emacs

sqrtminusone, to emacs
@sqrtminusone@emacs.ch avatar

Updated my client.

For the most part, it's keeping up with the API which has gained several new features, including:

  • 15-minutely forecasts and current weather in the ensemble model (referred to as just "Weather Forecast")
  • Weather models from the Australian Bureau of Meteorology (BOM) and the Chinese Meteorological Administration (CMA)
  • Options to adjust solar radiation variables by panel tilt and panel azimuth
  • "Previous Runs API" that allows comparing forecasts for different days (up to 7). E.g. what temperature was predicted for today 7 days ago (Fig. 1)

Happy to see the project developing.

And I've added an option to access historical weather data for a particular day across multiple years (Fig. 2).

Open Meteo: https://open-meteo.com/
My client: https://github.com/SqrtMinusOne/biome

A table with historical weather data for 24th of April for years from 1984 to 2024.

mykhaylo, to emacs
@mykhaylo@fosstodon.org avatar

This is new version of the previous package. Context specific transient menus. This must be super-convenient.

https://github.com/licht1stein/context-transient.el

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • modclub
  • magazineikmin
  • thenastyranch
  • InstantRegret
  • ngwrru68w68
  • Youngstown
  • Durango
  • slotface
  • mdbf
  • rosin
  • cisconetworking
  • kavyap
  • DreamBathrooms
  • tester
  • everett
  • khanakhh
  • ethstaker
  • tacticalgear
  • vwfavf
  • GTA5RPClips
  • anitta
  • Leos
  • osvaldo12
  • cubers
  • normalnudes
  • provamag3
  • JUstTest
  • All magazines