From 166593c68b66276e36c7d91a9653bb1c44650afc Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Wed, 1 Feb 2017 23:55:35 +0100 Subject: A note on dir-locals and load-path variables With that in the documentation, i'd taken less time to remember the very existence of geiser-guile-load-path, and the fact that paths are added also to the compiled load path... but then i guess it's nice to re-read my code once in a while. --- doc/repl.texi | 5 +++++ elisp/geiser-guile.el | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/repl.texi b/doc/repl.texi index 6a785dd..aad9e51 100644 --- a/doc/repl.texi +++ b/doc/repl.texi @@ -395,6 +395,11 @@ loads a file specified via the @code{-l} flag. If what you want is just loading @file{~/.guile}, leave @code{geiser-guile-init-file} alone and set @code{geiser-guile-load-init-file-p} to @code{t} instead. +These variables controlling your scheme's initialisation process are +good candidates for an entry in a project's @file{.dir-locals.el} file, +so that they are automatically set to a sensible value whenever you +start a REPL in the project's directory. + @subsubheading Racket startup time @cindex startup timeout diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el index dacca55..5dd0c54 100644 --- a/elisp/geiser-guile.el +++ b/elisp/geiser-guile.el @@ -1,6 +1,6 @@ ;; geiser-guile.el -- guile's implementation of the geiser protocols -;; Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009-2017 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -41,8 +41,10 @@ :group 'geiser-guile) (geiser-custom--defcustom geiser-guile-load-path nil - "A list of paths to be added to Guile's load path when it's -started." + "A list of paths to be added to Guile's load path when it's started. +The paths are added to both %load-path and %load-compiled path, +and only if they are not already present. This variable is a +good candidate for an entry in your project's .dir-locals.el." :type '(repeat file) :group 'geiser-guile) -- cgit v1.2.3