Unhang Emacs

In most cases it is enough to run pkill -SIGUSR2 emacs it enables debug-on-quit which is annoying - we need to run toggle-debug-on-quit after.

Loops and maps (cl)

  • cl-loop
(let ((lower ?A) (upper ?Z))
  (cl-loop for x from 0 to (-  upper lower)
           collect (char-to-string (+ lower x))
           ))

(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z)

  • dash.el operations

      (->> '("en" "de" "pl" "sw")
        (-map
         (lambda (x) (concat "\"lang is " x "\"")))
        (-reduce (lambda(x y) (concat x ",\n" y)))
        )
    

    “lang is en”, “lang is de”, “lang is pl”, “lang is sw”