# Ease of use in Cask 0.6

Cask is the best way to manage your Emacs packages and MELPA is the best place to find them. Because not all packages are set up to be run specifically with the packaging in mind, a lot of feature are still loaded manually (additionally, I am to be blamed for setting them up incorrectly and needing to do something manually in the first place). The convenience with the approach below is never having to update directory paths with each new release of your favorite package on MELPA that may so easily be installed with a cask update. Cask is still under active development, though, so this code may break eventually (my previous approach for example broke as of the 0.6 release).

Examples:

• yas needs a call to yas-load-directory to know where to load stuff
• graphviz-dot-mode needs a manual load of the library according to the docs, though out of curiousity while writing this I checked to see if ###autoload is in place, and it is!
• autocomplete needs a symbolic like for js-mode to work correctly.

Here is my recipe for coping with such things as of Cask 0.6:

(require 'cask "~/.cask/cask.el")


Manually do the loads or tests for the respective packages:

(yas-load-directory (concat (cask-dependency-path gcr/cask-bundle 'yasnippet)
"/snippets"))

(let ((f (concat (cask-dependency-path gcr/cask-bundle 'graphviz-dot-mode)
"/graphviz-dot-mode.el")))
(if (file-exists-p f)

(let ((f (concat (cask-dependency-path gcr/cask-bundle 'auto-complete)