Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: (ement-room-list--side-window-after-initial-sync) #317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions 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 All @@ -598,7 +599,9 @@ To be called from `ement-after-initial-sync-hook'."
"Show a buffer listing Ement rooms, grouped with Taxy KEYS.
After showing it, its window is selected. The buffer is named
BUFFER-NAME and is shown with DISPLAY-BUFFER-ACTION; or if
DISPLAY-BUFFER-ACTION is nil, the buffer is not displayed."
DISPLAY-BUFFER-ACTION is nil, the buffer is not displayed.

See also `ement-room-list-side-window'."
(interactive)
(let ((window-start 0) (window-point 0)
format-table column-sizes)
Expand Down Expand Up @@ -757,8 +760,16 @@ 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.
"Show `ement-room-list' in side window on SIDE.
Interactively, with prefix, show on right side; otherwise, on
left."
(interactive (when current-prefix-arg
Expand Down
Loading