Changeset - a717a6ccd782
[Not reviewed]
0 2 1
Branko Majic (branko) - 7 years ago 2016-11-21 21:58:52
branko@majic.rs
MAR-65: Disable Emacs electric-indent-mode by default via common role (if Emacs is installed via common_packages).
3 files changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
docs/rolereference.rst
Show inline comments
 
@@ -242,6 +242,8 @@ The role implements the following:
 
* Sets-up uniform bash prompt for all accounts (optionally coloured and with
 
  identifier). This is useful for distinguishing machines and/or environments.
 
* Installs additional base packages, as configured.
 
* Disables ``electric-indent-mode`` in Emacs globally if either the ``emacs24``
 
  or ``emacs24-nox`` are installed through the role.
 
* Creates additional operating system groups, as configured.
 
* Creates additional operating system users, as configured.
 
* Hardens the SSH server by disabling remote ``root`` logins and password-based
roles/common/files/01disable-electric-indent-mode.el
Show inline comments
 
new file 100644
 
; Disable the electric-indent-mode by default for all users.
 
(electric-indent-mode -1)
roles/common/tasks/main.yml
Show inline comments
 
@@ -43,6 +43,11 @@
 
  apt: name="{{ item }}" state="present"
 
  with_items: "{{ common_packages }}"
 

	
 
- name: Disable electric-indent-mode for Emacs by default for all users
 
  copy: src="01disable-electric-indent-mode.el" dest="/etc/emacs/site-start.d/01disable-electric-indent-mode.el"
 
        owner=root group=root mode=644
 
  when: "'emacs24' in common_packages or 'emacs24-nox' in common_packages"
 

	
 
- name: Set-up operating system groups
 
  group: name="{{ item.name }}" gid="{{ item.gid | default(omit) }}" state=present
 
  with_items: "{{ os_groups }}"
0 comments (0 inline, 0 general)