I\'ve been experimenting with the org-babel tutorial that describes how to put the bulk of your emacs init.el file into an org file. However, I would like to use org-mode 8 (mai
Though already solved and only somewhat related, I thought I would offer this for those who don't use package-based solutions but need to unload things like org and cedet/semantic, etc. without restarting emacs.
In general for unloading a set of features based on a starting name regexp, I would do something like this - which seems more complete than the hardcoded version from Andreas' answer, which doesn't seem to cover all loaded org features (at least in my case).
load-history
is a massive assoc list of files -> reqs,provides,defuns,...
(mapc
#'(lambda (f) (and (featurep f) (unload-feature f t)))
(loop for file-syms in load-history
for prov = (assoc 'provide file-syms)
with features
if (and prov (string-match "^org" (symbol-name (cdr prov))))
collect (cdr prov) into features
finally return features))
Replace the regexp "^org"
to suit your needs, or go wild and make it a defun.
This could also be modified to grab all loaded org features from load-history
, unload them, add the new load-path, and reload those same features from the new location.