mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 10:32:51 +00:00
21 lines
552 B
EmacsLisp
21 lines
552 B
EmacsLisp
|
;;
|
||
|
;; Remove Org remnants built into Emacs
|
||
|
;;
|
||
|
|
||
|
;; clean load-path
|
||
|
(setq load-path
|
||
|
(delq nil (mapcar
|
||
|
(function (lambda (p)
|
||
|
(unless (string-match "lisp\\(/packages\\)?/org$" p)
|
||
|
p)))
|
||
|
load-path)))
|
||
|
;; remove property list to defeat cus-load and remove autoloads
|
||
|
(mapatoms (function (lambda (s)
|
||
|
(let ((sn (symbol-name s)))
|
||
|
(when (string-match "^\\(org\\|ob\\|ox\\)\\(-.*\\)?$" sn)
|
||
|
(setplist s nil)
|
||
|
(when (eq 'autoload (car-safe s))
|
||
|
(unintern s)))))))
|
||
|
|
||
|
;; we should now start from a clean slate
|