help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ELPA


From: Emanuel Berg
Subject: Re: ELPA
Date: Tue, 12 Jan 2021 22:57:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> I think there should be a way to recursively add a directory
> to the load path, so all the subdirs would be added as well,
> but without doing anything else, after that one could
> compile, require, load, etc, without restrictions.

Like this maybe?

(require 'cl-lib)

(defun push-all (base)
  (let ((dirs (cl-remove-if-not
               (lambda (f) (file-accessible-directory-p f))
               (directory-files-recursively base "" t))))
    (setf load-path (nconc dirs load-path) )))

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]