helm/rake/pkg/emacs.rake

27 lines
638 B
Ruby
Raw Normal View History

desc "Ensure emacs is installed and up to date"
task :emacs => "emacs:update"
namespace :emacs do
2014-07-17 05:18:53 -07:00
task :install do
Homebrew.install("emacs", "--with-gnutls --cocoa --keep-ctags --srgb")
Homebrew.install "aspell"
github('hlissner/emacs.d', '~/.emacs.d')
end
2014-07-17 05:18:53 -07:00
task :update do
echo "Updating emacs.d"
sh_safe "cd ~/.emacs.d && git pull"
2014-07-17 05:18:53 -07:00
echo "You'll have to update emacs manually!"
end
2014-07-17 05:18:53 -07:00
task :remove do
echo "Uninstalling emacs"
Homebrew.remove "emacs"
Homebrew.remove "aspell"
rm_rf "~/.emacs.d" if Dir.exists? "~/.emacs.d"
end
end