|
From: | Omar Polo |
Subject: | Re: Elisp - Store path only once |
Date: | Sat, 09 Jan 2021 11:54:00 +0100 |
User-agent: | mu4e 1.4.13; emacs 28.0.50 |
wael-zwaiter@gmx.com writes: > I have a lot of customisation files for emacs stored in the > directory /home/bard/Genadm/build/gadin-1.0/elisp/. > > Would like to store the path so that I can define it only once. > How can I do this in Emacs Lisp. > > > (setq g-eshell > "/home/bard/Genadm/build/gadin-1.0/elisp/g-eshell.el") > > (setq g-utils > "/home/bard/Genadm/build/gadin-1.0/elisp/g-utils.el") Couldn't you just (add-to-list 'load-path "/home/bard/Genadm/build/gadin-1.0/elisp") and then (require 'g-eshell) (require 'g-utils) when needed?
[Prev in Thread] | Current Thread | [Next in Thread] |