Identi.ca mode for Emacs

Identi.ca is a free software microblogging service, similar to Twitter, based on the Laconi.ca code base. I recently needed to update my status from Emacs, since its faster for me and easier. I’ve been using an an Emacs mode to update my Twitter account, but there was nothing to use for my Identi.ca account. And seeing there’s a Vim plugin, I thought someone, like me, needed an Emacs mode too.

So I forked the original twittering-mode to use it with the Identi.ca platform, using its Twitter compatible api.

System Requirements

  • GNU Emacs 22
  • Linux, Mac OS X, BSD or any Unix based OS (requires curl and wget)

Download

Download identica-mode
Or get the latest development code from the Git repository at http://git.savannah.gnu.org/cgit/identica-mode.git

Installation

Put it in your Emacs elisp files directory (.emacs.d/ in Ubuntu)
Then add the following to your .emacs (or your preferred customizations file)
;;; Identi.ca mode
(require 'identica-mode)
(setq identica-username "yourusername")
(setq identica-password "yourpassword")

If you want to post from the minibufer without having identica buffer active, add the following global keybinding. Add this to send status updates
(global-set-key "\C-cip" 'identica-update-status-interactive)
Add this to send direct messages
(global-set-key "\C-cid" 'identica-direct-message-interactive)

Use

To start identica mode type:
M-x identica-mode
the buffer ‘*identica*’ will appear and you can see your friends timeline.

Press “i” to toggle icon mode to see user pictures.

Identica Emacs mode

To view your replies timeline
C-c C-r
To view the public timeline
C-c C-g
To view your friends timeline (the default timeline)
C-c C-f

To refresh the buffer’s timeline press “g”.

To post an update of your status
Identica mode for Emacs - Update status

C-c C-s
type your message in the minibuffer, and hit Enter. You will see ‘Success: Post’ in minibuffer.

To send a direct message to a user, press
C-c C-d
On the minibuffer, you will be prompted for the username, then for the message.

Hope it can be of use for anyone using Emacs for almost everything, like I try to do, and would like to hear some feedback.

Contribute

If you have any ideas for features, patches or bug fixes, please add them to the identica-mode bug tracking list.

You can also help out if you’ve liked Emacs identica-mode and have some spare change. It would be great to support this project by making any kind of donation on the “tip jar” in appreciation of the hours invested on its development and improvement.



Share:
  • Digg
  • del.icio.us
  • Technorati
  • Reddit
  • StumbleUpon
  • Facebook
  • Meneame
  • FriendFeed
  • Identi.ca
  • Twitter
  • Google Bookmarks
Creative Commons License
The Identi.ca mode for Emacs by Gabriel Saldaña, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Share Alike 2.5 Mexico License.

Related posts:

  1. Emacs identica-mode with multiple timelines and direct messages
  2. Emacs identica-mode version 0.7
  3. 5 ways to promote Identi.ca and Open Microblogging over Twitter
  4. Identica mode for Emacs update: support for any Laconica server
  5. Emacs identica-mode with replies highlighting

You can leave a response, or trackback from your own site.

31 Responses to “Identi.ca mode for Emacs”

  1. anon says:

    Note that identi.ca also supports interaction through XMPP, so you can use emacs-jabber.

  2. arthur says:

    The great thing about laconica and the fact that it’s opensource is that you can re-create identica on your own servers (internal or external).

    Do you think you could modify your plugin so as to be able to configure the server it connects to as well ?

  3. Arthur,

    Good idea, I’ll work on it and let you know.

  4. Kevin Neely says:

    Not bad. Got this working relatively easily. However, I ran into the following problem. I keep getting this in my *Messages*

    error in process sentinel: xml-parse-tag: XML: (Well-Formed) Couldn’t parse tag: tatus_id

    1
    error in process sentinel: XML: (Well-Formed) Couldn’t parse tag: tatus_id

    1

    Any ideas? Any place to post/talk about this?

  5. I’ve been getting that same error too. I talked with some laconi.ca devels and they have no clue what’s wrong on the XML feed. I think its something on my code, but I haven’t been able to trace it.

    I’ll try to get it fixed as soon as possible.

  6. [...] soll auch Leute geben, die nennen das Microblogging [↩] für Emacs existiert Identica-Mode [...]

  7. Arthur,

    I’ve updated identica-mode with your suggestion. Now you can set the laconica server you want to connect to using:

    setq laconica-server "myserver.com"

  8. [...] updated identica-mode for Emacs and now has a way to connect to any laconica server, instead of just [...]

  9. Matt says:

    Just tried identica-mode and am getting the following error:

    error in process sentinel: xml-parse-tag: XML: (Well-Formed) Couldn’t parse tag: eated_at

    This seems similar to the error reported in comment 5.

    Any ideas?

  10. JosefA says:

    Yeah, I’m getting something similar…


    error in process sentinel: xml-parse-tag: XML: (Well-Formed) Couldn't parse tag: ="array"

    0
    error in process sentinel: XML: (Well-Formed) Couldn't parse tag: ="array"

    0

  11. JosefA

    The xml bug has been finally fixed.

  12. Modo identi.ca en Emacs…

    Identi.ca es un servicio de microblogging, del cual les comentaba hace poco algunas actualizaciones. Es como Twitter, pero a mi parecer bastante más útil. Muchos programadores de software libre están aprovechando la plataforma (su diferencia con Tw…

  13. Fernando says:

    Hey Gabriel
    I posted about identica-mode on my blog, and a user asked how he could use it with OpenId. You can check the comment here:
    http://picandocodigo.net/2009/03/modo-identica-en-emacs/comment-page-1/#comment-8413
    Maybe you could include it as a feature on a future release?

    Regards!

    Fernando

  14. Fernando,

    Thanks for the tip, I’ll check that out and see what I can do.

  15. Kevin says:

    I use this mode a lot, thanks for making it! So, I also have some
    suggestions for improvement…

    1. I have these lines in my identica-mode-hook:

    (define-key identica-mode-map “g” ‘identica-friends-timeline)
    (define-key identica-mode-map (kbd “”) ‘identica-click)
    (define-key identica-mode-map “r” ‘identica-enter)

    since “g” is the key to update org-agenda, dired buffers, buffer
    list, etc; and I keep clicking whenever I want to visit a
    link (never put functionality _only_ in the rodent); and “r” just
    seemed like a nice reply button (perhaps “R” could reply to all @’s
    mentioned in the dent?). Don’t know if they should be in the .el
    file, but they feel better for me at least.

    2. It’d also be cool to have some “go to next/previous clickable”
    functions (like Info-next/previous-reference, or
    w3m-next/previous-anchor).

    3. I like the “n/p” functions for next-status-of-person-at-point,
    however it seems to require that point is at the username, one
    should be able to do this from anywhere in the status… (Also, it
    rather confusingly says “Start/End of @foo’s status.” where it perhaps
    should say “This is @foo’s last/first available status update.”)

  16. [...] authentication, so that OpenID users can access the API. That means that OpenID users can now use Emacs identica-mode to post and access their dents. There was a lot of talking about Free Network Services and hope [...]

  17. JosefA says:

    Gabriel, thanks for fixing that XML bug! I got one more for you.

    I run emacs in screen, so tat’s “emacs -nw”. identica-mode works fine except for one thing: it seems when it refreshes, it scrolls to the bottom of the buffer. I am not seeing this in regular windowed emacs.

  18. kmf says:

    Thanks it works like a Charm on Floss.pro :)

  19. [...] Yes, I like using Emacs. I like it a lot. For most of a lot of what you want to do, there’s probably an Emacs mode for that. Which includes posting to identi.ca — identica-mode. [...]

  20. [...] Well great news Emacs Lovers you can update Floss.pro using Emacs+Identica mode for Emacs [...]

  21. [...] wishing or whining about ways to post or update my microblogging acount, I decided to create the Emacs identica-mode, a way to view timelines and update from Emacs, my favorite application. Identica-mode has had good [...]

  22. [...] that I upgrade to the new version, work even keyboard shortcuts. Thank to Gabriel [...]

  23. [...] J’ai découvert hier un mode pour emacs incontournable : identica-mode! [...]

Leave a Reply

Subscribe to RSS Feed