Rewrite autoload/message.el & move to format.el

Adds new convenience macros like print! and insert!, and adds classes;
which are helper functions that can be called inline within format!,
print! et co, e.g.

  (format! "%s" (filename "/tmp/some/file")) ; => file
  (format! "%s" (relpath "/tmp/some/file" "/tmp")) ; => some/file
  (format! "%s" (dirname "/tmp/some/file")) ; => /tmp/some

Check out doom-format-class-alist for more.
This commit is contained in:
Henrik Lissner 2019-07-21 13:52:59 +02:00
parent 99e23adec1
commit 987061aedd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 232 additions and 133 deletions

View file

@ -28,7 +28,7 @@
(setq debug-on-error t))
(require 'pp)
(load (expand-file-name "core/autoload/message" user-emacs-directory) nil t)
(load (expand-file-name "core/autoload/format" user-emacs-directory) nil t)
(defvar doom-init-p nil)