Linux/Unix Acronyms...Answered by self!!!

John Wenger JohnWenger at earthlink.net
Tue Mar 7 20:48:18 EST 2000


The first time you run emacs it creates a file called
".emacs" in your home directory.  This file initializes
emacs with your preferences, modifications, additions, etc.
when emacs starts up.

The language is elisp, a flavor of lisp for extending emacs,
named from "emacs lisp".

You just have to paste the code from the email msg into your
.emacs file, to set your defaults to your desired values.

Here's a short incomplete explantion of Lisp.

'defun' defines functions.

'setq' sets variable values.

Lisp works with Polish Notation, aka Prefix Notation,
opposite of HP calculators' "Reverse Polish Notation".

Consider three ways of specifying addition in English.

[1]  Prefix Notation:  Add the following numbers.  In Lisp (
+ number_1, number_2, ... number_n)

[2] Infix Notation:  A plus B in English is equivalent to
lisp (+ A B).

[3] Suffix Notation: The numbers A and B, the Summation of; 
= Lisp (+ A B) = HP Calculator A Enter, B, +.


"Kevin M. Gleason" wrote:
> 
> John,
> 
> Where would I actually find this code? Or is there a way of changing Emacs
> settings from within emacs (like a init file that emacs reads before starting
> up)? What kind of language are we talking (LISP, I summize from the readings)?
> Would I have to go into Emacs source code (if so, what's it called on my
> drive)? Sorry for all of the questions but you peeked my interest with the
> statement below.
> 
> Kevin
> 
> John Jannotti wrote:
> 
> > Regarding emacs auto-save times, you can set auto-save-interval and
> > auto-save-timeout.  I use the following functions to adjust auto-save,
> > when, for instance, I am working on battery power and don't want my disk to
> > spin up.
> >
> > interval - number of keyboard characters between saves
> > timeout - number of idle seconds before auto save
> >
> > (defun auto-save-never ()
> >   (interactive)
> >   (setq auto-save-interval 0)
> >   (setq auto-save-timeout 0))
> >
> > (defun auto-save-defaults ()
> >   (interactive)
> >   (setq auto-save-interval 300)
> >   (setq auto-save-timeout 960))
> >
> > (defun auto-save-less ()
> >   (interactive)
> >   (setq auto-save-interval (* 2 auto-save-interval))
> >   (setq auto-save-timeout (* 2 auto-save-timeout)))
> >
> >   jj
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list