all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chunyan Wang <gte274s@mail.gatech.edu>
Cc: Erica Wang <gte274s@mail.gatech.edu>
Subject: How to load a lisp file automatically
Date: Thu, 11 Dec 2003 14:34:04 -0500 (EST)	[thread overview]
Message-ID: <Pine.SOL.4.33.0312111405310.27887-100000@acmex.gatech.edu> (raw)

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

             reply	other threads:[~2003-12-11 19:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-11 19:34 Chunyan Wang [this message]
     [not found] <mailman.1601.1071175004.399.help-gnu-emacs@gnu.org>
2003-12-11 20:17 ` How to load a lisp file automatically Kin Cho
2003-12-12 12:47   ` Joakim Hove

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SOL.4.33.0312111405310.27887-100000@acmex.gatech.edu \
    --to=gte274s@mail.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.