Created
December 12, 2014 08:22
-
-
Save nhocki/7744a6f939abd71880a9 to your computer and use it in GitHub Desktop.
My emacs manifest for Boxen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class people::nhocki::emacs { | |
notice("Setting up ${::boxen_user}'s emacs repo") | |
package { 'cask': | |
ensure => present | |
} | |
$home = "/Users/${::boxen_user}" | |
$src = "${home}/src" | |
$emacs = "${src}/emacsdotd" | |
$homebrew = "${boxen::config::home}/homebrew/opt" | |
$emacsIns = "pull emacs config" | |
file { $emacs: | |
ensure => directory | |
} | |
repository { $emacs: | |
source => 'nhocki/dotemacs', | |
require => File[$emacs] | |
} | |
exec { $emacsIns: | |
command => 'git pull origin master', | |
cwd => $emacs | |
} | |
file { "${home}/.cask": | |
ensure => 'link', | |
target => "${homebrew}/cask", | |
require => Package['cask'] | |
} | |
file { 'create symlink': | |
path => "${home}/.emacs.d", | |
target => $emacs, | |
ensure => 'link' | |
} | |
exec { 'install emacs dependencies': | |
command => 'cask install', | |
cwd => $emacs, | |
require => Exec[$emacsIns], | |
tries => 3, | |
try_sleep => 1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment