Puppet Class: profile::emacs

Defined in:
modules/profile/manifests/emacs.pp

Overview

Parameters:

  • disable_backup_files (Boolean) (defaults to: lookup('profile::emacs::disable_backup_files', {default_value => true}))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'modules/profile/manifests/emacs.pp', line 1

class profile::emacs(
  Boolean $disable_backup_files = lookup('profile::emacs::disable_backup_files', {default_value => true}),
){

  ensure_packages(['emacs-nox'])

  if $disable_backup_files {
    $ensure = 'present'
  } else {
    $ensure = 'absent'
  }

  file { '/etc/emacs/site-start.d/99disable-backup-files.el':
    ensure  => $ensure,
    content => ";; Puppet: Backup files are unwanted\n(setq make-backup-files nil)\n",
    require => Package['emacs-nox'],
  }
}