Skip to content
Snippets Groups Projects
Commit b1ddd20c authored by Milan Santosi's avatar Milan Santosi
Browse files

some emacs tweaks for the presentation;

maybe I'll debug this faulty factorial example
parent 47b621be
No related branches found
No related tags found
No related merge requests found
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))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment