unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to load a lisp file automatically
@ 2003-12-11 19:34 Chunyan Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Chunyan Wang @ 2003-12-11 19:34 UTC (permalink / raw)
  Cc: Erica Wang

hi, all,

I am sorry for the mass mailing.  I can use commands "M-x load-file
~/setnu.elc" that loads the lisp file into emacs.  My question is how to
load a lisp file automatically every time emacs is used.  I have compiled
the setnu.el lisp file into .elc file and have both of the files under my
home directory.

Here are the code that I added to .emacs file:

(setq load-path (cons "~/" load-path))
(require 'setnu)
(add-hook 'text-mode-hook 'turn-on-setnu-mode)

Thanks in advance for your time.


Erica Wang
331789 GaTech Station, Atlanta, GA 30332
Email: gte274s@prism.gatech.edu

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.1601.1071175004.399.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2003-12-12 12:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-11 19:34 How to load a lisp file automatically Chunyan Wang
     [not found] <mailman.1601.1071175004.399.help-gnu-emacs@gnu.org>
2003-12-11 20:17 ` Kin Cho
2003-12-12 12:47   ` Joakim Hove

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).