Skip to content

Instantly share code, notes, and snippets.

@nhocki
Created December 12, 2014 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhocki/7744a6f939abd71880a9 to your computer and use it in GitHub Desktop.
Save nhocki/7744a6f939abd71880a9 to your computer and use it in GitHub Desktop.
My emacs manifest for Boxen
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