X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=emacs-site-start.el;h=3504ed2917c25123e0b81f9a4769ff727259c977;hb=5e62d42f8cd87cf6af3efd325cf63db0da3f9aac;hp=8061b0324268d920eb634ffcce4c607ac5e717f4;hpb=0800c7da65b29ed76b158d845832a5f278c4f714;p=packages%2Femacs.git diff --git a/emacs-site-start.el b/emacs-site-start.el index 8061b03..3504ed2 100644 --- a/emacs-site-start.el +++ b/emacs-site-start.el @@ -1,9 +1,7 @@ -;; Aspell is a replacement for ispell -(setq-default ispell-program-name "aspell") +;; Load all files from @SITE_START_DIR@ -;; Add python support -(setq auto-mode-alist - (cons '("\\.py$" . python-mode) auto-mode-alist)) -(setq interpreter-mode-alist - (cons '("python" . python-mode) - interpreter-mode-alist)) +(dolist + (the-file + (directory-files "@SITE_START_DIR@" + t "^[^.].*\.elc?$")) + (load the-file nil t t))