Permalink
Browse files

In Emacs 24 hippie-expand-try-functions-list is undefined unless you …

…first ensure that hippie-exp is loaded. Help in determining this was provided by Dmitry Gutov (dgutov)
  • Loading branch information...
1 parent f876cef commit cba6618caec2367470efabb244a93b9363df7979 @kencausey kencausey committed Oct 17, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 starter-kit-misc.el
View
@@ -118,11 +118,13 @@ comment as a filename."
(random t) ;; Seed the random-number generator
;; Hippie expand: at times perhaps too hip
-(dolist (f '(try-expand-line try-expand-list try-complete-file-name-partially))
- (delete f hippie-expand-try-functions-list))
-
-;; Add this back in at the end of the list.
-(add-to-list 'hippie-expand-try-functions-list 'try-complete-file-name-partially t)
+(eval-after-load 'hippie-exp
+ '(progn
+ (dolist (f '(try-expand-line try-expand-list try-complete-file-name-partially))
+ (delete f hippie-expand-try-functions-list))
+
+ ;; Add this back in at the end of the list.
+ (add-to-list 'hippie-expand-try-functions-list 'try-complete-file-name-partially t)))
(eval-after-load 'grep
'(when (boundp 'grep-find-ignored-files)

0 comments on commit cba6618

Please sign in to comment.