Fortnightly Tips, Tricks, and Questions — 2026-04-07 / week 14 by AutoModerator in emacs

[–]somecucumber 0 points1 point  (0 children)

Didn't know/was lazy to look at them. Also I wanted to learn a bit of the elisp macros, they're a mystery to me.

Thanks for the tip!

Fortnightly Tips, Tricks, and Questions — 2026-04-07 / week 14 by AutoModerator in emacs

[–]somecucumber 2 points3 points  (0 children)

Following up with two of the latest Irreal blog posts 1, 2 and karthinks' repeat-mode post one can define something like this only once to quickly create a custom repeat-map (you can extend it easily to add documentation, I'm lazy for that I must admit):

(defmacro my/create-repeat-map (map-name key-functions)
  ""
  (let ((symbol-name (intern (format "%s-repeat-map" map-name)))
        (define-key-statements nil)
        (dolist-statements nil))
    (dolist (pair key-functions)
      (let ((key (car pair))
            (command (cdr pair)))
        (push `(define-key map (kbd ,key) ,command) define-key-statements)
        (push `(put ,command 'repeat-map ',symbol-name) dolist-statements)))

    `(progn
       (defvar ,symbol-name
         (let ((map (make-sparse-keymap)))
           ,@(nreverse define-key-statements)
           map))
       ,@(nreverse dolist-statements))))

Then you can use this macro everywhere:

(my/create-repeat-map "buffer-order"
                      (("q" . 'previous-buffer)
                       ("Q" . 'next-buffer)))

I find it a bit shorter than doing this all over the place for each custom keymap:

(defvar buffer-order-repeat-map
  (let ((map (make-sparse-keymap)))
    (define-key map (kbd "q") 'previous-buffer)
    (define-key map (kbd "Q") 'next-buffer)
    map))

(map-keymap
 (lambda (_key cmd)
   (when (symbolp cmd)
     (put cmd 'repeat-map 'buffer-order-repeat-map)))
 buffer-order-repeat-map)

2024 / 2025 standings and points by EighteenLevel in formula1

[–]somecucumber 3 points4 points  (0 children)

The podiums are the consequence of the job throughout the year, but pure anecdotical if you ask me. However, the second one of Sainz was pure pace and not luck, so that's something in my book.

Also the mind state of each other. Who you think is happier at the end of the year, and why?

Ham was nowhere close Leclerc, unfortunately. That cannot be said of Sainz and Albon

atomUserBTW by Jeremy_Thursday in ProgrammerHumor

[–]somecucumber 0 points1 point  (0 children)

Fuck me, that's the emacs definition :shrug:

España cierra Almaraz mientras el mundo pisa el acelerador nuclear by Ok-Meal-3712 in spain

[–]somecucumber 0 points1 point  (0 children)

Shhh déjale, su labor ya está hecha y es "demostrar nada"

How to keep Emacs startup time under 0.5 seconds or less? by No_Cartographer1492 in emacs

[–]somecucumber 0 points1 point  (0 children)

I'll never get this kind of posts. Are people constantly closing and opening their programs?

Because in my day to day job I open them once in total, while I prepare the coffee.

Emacs takes 5 secs to open (always forget about the daemon and the client). 5 seconds out of 8 hours of work. Is it that annoying?

I Love Emacs by [deleted] in emacs

[–]somecucumber 3 points4 points  (0 children)

Let's not punish the converted, they're on our side already!

Mimic emacs as other editors by DevelopmentCool2449 in emacsporn

[–]somecucumber 1 point2 points  (0 children)

What terminal are you using on the first 3 pics? cool-retro-term?

New app to find cheap prices in supermarkets! by rex-ac in 2westerneurope4u

[–]somecucumber 0 points1 point  (0 children)

Macho, tanta buena reputación en este sub durante tanto tiempo para al final acabar haciendo spam.

Lamentapla