$ whois emacs-lisp
Emacs Lisp
first released in 1985 · by Richard Stallman
$ guessprog --inspect emacs-lisp
- year
- 1985
- paradigm
- multi paradigm
- family
- lisp
- memory
- automatic gc
- binding
- dynamic
- safety
- strong
EMACS-LISP(7)
- AUTHORS
- Richard Stallman
- HISTORY
- Richard Stallman created Emacs Lisp in 1985 as the extension language of GNU Emacs, one of the first programs of the GNU project. Earlier Emacs versions had been written in TECO macros at MIT, while Bernard Greenberg's Multics Emacs had shown the power of an editor extended in Lisp. GNU Emacs has a small core in C, and most of the editor itself is written in Emacs Lisp. For decades it used only dynamic scoping; lexical binding arrived as an option in Emacs 24, in 2012.
- USAGE
- Emacs Lisp is used almost exclusively to configure and extend Emacs, from personal init files to large packages such as Org mode and Magit. It is niche outside that world, but the Emacs package ecosystem remains active.
- SEE ALSO
- Emacs Lisp on Wikipedia ↗
;;; count-words.el --- toy example -*- lexical-binding: t -*-
(defun my/count-words-in-buffer ()
"Count the words in the current buffer and report them."
(interactive)
(let ((count 0))
(save-excursion
(goto-char (point-min))
(while (forward-word 1)
(setq count (1+ count))))
(message "Buffer has %d words" count)))
(global-set-key (kbd "C-c w") #'my/count-words-in-buffer)