Starter kits (kits de inicio)
Nota: Este post tiene una versión en inglés para participar en el Emacs Carnival. La versión en castellano está tras la inglesa.
Starter kits
Emacs Prelude
I started my Emacs config file from scratch because I didn't know that starter kits existed. But a couple of years after using Emacs I found Emacs Prelude and migrated my configuration to use Prelude.
With Prelude I learnt a lot of things (avy, completion frameworks, flymake…). Emacs Prelude was like a different editor compared to my orginal configuration.
Eventually, I stopped using Prelude because there were a lot of things I didn't understand at the moment (like the whitespace-mode or flymake) and wanted to learn using them one by one in my own configuration. But it was wonderful to rediscover Emacs through Prelude, and it improved my Emacs knowledge a lot.
Kits de inicio
Emacs Prelude
Cuando empecé a usar Emacs, partí de un fichero de configuración vacío, porque no sabía ni que existían distintas "distros" de Emacs preconfiguradas.
Pero tras unos dos años de usar Emacs descubrí Emacs Prelude, y migré mi configuración para usarlo. Gracias a Prelude descubrí un montón de cosas que desconocía (como avy, los motores de búsqueda, flymake etc.). Con Prelude, Emacs parecía un editor completamente distinto al Emacs que tenía con mi propia configuración.
Con el paso del tiempo dejé de usar Prelude porque había demasiadas cosas que no entendía (como los colores de whitespace-mode o flymake), y prefería ir probándolas poco a poco en mi propia configuración para entederlas mejor. Pero fue realmente increíble redescubrir Emacs gracias a Prelude. Gracias a eso conseguí pasar de ser un novato a ser un usuario con bastante conocimiento de Emacs.
Hola mundo en Emacs Lisp
Llevo mucho tiempo queriendo mejorar mi conocimiento de Emacs Lisp, pero al final nunca tengo hueco para aprenderlo en profundidad.
De momento he hecho una especie de "Hola mundo" un poco más complejo,
usando la función let de Elisp para declarar variables.
Es una función muy sencilla, que pide al usuario el nombre, y luego le
da los buenos días y la fecha. Con esta función he usado por primera
vez let, y además he descubierto la distintas formas en las que se
puede conseguir una fecha con la función format-time-string.
A continuación dejo el código y un ejemplo de uso cuando el usuario introduce la cadena "Carlos" por teclado.
(defun holamundo() (interactive) "Hola mundo interactivo que pide el nombre del usuario y dice la fecha de hoy." (let ((nombre (read-string "Introduce tu nombre: ")) (diasem (format-time-string "%A")) (dia (format-time-string "%d")) (mes (format-time-string "%B"))) (message "Buenos días %s, hoy es %s %s de %s" nombre diasem dia mes))) (holamundo) "Buenos días Carlos, hoy es domingo 22 de marzo"
LLM
Inspirado por el post de Derek Sivers he decidido crear una entrada sobre cómo uso los modelos de lenguaje en este blog y en general.
En los posts que tengo en español que yo recuerde no los he usado para nada, y en los que tengo en inglés alguna vez le he pasado alguna frase para que me revisara la gramática.
Aparte de eso, igual en el futuro hago algún experimento con Gemini, ChatGPT, Grok o el modelo que sea, pero en principio no me apoyo en LLMs para escribir.
En mi día a día a veces uso Gemini sobre todo si veo que me puede ahorrar tiempo para buscar algo, o para preguntar alguna curiosidad que me surja.
También he probado algunos modelos locales con ollama, pero como no tengo mucha potencia de cálculo local eran modelos muy sencillos.
The people of Emacs
The philosophy behind Emacs fosters a really wonderful community. There are tons of people that have helped me learn and improve my Emacs configuration and knowledge, but in order to write this post I've chosen three.
Mickey Petersen
When I finished the Emacs tutorial, I was wondering how I could improve my skills. I knew about Planet Emacs, but I didn't have the knowledge to understand the majority of the posts written there. Although I knew the basics of Emacs, I wanted to advance to the next level.
Then I discovered "Mastering Emacs". It was through reading that book that I really went from noob to grasping the more advanced capabilities of the text editor. I became able to skim through other people's posts in Planet Emacs and test their Elisp snippets, programs or configurations.
I have to thank Mickey because it was a really enjoyable read. I could understand every bit of the book without making any effort at all, which finally helped me to learn to use M-x, install and configure packages and evaluate Elisp code.
Sacha Chua
I think it was after reading "Mastering Emacs" that I started looking at Sacha Chua's posts. Sacha Chua is, of course, one of the main pillars of the Emacs community, and in fact Planet Emacs is run by her.
The first configuration that I cloned with git was Sacha's. I learnt a lot by skimming through her quasi-infinite Sacha.org. I started to discover a lot of Emacs packages that I have used every day since.
And of course there is the Emacs News and the Emacs Conf. Sacha is the one who gathers a lot of people around Emacs.
Protesilaos Stavrou
My next step in the Emacs Way is to properly learn Elisp. Here I think Prot is the king, with his affordable coaching lessons. I can't think of a better way to learn. He is patient, knows how to adapt to every person and is a very good teacher. With his help, you can start to craft your very own Emacs configuration including macros and other advanced Elisp stuff.
Then of course there are the Modus themes, which are now part of Emacs itself. There are also a lot of packages written by Prot, accompanied by top-notch documentation. His code is also very clear and easy to read. Perfect for learning.
Prot has also his fantastic "Prot Asks" series of videos, in which he talks with people about a lot of different topics. I was lucky to inaugurate the series of videos and it was a pleasure to chat for one hour with him. Of course, the common denominator of all the people around Prot is the love for Emacs and in general libre software.
Conclusion
Emacs is more than the flagship of the libre software movement. It is a way of life. I think the best way to conclude this post is with a quote from Prot himself:
"Choosing Emacs is not just a matter of deciding how to edit text. It largely is about what kind of person one wants to be."
Ahora
El otro día me encontré un post de Michał M. Sapka sobre las cosas que está haciendo ahora y me pareció curioso replicarlo aquí:
- Programando: Aplicación Economía Circular con Xcrud
- Leyendo: Circo Máximo de Santiago Posteguillo
- Leyendo: JavaScript: The Definitive Guide, 7th Edition de David Flanagan
- Jugando: Pokémon Leyendas Z-A
- Jugando: Nethack (tnnt.org)
- Viendo: Stranger Things
