File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
- ; ;; Emacs4CL 0.4.0-dev <https://github.com/susam/emacs4cl>
1
+ ; ;; Emacs4CL 0.4.0 <https://github.com/susam/emacs4cl>
2
2
3
3
; ; Customize user interface.
4
4
(menu-bar-mode 0 )
Original file line number Diff line number Diff line change 25
25
26
26
[ ![ Screenshot of Emacs] [ screenshot ]] [ screenshot ]
27
27
28
- [ screenshot ] : https://i.imgur.com/3BttNWM .png
28
+ [ screenshot ] : https://i.imgur.com/9LoZzHz .png
29
29
30
30
If you are already comfortable with Emacs and only want to understand
31
31
the content of the [ ` .emacs ` ] file, you can skip ahead directly to the
Original file line number Diff line number Diff line change
1
+ ; ;;; Common Lisp Examples.
2
+
3
+ (defun hello-world ()
4
+ " Print 'hello, world' message."
5
+ (format t " hello, world~% " ))
6
+
7
+ (defun factorial (n)
8
+ " Compute factorial of n."
9
+ (if (zerop n)
10
+ 1
11
+ (* n (factorial (- n 1 )))))
12
+
13
+ (defun fibonacci (n)
14
+ " Compute nth Fibonacci number."
15
+ (if (< n 2 )
16
+ n
17
+ (+ (fibonacci (- n 1 )) (fibonacci (- n 2 )))))
You can’t perform that action at this time.
0 commit comments