all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@jidanni.org>
Subject: Re: longish Local Variables in Files
Date: Fri, 10 Sep 2004 05:19:37 +0800	[thread overview]
Message-ID: <87d60vywba.fsf@jidanni.org> (raw)
In-Reply-To: 41337037.5030802@yahoo.com

Here's perhaps another example for the Local Variables examples,
which you can put on the info Node "Locals",
which by the way should be renamed "Local Variables",
;Local Variables:
;compile-command: "emacs -batch -l .emacs -f batch-byte-compile .emacs"
;End:
(No I don't know how to use current-buffer instead of hardwiring ".emacs".)
Now even the beginner can get into the obsessive-compulsive habit of
byte-compiling his .emacs.
Wait.  Wrap this around your .emacs instead:
(let ((el (expand-file-name "~/.emacs"))
      (elc (expand-file-name "~/.gnus.elc")))
  (if (file-newer-than-file-p el elc)
      (progn
	(message "%s is not up to date, byte-compiling %s..." el elc)
	(sit-for 1)
	(byte-compile-file el)
	(load elc nil t t))
;ELSE: to the end of the file!
;;guts of .emacs go here
))
I wanted to not hardwire the file names in but they are needed in
during byte-compile apparently,  buffer-file-name can't be used.

  parent reply	other threads:[~2004-09-09 21:19 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2243.1093147432.2011.bug-gnu-emacs@gnu.org>
2004-08-23 20:58 ` longish Local Variables in Files Kevin Rodgers
2004-08-27  1:13   ` Dan Jacobson
2004-08-29  0:17     ` great local variables examples Dan Jacobson
     [not found]   ` <mailman.534.1093712643.1998.bug-gnu-emacs@gnu.org>
2004-08-30 18:21     ` longish Local Variables in Files Kevin Rodgers
2004-08-31 17:23       ` Dan Jacobson
     [not found]       ` <mailman.888.1093976111.1998.bug-gnu-emacs@gnu.org>
2004-08-31 20:27         ` Kevin Rodgers
2004-09-09 21:19       ` Dan Jacobson [this message]
     [not found] <E1C5pOU-0007hf-Ut@fencepost.gnu.org>
2004-09-10 23:24 ` Dan Jacobson
2004-08-21 22:52 Dan Jacobson
     [not found] ` <E1Bz1w0-00035G-KQ@fencepost.gnu.org>
2004-08-23 17:45   ` Dan Jacobson
2004-08-24 21:02     ` Richard Stallman

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=87d60vywba.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    /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.