[feat] add cond-let marco

This commit is contained in:
SouthFox 2024-07-07 20:06:15 +08:00
parent 20eba0d77d
commit d36c62080b

View file

@ -229,6 +229,19 @@
'org-babel-load-languages
'((restclient . t)))
#+end_src
*
** cond-let
终于知道为什么没人想写这个宏了,括号是真得多啊。
#+begin_src emacs-lisp
(defmacro cond-let (forms)
(declare (debug t))
(if forms
`(let* ,(setq varlist (internal--build-bindings (caar forms)))
(if-let ,(car (last varlist))
,(cadar forms)
(cond-let ,(cdr forms))))))
#+end_src
* 杂项
=cnfonts= 是一个可以分别设置中英文字体的 bk ,方便对其表格。