photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

246
active users

#elisp

0 posts0 participants0 posts today
Replied in thread

@oantolin @Zenie Well, that was not my intention but, yes, in practice, I guess: I put up with some behaviour that annoys me until I get around to writing some elisp to fix whatever that behaviour is that annoys me!

There's always some trade-off between effort and benefit...

But the real message (implicitly in what you stated and which I fully agree with) is that Emacs is a tool that you can make work the way you want, not the other way around.

Trying to make an org-agenda entries to have a distinct color if there is a content in them (if there is something except metadata under the heading).

Does anyone know how to hook into agenda rendering to achieve this? Pointers are very welcome!

P.S. At the moment I just manually put (link) or (body) to the corresponding headings >< I don't want to do it anymore :)

#elisp #emacs #lisp

has anyone seen or implemented something like common lisp's split-sequence, or partition in elisp? i.e. function that takes a predicate, and returns a list of the elements that match and another list of the elements that to do not? cl-lib doesn't seem to have it, and i can't see a way to hack it up using existing functions either. (seq-partition) from seq.el doesn't do the trick, it's a kinda false friend.

Edit: the options being
- seq-group-by
- -partition-by
- hacking cl-reduce

@eduardoochs what do you think of #elisp
(cl-defmacro with-eepitch-target
((buffername) &body body)
(declare (indent 1))
(append
`(let ((old-buffername eepitch-buffer-name))
(setq eepitch-buffer-name ,buffername))
body
'((setq eepitch-buffer-name old-buffername))))

(defun eepitch-to (target line)
(with-eepitch-target
(target)
(setq line (eepitch-preprocess-line line))
(eepitch-prepare)
(eepitch-line line)))

(eepitch-to
"*slime-repl ECL*"
"(+ 2 9)")

#Emacs question: How does one load (or include or import or however the proper terminology is) a elisp file relative to the current elisp file? I can only find load and load-file, but these seem to always load stuff relative to the load path or the CWD of Emacs itself, not the file.

Salutations from the Pacific Northwest! 🌊🏔️🌲🌧️

In a past life, I was a Web developer building Java/JavaScript webapps hosted on Linux systems.

Now I spend my time as a Cloud Security Engineer, building tooling and
microservices in AWS to keep the bad guys out (or good guys who love footguns).

When I'm not hunched over my laptop writing code or debugging,
you'll find me riding my bicycle, getting armbarred in Brazilian Jiu
Jitsu, playing D&D with my kids, or melting in a Korean sauna
(jjimjilbang) like a human dumpling.

I'm interested in connecting with people about #emacs #elisp #golang,
possibly collaborating on #foss projects.

In addition to English, I speak French (native but rusty), Spanish
(intermediate), Portuguese (beginner) and Korean (beginner).

There is a Github repo maintained by @tarsius which contains a good list of #elisp developers and their projects and usually a platform from which one can donate to them. Check it out, add other folks to the list, and more importantly, consider supporting some of the devs you are using their software on a daily basis or their software is integral to your workflow:

github.com/tarsius/elisp-maint

GitHubGitHub - tarsius/elisp-maintainers: Elisp maintainers and how to support themElisp maintainers and how to support them. Contribute to tarsius/elisp-maintainers development by creating an account on GitHub.

#programming #emacs #lisp #commonLisp #elisp #eev #engineering #computerScience #history
My short but richly referenced bit on the popularity of lisp in the modern era, ranging from 2000 to 2024.
screwlisp.small-web.org/progra

I had /meant/ to write something completely different, but this is where we got. I hotly anticipate your flames.

TANGENTIALLY #ELS2025 european-lisp-symposium.org/20

I planned to connect to #lispgamejam and totally missed it. Try the submissions though! itch.io/jam/spring-lisp-game-j

screwlisp.small-web.orgPopular and unpopular lisp

#programming #engineering #emacs #eev #eepitch #markdown #md #intro #howto
screwlisp.small-web.org/progra
Capturing how I have started programming recently. In an md markdown document, I just weave in eev's red star lines and pitch other lines. Since eev 'inhabits other things' naturally, eepitch makes plain markdown into a powerful interactive evaluation mode.

The eepitching includes #shell #lisp #elisp #commonLisp and my #softwareIndividuals #KRF in the kind of freeform medley it lends itself to.

Continued thread

I've run into a snag.

I have a function, pivot-table-get-columns (shorthanded as pt-get-columns). Its job is to take an #OrgMode table and produce an alist of mappings of column names to column numbers. The column names are as defined by section 3.5.10 of the org-mode manual.

My code is here.

When I pass this function a table without column labels, it crashes on the format line (which it shouldn't even be reaching).

Can someone explain to me what I'm doing wrong?

(cc: @screwtape )

orgmode.orgAdvanced features (The Org Manual)Advanced features (The Org Manual)

#irreal and @bbatsov about #Emacs startup time: irreal.org/blog/?p=12903

I, too, am totally convinced that it really doesn't matter if it is one or sixty seconds.

However, if your bootup time is much longer than mine (15-30s once a week) then you most probably have room for improvement (if you want). Consistent use of #usepackage with dependencies and "defer" did help on my side.

My config has 7724 lines of #elisp (19851 including #orgmode comments): github.com/novoid/dot-emacs/bl

irreal.orgEmacs Startup Time | Irreal
Continued thread

Ooh it gets better. When I said there is no string-builder the response (emphasis from Gemini) was:

"While string-builder /is/ part of Emacs since version 27.1, if you're encountering issues there might be something unusual in your specific environment or load path."

Translation: Stupid meat-bag

🤣