some change for reloading plugins

This commit is contained in:
lxsameer 2011-05-24 20:02:45 +04:30
parent a04189e37e
commit 4ff241fe3e
2 changed files with 11 additions and 10 deletions

View File

@ -56,18 +56,19 @@ store their code templates."
(defun load-dir (path) "Load entire directory"
(let (load-elc load-el filelist tmp)
(setq load-elc (concat path "*.elc"))
(setq load-el (concat path "*.el"))
(setq filelist (file-expand-wildcards load-elc))
(setq tmp (file-expand-wildcards load-el))
(setq filelist (append filelist tmp))
(log (format "%s libraries found" filelist))
;; TODO: delete unkown filetypes from filelist
(setq filelist (mapcar 'strip-el-ext filelist))
(mapcar 'load filelist)
(setq load-elc (concat path "*.elc"))
(setq load-el (concat path "*.el"))
(setq filelist (file-expand-wildcards load-elc))
(setq tmp (file-expand-wildcards load-el))
(setq filelist (append filelist tmp))
(log (format "%s libraries found" filelist))
;; TODO: delete unkown filetypes from filelist
(setq filelist (mapcar 'strip-el-ext filelist))
(mapcar 'load filelist)
)
)
(defun init-kuso () "Inittialize Kuso IDE environment"
(log "initializing Kuso . . .")
(let (cur-path-list)

View File

@ -214,4 +214,4 @@ GNUEmacs."
)
)
)
(provide 'django-mode)
(provide 'django-mode)