Skip to main content



@screwlisp @Judy Anderson
I've been looking to migrate more of my workflow into emacs, in this particular case I'm looking to moo via emacs which I believe you both do?

I believe @screwlisp has mentioned using rmoo, but the only repo I found for that hasn't been updated in over a decade. Is there something more recent I'm not aware of?

in reply to Jonathan Lamothe

> had do a little finessing to get it to installed

out of curiosity: what was the problem?

Is it that I didn't make a (M)ELPA package out of it? (nobody just drops things in their ./emacs directory anymore?)

or some other issue?

screwlisp reshared this.



I've got to stop writing code on my phone. The combination of a touchscreen keyboard and tiny screen allows stupid typos to make their way into my code that I would be much more likely to catch on a proper computer.
in reply to Jonathan Lamothe

I gotta ask... What motivated you to write choice on a phone in the first place?
in reply to Darcy Casselman

@Darcy Casselman It was mostly written properly. They were just little edits that I was too lazy to go over to the computer to make.
in reply to Jonathan Lamothe

I strongly prefer being able to write code on my phone when I need to but I try to keep it to code that I plan to run once immediately and discard.



I am dangerously close to unleashing my first #emacs package on the public. It's nothing fancy and still relatively niche, but I deem it potentially useful enough to be worth publishing.

There are a couple small features I want to add and a few things that still need some polish, but it's almost ready for a version 0.1 release.

It's not anything ground breaking or anything. I'm still pretty much an #elisp novice, but I'm proud of it anyway.

More details when it's released.

in reply to Jonathan Lamothe

We can never have too many elisp packages out there! Almost welcome to the club! ;)
in reply to Álvaro R.

