1. Yuya Nishihara
  2. dotfiles

Commits

Yuya Nishihara  committed 35dd236

emacs: work around missing image-load-path required by anything

  • Participants
  • Parent commits 52b9787
  • Branches default

Comments (0)

Files changed (1)

File dot.emacs

View file
  • Ignore whitespace
            (executable-find "ruby1.8"))
       (setq migemo-command "ruby1.8")))
 
-(require 'anything-startup nil t)
+(when (locate-library "anything-startup")
+  ; anything-config depends on image-load-path, which may be missing
+  (if (not (boundp 'image-load-path))
+      (setq image-load-path '()))
+  (require 'anything-startup))
 
 (setq-default indent-tabs-mode nil)
 (setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))