Closed mamciek closed 12 years ago
Unfortunately the starter kit is a package now, so it gets loaded with all the other packages. If you have any ideas of how this would be implemented I'm open to the idea, but I don't think it's possible with the way packages work.
In most cases it's best to just move everything that needs packages to init.el, which doesn't have this restriction.
unfortunately i do not know Lisp enough to propose implementation but I can see two possible solutions:
Actually I can prepare pull request with solution 1 if you think it is acceptable
Some options:
You can put this:
(eval-after-load 'foo
'(progn
(turn-on-foo-mode)
(do-more-foo-stuff)))
Or this:
(add-hook 'after-init-hook (lambda ()
(require 'foo)
(turn-on-foo-mode)
(do-more-foo-stuff)))
into your starter kit init files.
See https://github.com/technomancy/emacs-starter-kit/issues/108
Starter kit has a nice feature of autoloading all files from directory called the same as username. Starting from version 24 however there is a problem with it. Those files are loaded just after starter kit is loaded by package.el mechanism. The problem is that those files are evaluated before rest of ELPA (or Marmalade) packages are loaded, so i cannot use any functions from packages that are loaded after the starterkit. It should be fixed so files in user-dir are evaluated AFTER package.el has loaded all packages