Solutions to the exercises in the `An Introduction to Programming in Emacs Lisp'
Emacs Lisp
Latest commit 7c3daf0 Apr 19, 2014 @RenWenshan Ch. 12: Use better regexp from Elisp Intro Appendix A for
wenshan-search-for-duplicated-words, fix #3
Failed to load latest commit information.
README.org
README_CN.org
ch01.el
ch02.el
ch03.el
ch04.el
ch05.el
ch06.el
ch07.el Ch. 7: Show results of modifying lists Mar 27, 2013
ch08.el
ch09.el
ch10.el
ch11.el
ch12.el
ch13.el
ch15.el
gpl-3.0.txt Added README_CN and README; Mar 9, 2013

README.org

An Introduction to Programming in Emacs Lisp – Solutions

`An Introduction to Programming in Emacs Lisp’ (elisp intro) is a manual that comes with Emacs for programming beginners. This is my review of Elisp Intro: http://wenshanren.org/?p=217

In Emacs, press M-x info, then search for “Emacs Lisp Intro”, now you should be able to read it by simply clicking the result that is found by Emacs. The benefits of reading this manual in Emacs are:

  • Operations such navigation, searching, adding bookmarks and so on are very convenient.
  • You can run the examples in the book when you read it, which is super handy.

This repository is a collection of my solutions to the exercises in the `elisp intro’, including:

ChapterChapter TitleCorresponding File
1List Processingch01.el
2Practicing Evaluationch02.el
3How To Write Function Definitionsch03.el
4A Few Buffer-Related Functionsch04.el
5A Few More Complex Functionsch05.el
6Narrowing and Wideningch06.el
7`car’, `cdr’, `cons’: Fundamental Functionsch07.el
8Cutting and Storing Textch08.el
9How List are Implementedch09.el
10Yanking Text Backch10.el
11Loopingch11.el
12Regular Expression Searchesch12.el
13Counting: Repetition and Regexpsch13.el
15Readying a Graphch15.el

Note:

  • Chapter 14 and chapter 16 do not have exercises.
  • The exercises in chapter 17 are not programming tasks, you can finish them by following the questions.

I am just a beginner of elisp, and my poor English skills might caused some misunderstanding of the exercises. Please feel free to point out any mistakes you might find.

Happy Hacking!

Contributors