Fix show-root switch-to-buffer
This commit is contained in:
parent
17e4ed6783
commit
bbddc90552
1 changed files with 2 additions and 1 deletions
|
@ -164,6 +164,7 @@ if the user is not present"
|
||||||
"The keymap for mattermost-mode")
|
"The keymap for mattermost-mode")
|
||||||
|
|
||||||
(defun show-root ()
|
(defun show-root ()
|
||||||
|
"Populates the Mattermost Root buffer and changes to it"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((rootb (get-buffer-create "*Mattermost Root*")))
|
(let ((rootb (get-buffer-create "*Mattermost Root*")))
|
||||||
(with-current-buffer rootb
|
(with-current-buffer rootb
|
||||||
|
@ -181,7 +182,7 @@ if the user is not present"
|
||||||
(insert (format "> [%s] %s\n" channel-id (if (string= channel-display-name "")
|
(insert (format "> [%s] %s\n" channel-id (if (string= channel-display-name "")
|
||||||
channel-name
|
channel-name
|
||||||
channel-display-name)))))))))
|
channel-display-name)))))))))
|
||||||
(set-buffer rootb)))
|
(switch-to-buffer rootb)))
|
||||||
|
|
||||||
(define-derived-mode mattermost-root-mode fundamental-mode "Mattermost Root"
|
(define-derived-mode mattermost-root-mode fundamental-mode "Mattermost Root"
|
||||||
"Mode to list the Mattermost teams and channels to allow the
|
"Mode to list the Mattermost teams and channels to allow the
|
||||||
|
|
Loading…
Reference in a new issue