Elisp 基础知识
Table of Contents
hello world
(message "hello world")
切换到 M-x lisp-interaction-mode
转换到
输入输出
(defun hello(my-name) (interactive "hello with name: ") (let ((your-name (read-from-minibuffer "enter your name: "))) (switch-to-buffer-other-window "*test*") (erase-buffer) (insert (format "hello %s!\n\nI am %s." your-name my-name)) (other-window 1))) (hello "haoran")