Skip to content

Commit

Permalink
Add: (ement-room-list--side-window-after-initial-sync)
Browse files Browse the repository at this point in the history
An alternative to `ement-room-list--after-initial-sync' for use in
`ement-after-initial-sync-hook'.

Also autoload `ement-room-list-side-window' (like `ement-room-list').
  • Loading branch information
Phil Sainty committed Nov 17, 2024
1 parent 66ecdfb commit 025f322
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ement-room-list.el
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ from recent to non-recent for rooms updated in the past hour."
;;;###autoload
(defun ement-room-list--after-initial-sync (&rest _ignore)
"Call `ement-room-list', ignoring arguments.
To be called from `ement-after-initial-sync-hook'."
To be called from `ement-after-initial-sync-hook'.
See also `ement-room-list--side-window-after-initial-sync'."
(ement-room-list))

;;;###autoload
Expand Down Expand Up @@ -757,6 +758,14 @@ DISPLAY-BUFFER-ACTION is nil, the buffer is not displayed."
;; must be set as the current buffer, so we have to do this explicitly here.
(set-buffer buffer-name)))))

;;;###autoload
(defun ement-room-list--side-window-after-initial-sync (&rest _ignore)
"Call `ement-room-list-side-window' ignoring arguments.
To be called from `ement-after-initial-sync-hook'.
See also `ement-room-list--after-initial-sync'."
(ement-room-list-side-window))

;;;###autoload
(cl-defun ement-room-list-side-window (&key (side 'left))
"Show room list in side window on SIDE.
Interactively, with prefix, show on right side; otherwise, on
Expand Down

0 comments on commit 025f322

Please sign in to comment.