From c0b8f13a02e963f517a6546be7a2846e0163e75f Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 17 May 2022 09:49:40 -0500 Subject: [PATCH] adding hass and fixing mu4e --- README.org | 26 ++++++++++++++++++++++---- init.el | 21 +++++++++++++++++---- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index 9a731ab1..b4b6745f 100644 --- a/README.org +++ b/README.org @@ -43,6 +43,7 @@ - [[#bongo][Bongo]] - [[#emms][EMMS]] - [[#transmission][Transmission]] + - [[#hass][HASS]] - [[#pass][Pass]] - [[#matrixement][Matrix/Ement]] - [[#activitywatch][ActivityWatch]] @@ -2064,7 +2065,8 @@ I'm making a small function in here to open files in the appropriate program usi (call-process "xdg-open" nil 0 nil file))) (setq dired-dwim-target t - delete-by-moving-to-trash t) + delete-by-moving-to-trash t + dired-mouse-drag-files t) (setq dired-listing-switches "-aoh --group-directories-first") (setq dired-hide-details-hide-symlink-targets nil @@ -2206,7 +2208,8 @@ Ledger mode ** MU4E #+begin_src emacs-lisp (use-package mu4e - :ensure nil + ;; :load-path "/etc/profiles/per-user/chris/share/emacs/site-lisp/mu4e/" + :straight nil :config (setq mail-user-agent 'mu4e-user-agent) (setq mu4e-maildir "~/Maildir" @@ -2215,7 +2218,8 @@ Ledger mode mu4e-get-mail-command "mbsync -a" mu4e-update-interval (* 15 60) mu4e-attachment-dir "/home/chris/nextcloud/home/Documents/attachments" - mu4e-completing-read-function #'completing-read) + mu4e-completing-read-function #'completing-read + mu4e-mu-binary "/etc/profiles/per-user/chris/bin/mu") (setq mu4e-contexts (list @@ -2263,7 +2267,7 @@ Ledger mode (smtpmail-starttls-credentials . '(("mail.cochrun.xyz" 587 nil nil))) (smtpmail-auth-credentials . '(("mail.cochrun.xyz" 587 "chris@cochrun.xyz" nil))) (smtpmail-smtp-server . "mail.cochrun.xyz") - (mu4e-compose-signature . "Praising God in all things,\nChris Cochrun"))) + (mu4e-compose-signature . "Praising God in all things,\nChris Cochrun\nchris@tfcconnection.org\nchris@cochrun.xyz"))) (make-mu4e-context :name "gmail" :match-func @@ -2939,6 +2943,20 @@ I use transmission on a server to manage my torrents "ot" 'transmission)) #+end_src +** HASS +Hass is a package to control Home Assistant. I use HA so... I like HASS. +#+begin_src emacs-lisp +(use-package hass + :init + (setq hass-host "home.cochrun.xyz" + hass-port "443" + hass-apikey "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI2NDE1YTU5NzAzZDA0NDY0YTM0MmYzNTI1MjU0NjMwNyIsImlhdCI6MTY1Mjc1NjcwOSwiZXhwIjoxOTY4MTE2NzA5fQ.gGuxtwE2Xc1nGSgqpHiT2us-q04GWjtqnpgSHxvXgNI") + (hass-setup) + :general + (chris/leader-keys + "oh" 'hass-dash-open)) +#+end_src + ** Pass I like to keep my passwords in password-store for a very unixy way of doing things. #+begin_src emacs-lisp diff --git a/init.el b/init.el index 8029997f..99a8e879 100644 --- a/init.el +++ b/init.el @@ -1435,7 +1435,8 @@ targets." (call-process "xdg-open" nil 0 nil file))) (setq dired-dwim-target t - delete-by-moving-to-trash t) + delete-by-moving-to-trash t + dired-mouse-drag-files t) (setq dired-listing-switches "-aoh --group-directories-first") (setq dired-hide-details-hide-symlink-targets nil @@ -1504,7 +1505,8 @@ targets." (use-package ledger-mode) (use-package mu4e - :ensure nil + ;; :load-path "/etc/profiles/per-user/chris/share/emacs/site-lisp/mu4e/" + :straight nil :config (setq mail-user-agent 'mu4e-user-agent) (setq mu4e-maildir "~/Maildir" @@ -1513,7 +1515,8 @@ targets." mu4e-get-mail-command "mbsync -a" mu4e-update-interval (* 15 60) mu4e-attachment-dir "/home/chris/nextcloud/home/Documents/attachments" - mu4e-completing-read-function #'completing-read) + mu4e-completing-read-function #'completing-read + mu4e-mu-binary "/etc/profiles/per-user/chris/bin/mu") (setq mu4e-contexts (list @@ -1561,7 +1564,7 @@ targets." (smtpmail-starttls-credentials . '(("mail.cochrun.xyz" 587 nil nil))) (smtpmail-auth-credentials . '(("mail.cochrun.xyz" 587 "chris@cochrun.xyz" nil))) (smtpmail-smtp-server . "mail.cochrun.xyz") - (mu4e-compose-signature . "Praising God in all things,\nChris Cochrun"))) + (mu4e-compose-signature . "Praising God in all things,\nChris Cochrun\nchris@tfcconnection.org\nchris@cochrun.xyz"))) (make-mu4e-context :name "gmail" :match-func @@ -2156,6 +2159,16 @@ interfere with the default `bongo-playlist-buffer'." :keymaps 'override "ot" 'transmission)) +(use-package hass + :init + (setq hass-host "home.cochrun.xyz" + hass-port "443" + hass-apikey "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI2NDE1YTU5NzAzZDA0NDY0YTM0MmYzNTI1MjU0NjMwNyIsImlhdCI6MTY1Mjc1NjcwOSwiZXhwIjoxOTY4MTE2NzA5fQ.gGuxtwE2Xc1nGSgqpHiT2us-q04GWjtqnpgSHxvXgNI") + (hass-setup) + :general + (chris/leader-keys + "oh" 'hass-dash-open)) + (use-package auth-source-pass :defer 1 :config (auth-source-pass-enable))