my-hello-emacs関数を定義して,呼び出す
(defun my-hello-emacs()
(message "hello emacs"))
(my-hello-emacs) ; my-hello-emacs関数を呼び出す文字列FOOを変数fooに代入.'はquote関数の略称
(setq foo "FOO")
(set 'foo "FOO") ; setq使わない方法
(set (quote foo) "FOO")Common Lispのtype
(type-of '[1 3 4]) ; vector
(type-of '(1 2 3)) ; cons
(type-of 'foo) ; symbol
(type-of ?a) ; integer入力を求める
(read-from-minibuffer "Enter your name: ")文字列をフォーマット
(format "Hello %s!\n" "visitor")