public
Created

  • Download Gist
scratch.el
Emacs Lisp
1 2 3 4 5 6
 
(require 'cl)
(let* ((commands (loop for s being the symbols when (commandp s) collect s))
(help (describe-function (nth (random (length commands)) commands)))
(commented-help (replace-regexp-in-string "^" ";; " help)))
(setq initial-scratch-message commented-help))

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.