Commit b1ddd20c authored by Milan Santosi's avatar Milan Santosi

some emacs tweaks for the presentation;

maybe I'll debug this faulty factorial example
parent 47b621be
factorial: factorial.c
gcc -g -o factorial factorial.c
# include <stdio.h>
int main()
{
int i, num, j;
printf ("Enter the number: ");
scanf ("%d", &num );
for (i=1; i<num; i++)
j=j*i;
printf("The factorial of %d is %d\n",num,j);
}
;; Lesson One: Always disable tool- menu- and scrollbars. Here,
;; they're turned on for presentation purposes.
(dolist (mode '(menu-bar-mode tool-bar-mode)) (when (fboundp mode) (funcall mode 1)))
;; So people can actually see what I'm doing.
(add-hook 'minibuffer-setup-hook 'my-minibuffer-setup)
(defun my-minibuffer-setup ()
(set (make-local-variable 'face-remapping-alist)
'((default :height 1.7))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment