If I have a folder structure set up like this:
~/Projects
emacs
package1
package1-helpers
package2
package2-helpers
package2-more-helpers
package3
package3-helpers
How do I add these folders:
- ~/Projects/emacs
- ~/Projects/emacs/package1
- ~/Projects/emacs/package2
- ~/Projects/emacs/package3
...to the load-path
from my .emacs file?
I basically need a short automated version of this code:
(add-to-list 'load-path "~/Projects/emacs")
(add-to-list 'load-path "~/Projects/emacs/package1")
(add-to-list 'load-path "~/Projects/emacs/package2")
(add-to-list 'load-path "~/Projects/emacs/package3")
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…