summaryrefslogtreecommitdiffstats
path: root/roles/edit
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-08 12:00:47 -0500
committerSacha Chua <sacha@sachachua.com>2022-11-08 12:00:47 -0500
commitc2d647a3cb3a6d456684bcdce327954214352959 (patch)
tree4fe8bf78b9ef868453bb974758856b2c19c20830 /roles/edit
parent5bf4ab50e13a9be2923ddebe69525b40df8ab3bc (diff)
downloademacsconf-ansible-c2d647a3cb3a6d456684bcdce327954214352959.tar.xz
emacsconf-ansible-c2d647a3cb3a6d456684bcdce327954214352959.zip
Update edit and publish configs, tweak OBS, add Mumble client
Diffstat (limited to 'roles/edit')
-rw-r--r--roles/edit/defaults/main.yml1
-rw-r--r--roles/edit/templates/emacsconf-edit.el21
2 files changed, 20 insertions, 2 deletions
diff --git a/roles/edit/defaults/main.yml b/roles/edit/defaults/main.yml
index d57c511..f4e36f0 100644
--- a/roles/edit/defaults/main.yml
+++ b/roles/edit/defaults/main.yml
@@ -8,3 +8,4 @@ emacsconf_edit_packages:
- hydra
- orderless
- projectile
+ - erc
diff --git a/roles/edit/templates/emacsconf-edit.el b/roles/edit/templates/emacsconf-edit.el
index e187c69..b659121 100644
--- a/roles/edit/templates/emacsconf-edit.el
+++ b/roles/edit/templates/emacsconf-edit.el
@@ -64,8 +64,25 @@
("u" emacsconf-upload-dired "upload"))
(global-set-key (kbd "C-c e") #'hydra-emacsconf/body)
+(setq erc-nick "{{ erc_user }}")
+(setq erc-password "{{ erc_password }}")
+(setq erc-server "{{ erc_server }}")
+(setq erc-port "{{ erc_port }}")
+(setq erc-autojoin-channels-alist '((".*"
+ {% for channel in erc_channels %}
+ "#{{ channel }}"
+ {% endfor %}
+ {% for track in emacsconf_tracks %}
+ "#{{ track.channel }}"
+ {% endfor %})))
+
+(defun emacsconf-erc-connect ()
+ (interactive)
+ (erc-tls :server "{{ erc_server }}" :nick erc-nick :password erc-password :port erc-port))
+
(require 'ox-md)
-(server-start)
+(unless (and (boundp 'server-clients) server-clients) (server-start))
(find-file "{{ emacsconf_private_dir }}/conf.org")
-
+(emacsconf-add-org-after-todo-state-change-hook)
+(emacsconf-erc-connect)