Hi,
I'm rather new to Ciao-Prolog and I got a problem creating my own loader file: I want the library(system) to be loaded as soon as I open Emacs in Prolog-mode; so I created a file "myStarter.pl" which only consists of the lines
:- use_package(iso). :- use_module(library(system)).
but when I consult it (... open it in emacs and ^C^C) I'm still not able to use e.g. cd('..') or directory_files('.',F). I first have to enter the use_module(library(system)) clause again. What am I doing wrong? How can I create my individual loader file?
Phil
------------------------------------------- The Fastest Browser on Earth now for FREE!! Download Opera 5 for Windows now! Get it at http://www.opera.com/download/ -------------------------------------------
Dear Phil,
What you have to do is to create a ~/.ciaorc file with that contents:
:- use_package(iso). :- use_module(library(system)).
This file is automatically loaded into the shell if it exists, being in emacs or otherwise.
Daniel
I'm rather new to Ciao-Prolog and I got a problem creating my own loader file: I want the library(system) to be loaded as soon as I open Emacs in Prolog-mode; so I created a file "myStarter.pl" which only consists of the lines
:- use_package(iso). :- use_module(library(system)).
but when I consult it (... open it in emacs and ^C^C) I'm still not able to use e.g. cd('..') or directory_files('.',F). I first have to enter the use_module(library(system)) clause again. What am I doing wrong? How can I create my individual loader file?