mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
app/twitter: error handling for =twitter
This commit is contained in:
@ -5,12 +5,18 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(+workspace-switch "Twitter" t)
|
(+workspace-switch "Twitter" t)
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
|
(condition-case ex
|
||||||
|
(progn
|
||||||
(call-interactively 'twit)
|
(call-interactively 'twit)
|
||||||
|
(unless (get-buffer (car twittering-initial-timeline-spec-string))
|
||||||
|
(error "Failed to open twitter"))
|
||||||
(switch-to-buffer (car twittering-initial-timeline-spec-string))
|
(switch-to-buffer (car twittering-initial-timeline-spec-string))
|
||||||
(dolist (name (cdr twittering-initial-timeline-spec-string))
|
(dolist (name (cdr twittering-initial-timeline-spec-string))
|
||||||
(split-window-horizontally)
|
(split-window-horizontally)
|
||||||
(switch-to-buffer name))
|
(switch-to-buffer name))
|
||||||
(balance-windows))
|
(balance-windows))
|
||||||
|
('error
|
||||||
|
(+twitter/quit-all))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +twitter/quit ()
|
(defun +twitter/quit ()
|
||||||
|
Reference in New Issue
Block a user