Mail Archives: djgpp/2000/08/29/23:00:48
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 -