delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/29/23:00:48

From: robk AT cyberway DOT com DOT sg (Rob Kramer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Emacs project file?
Date: Wed, 30 Aug 2000 10:48:56 +0800
Message-ID: <MPG.1416f6f2619dbfce98969f@news.cyberway.com.sg>
References: <8oh6s4$3l1$3 AT ctb-nnrp2 DOT saix DOT net> <200008300201 DOT HAA00874 AT midpec DOT com>
X-Newsreader: Anawave Gravity v2.00
NNTP-Posting-Host: 203.116.147.240
X-Trace: 30 Aug 2000 10:46:34 +0800, 203.116.147.240
Organization: StarHub Internet -- The Preferred ISP
Lines: 33
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <200008300201 DOT HAA00874 AT midpec DOT com>, tr AT midpec DOT com says...
> | Is it possible to get Emacs to create some kind of project file like SETEDIT
> | does? I.e. to make it load a set of files automatically when you restart it,
> | like say a set of project files for a program you are currently working on?
> 
> There's no concept of a project file in EMACS. You'll have to write a
> Makefile which does the job of compiling the necessary files and
> linking them. Btw, that's what acually happens when you use a project
> file.

Well, the 'desktop' library is very useful. It reloads the state you left 
emacs in on startup. From my .emacs (which I ripped from someone else, 
etc.) :

;; =================================================================
;; Saving Emacs Sessions - Useful when you have a bunch of source
;; files open and you don't want to go and manually open each
;; one, especially when they are in various directories. Page 377
;; of the GNU Emacs Manual says: "The first time you save the state
;; of the Emacs session, you must do it manually, with the command
;; M-x desktop-save. Once you have dome that, exiting Emacs will
;; save the state again -- not only the present Emacs session, but
;; also subsequent sessions. You can also save the state at any
;; time, without exiting Emacs, by typing M-x desktop-save again.
;; =================================================================

(load "desktop")
(desktop-load-default)
(desktop-read)

See apropos.

	RoB

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019