mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-24 03:00:10 +00:00
[emacs] Improve the Matrix experience
This commit is contained in:
parent
e5112bbe3b
commit
2975c7da1b
1 changed files with 23 additions and 1 deletions
|
@ -1231,7 +1231,29 @@ Prefer sending HTML-formatted messages with plain text as a fallback option
|
|||
*** Matrix
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! ement
|
||||
:commands 'ement-connect)
|
||||
:commands 'ement-connect
|
||||
:init
|
||||
(defvar +matrix-workspace-name "*Matrix*")
|
||||
(defvar +matrix--old-wconf nil)
|
||||
(defun +matrix ()
|
||||
(interactive)
|
||||
(if (modulep! :ui workspaces)
|
||||
(+workspace/new +matrix-workspace-name)
|
||||
(setq +matrix--old-wconf (current-window-configuration))
|
||||
(delete-other-windows)
|
||||
(switch-to-buffer (doom-fallback-buffer)))
|
||||
(call-interactively #'ement-connect))
|
||||
(defun +matrix/quit ()
|
||||
(interactive)
|
||||
(ement-disconnect (mapcar #'cdr ement-sessions))
|
||||
(when (modulep! :ui workspaces)
|
||||
(+workspace/delete +matrix-workspace-name))
|
||||
(when +matrix--old-wconf
|
||||
(set-window-configuration +matrix--old-wconf)
|
||||
(setq +matrix--old-wconf nil)))
|
||||
:config
|
||||
(when (modulep! :ui popup)
|
||||
(set-popup-rule! "\\*Ement " :ignore t)))
|
||||
#+end_src
|
||||
** Music
|
||||
Configure EMMS for playing music files on my computer.
|
||||
|
|
Loading…
Reference in a new issue