From 214e1ed72b4dfdbcea6ccfc9a338b13e921bd1dd Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 15 Feb 2013 00:33:57 +0100 Subject: emacs: Start auto-complete after init Since the load paths for ELPA-installed packages doesn't get set-up until after the init file has loaded, defer loading and enabling of auto-complete to after initializations. --- .emacs.d/site-lisp/oni.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.emacs.d/site-lisp') diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el index a2dbea0..2729474 100644 --- a/.emacs.d/site-lisp/oni.el +++ b/.emacs.d/site-lisp/oni.el @@ -104,6 +104,11 @@ DOT are intentionally being skipped." "Function for `emacs-lisp-mode-hook'." (eldoc-mode)) +(defun oni:emacs-startup-func () + "Function for `emacs-init-hook'." + (require 'auto-complete-config) + (ac-config-default)) + (defun oni:erc-mode-func () "Function for `erc-mode-hook'." (erc-fill-mode -1) -- cgit v1.2.3-54-g00ecf