@Álvaro R. At this point all I need to add is a README and two features (which will mostly reuse code I've already written just in a slightly different way).

Surprisingly enough, the hardest part of the whole project was getting it to display numbers with thousands separators. That code might exist in the bowels of the calc package, but it was easier to just roll my own.

in reply to Jonathan Lamothe

your package, your rules! Sometimes rolling your own is more fun and you get exactly the UX you wanted.
in reply to Jonathan Lamothe

Okay, my first #Emacs package is officially released. It was strongly inspired by @Soroban Exam Website's work, providing practice tools for the #soroban. This is the first Emacs package I've ever released. It's probably not perfect, but I welcome feedback on how it can be improved.

I wonder if there is an overlap of more than say five people who are both soroban and emacs users. πŸ™ƒ

Anyhow, it can be found at: codeberg.org/jlamothe/soroban

reshared this

in reply to Jonathan Lamothe

vim guy here. happy to see I inspire others...

May be you could post on our forum. Not sure you will get more users, though

in reply to Soroban Exam Website

@Soroban Exam Website Might as well. I wrote it mainly for myself, partly because I don't own a printer and this makes it easier to practice when working from a computer screen, but also just to see if I could.

Still, if someone else is going to find it useful, that's probably the place I'll find them.

in reply to Jonathan Lamothe

May be you didn't see you that you can generate an interactive HTML output, on the site.
That was designed for people who don't want to print.

Should I make it more visible?

This entry was edited (3 days ago)
in reply to Soroban Exam Website

@Soroban Exam Website Yeah, that's what I'd been using. I just wanted sonething that worked offline. It's also got some tweaks that make it easier to see what line I'm on when doing additions since I can't slide my soroban over the page.


Whenever Katy tells me "I have an idea but you're not going to like it" she's usually right.
in reply to Jonathan Lamothe

In other news, my workspace is moving to another room in the apartment.

Shannon Prickett reshared this.

in reply to Jonathan Lamothe

Well, everything's mostly set up. Cable management needs some definite work, but at least the layout of my desk is more or less unchanged.

The new arrangement makes more logistical sense, but will require some getting used to. Just about every room in the apartment's been rearranged.



So, I've made the typo "tje" enough times now that my phone's keyboard has stopped correcting it (and even on occasion correcting to it).


elisp shenanigans
I just put a call to format inside my call to format. This is probably fine, right?
#emacs #elisp
in reply to Jonathan Lamothe

elisp shenanigans
Side note: is there a way to tell format to use a thousands separator? That'd be nifty, but it doesn't look like there is a way.
in reply to Jonathan Lamothe

elisp shenanigans

Sensitive content

in reply to Alex

elisp shenanigans
@Alex I'll have a look. Worst case scenario is that I have to roll my own.
@Alex


Katy's been down a YouTube rabbit hole on $medical_condition lately. Today we watched a yoga video that purported to relieve one of the symptoms. Cool cool, yoga can have benefits. Let's give it a go. Some of the instructions in this video were oddly specific but whatever, that's fine. Then we read the comments and my cult alarm started blaring.

This was a video with millions of views and an untold number of comments. Some of them were downright scary in their praise for this guy* and there wasn't a single remotely negative comment to be found.

Not one. I looked.

Someone is really dedicated to sliencing dissent on this video, and I can't imagine that being anything shy of a full-time job. That is probably one of the most massive red flags there is.

* e.g.: "Who needs western medicine? $youtuber is always the answer."



They told me no spicy foods until tomorrow, but the curry in my fridge is beckoning...

It's not that spicy. Should I?

I probably shouldn't, right?

in reply to Jonathan Lamothe

Having been through many colonoscopies and colon cancer surgery last year my tendency is to trust "them".


One thing I like about running #Debian is that when some project adds something that people don't like, I get plenty of heads up before that version actually hits the official Debian repos. πŸ™ƒ

in reply to Jonathan Lamothe

while the recursive name certainly helps, pizza developers use proprietary ingredients while mac and cheese development is fully free. The source code is in the name!

Although you could argue that Kraft Dinner is proprietary, but that's like a proprietary version of UNIX. People just go to it for nostalgia knowing it's way outdated, and any attempt to replicate it will give a better result.



ph

Taking my first dose of one of the drugs I was instructed to take before my procedure tomorrow.

How am I supposed to take this again?

*reads prescription label*

"Take as directed"

Thanks. πŸ™ƒ




ph
Going in for a medical procedure (probably nothing to be worried about) that's going to require me to start a clear liquid diet tomorrow morning. It's gonna suck, but at least 12 years as a Mormon taught me how to deal with being hungry for an extended period (because fasting). I made sure to eat well for my last meal tonight though.
in reply to Jonathan Lamothe

ph (possible TMI - you've been warned)

So the procedire in question is a colonoscopy. In addition to the diet they've also prescribed laxatives. I just took the first dose a short while ago. Apparently these things work fast.

It's going to be an interesting night.

in reply to Jonathan Lamothe

ph (possible TMI - you've been warned)

Sensitive content

in reply to Jonathan Lamothe

ph (possible TMI - you've been warned)
Mercifully, I mostly slept through the night. This morning though... let's just say I shan't be leaving the apartment for any reason.


Another #elisp question: Why does #Emacs have separate bits for the meta key (2**27) and alt (2**22)? Aren't they the same key, or is it a remapping thing like the ESC prefix?
in reply to Jonathan Lamothe

Meta and ALT are not the same key.
The original keyboards used long ago had Ctrl, Super, Hyper, Meta, and ALT keys. We now map Meta (i.e. ESC) to the Alt key on our keyboards as a convenience. I do not believe there is a way, on modern keyboards, to have both META and ALT mapped to a key. We can have Super, and Meta. I can't recall if I was able to map Hyper on a modern keyboard.



Why would anyone think that an industry whose motto is "go fast and break things" could be trusted to make self-driving cars?



Wow, I was on YouTube for a bit today and their ad targeting is just actively trash now.
in reply to nieuemma

@nieuemma Yeah, I've used such solutions on and off. They're great until Google intentionally breaks them, at which point I go back to the official client and forget about the alternatives by the time they're fixed. πŸ™ƒ
in reply to Jonathan Lamothe

I haven't had that happen yet. One stops working and I move on to another one so far, which is maybe only a couple of months, at least one has worked for me.


elisp nonsense

I've been playing around with keymaps. Apparently they can be used to create menus that give the user a visual list of options. The canonical way to make them is aparently with make-sparse-keymap to create the menu and define-key to add options to it, but this causes some confusing behaviour.

Take the following example:

(let ((menu (make-sparse-keymap "My menu")))
  (define-key menu "a"
    '(menu-item "Foo" foo))
  (define-key menu "b"
    '(menu-item "Bar" bar))
  menu)

Yields the following:
(keymap (98 menu-item "Bar" bar) (97 menu-item "Foo" foo) "My menu")

Each new entry is added to the top of the list, so when the menu is displayed, they're listed in reverse order. This is very counter intuitive.

Now, I understand that the nature of lists in lisp make inserting an element at the top of the list less computationally expensive, but when you've already got to walk the whole list anyway to ensure the key binding isn't already present, this no longer feels like an adequate excuse.

Am I missing something?

#emacs #elisp

reshared this

in reply to Jonathan Lamothe

Define key is my least favorite way to make a keymap.

I like defvar-keymap, bind-keys, if you've got a map create already. Like a sparce map.

General is nice too. But then you have to have that installed.

in reply to Jonathan Lamothe

I think you've got it right. Many who write lisp think of adding to the head of the list as normal, even if they still have to walk it for things like uniqueness checks.


I virtually never set custom keybindings in #Emacs preferring instead to rely on M-x function calls because I had such a hard time finding key sequences that weren't used by something else. Since learning that C-c /[A-Za-z]/ is reserved for user-defined keybindings, I've gone mad with power.

reshared this

in reply to Lens

@Lens @Robert Pluim πŸ‡ͺπŸ‡Ί On my system C-z suspends Emacs and drops me back to the terminal until I issue the fg command to bring it back. I use this for issuing git commands. I could probably do this from within Emacs, but I haven't bothered to figure it out.
in reply to Jonathan Lamothe

@rpluim magit is a pretty awesome git porcelain I think you'd like. It's shipped with emacs by default
in reply to Lens

@lens_r magit is awesome, but it's not part of standard Emacs. VC is, but that's not as good as magit for git (it's great however when you're forced to use some other version control system like CVS, since VC provides bindings that work whatever the underlying system is)
@Lens



I love that Instacart sent us a Starbucks gift card ro reward us for our "hard work and loyalty" on the same day they fired us. πŸ™ƒ

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.

⇧