hayamiz / twittering-mode

An Emacs major mode for Twitter
http://twmode.sourceforge.net/
546 stars 92 forks source link

Support for multiple accounts #83

Open michaelaoash opened 10 years ago

michaelaoash commented 10 years ago

Would it be possible to enable support for posting from multiple accounts? Thank you very much for your consideration.

(BTW thank you very much for twittering-mode; it's terrific.)

M. Ash UMass Amherst

vermiculus commented 10 years ago

+1 for this. I'd be more than willing to lend a hand, but I'm not terribly sure where to start looking, but I imagine twittering-private-info-file holds some answers.

echosa commented 10 years ago

I'll add a +1 for this as well. If I get time, I might look into it myself, but I'm quite busy these days.

michaelsbradleyjr commented 10 years ago

+1

rrmdev commented 9 years ago

+1 [Bump] This would be a very useful and nice feature

marcinant commented 8 years ago

:+1:

saidie commented 6 years ago

+1

Currently, I'm using following not elegant commands to switch accounts.

(defun my/reload-twit ()
  (require 'twittering-mode)

  ;; Clear existing twit buffers
  (mapcar
   (lambda (buffer)
     (twittering-deactivate-buffer buffer)
     (kill-buffer buffer))
   (twittering-get-buffer-list))
  (twittering-unregister-killed-buffer)

  ;; Clear variables
  (setq twittering-private-info-file-loaded nil)
  (setq twittering-account-authorization nil)
  (setq twittering-oauth-access-token-alist nil)
  (setq twittering-buffer-info-list nil)
  (setq twittering-timeline-data-table (make-hash-table :test 'equal))

  (twit))

(defun my/twit-account1 ()
  (interactive)
  (setq twittering-private-info-file (expand-file-name "~/.twittering-mode.gpg"))
  (my/reload-twit))

(defun my/twit-account2 ()
  (interactive)
  (setq twittering-private-info-file (expand-file-name "~/.twittering-mode2.gpg"))
  (my/reload-twit))