identica_logo
Emacs, GNU/Linux Free Software & Open Source

Identi.ca mode for Emacs

Status.net logo

Identi.ca is a free software microblogging service, similar to Twitter, based on the Status.net 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 or later
  • Linux, Mac OS X, BSD or any Unix based OS (requires wget)

Download

Download the latest stable release of Emacs Identica-mode

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

Installation

Copy the identica-mode.el file to 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")

If you want to authenticate using simple authentication, create a file ~/.authinfo with the following contents:

machine servername login yourusername password yourpassword

Replace servername with your server (if connecting to Identica service, use identi.ca as server name), yourusername and yourpassword with your information.

You can also authenticate using OAuth, specially if you log in with an OpenID account which has no password. To use OAuth authentication (requires using oauth.el), add the following to your .emacs file:

(setq identica-auth-mode "oauth")

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 the “i” key 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-a
To view your friends timeline (the default timeline)
C-c C-f
To view a user’s timeline
C-c C-u
To view a group’s timeline
C-c C-g
To view a tag’s timeline
C-c C-t

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

To post an update of your status, press

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

Identica mode for Emacs - Update status

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.

To repeat (re-dent) a message, press

C-c RET
while the cursor is on the message’s line.

To favor a message, press the “F” key (shift f) while the cursor is on the message’s line.

Additionally, you while typing your message you can press <F4> key while the cursor is over a URL to shorten it using any of the following URL shortening services: Ur1.ca, TightURL, Goo.gl, TinyURL, To.ly and Is.gd. To expand an short url in your timeline, position your cursor over the short url and press ‘e’ key, it will be replaced with the expanded version in a few seconds.

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.

About the author

Gabriel Saldaña Gabriel Saldaña is a web developer, photographer and free software advocate. Connect with him on and Twitter

Creative Commons License
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.

Standard

49 thoughts on “Identi.ca mode for Emacs

  1. 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 ?

  2. 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?

  3. 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.

  4. Pingback: identi.ca in Vim nutzen | F!XMBR

  5. Pingback: Nethazard.net

  6. 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?

  7. 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

  8. Pingback: Picando Código

  9. 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.”)

  10. Pingback: Nethazard.net

  11. 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.

  12. Pingback: Ubuntu Musings » Microblogging from my desktop

  13. Pingback: How do you do, Emacs? « Floss.pro Blog

  14. Pingback: madix's status on Tuesday, 19-May-09 11:00:42 UTC - Identi.ca

  15. Pingback: daltux's status on Thursday, 02-Jul-09 02:50:41 UTC - Identi.ca

  16. Pingback: Jens Kubieziel (qbi) 's status on Wednesday, 15-Jul-09 19:03:46 UTC - Identi.ca

  17. Pingback: Carlos A Perilla (deepspawn) 's status on Monday, 03-Aug-09 00:27:26 UTC - Identi.ca

  18. Pingback: Carlos A Perilla (deepspawn) 's status on Monday, 03-Aug-09 00:29:37 UTC - Identi.ca

  19. Pingback: 5 ways to promote Identi.ca and Open Microblogging over Twitter | Nethazard.net

  20. Pingback: Gabriel Saldana (gabrielsaldana) 's status on Wednesday, 05-Aug-09 16:28:08 UTC - Identi.ca

  21. Pingback: Arun SAG (sagarun) 's status on Wednesday, 12-Aug-09 17:50:14 UTC - Identi.ca

  22. Pingback: Identica-mode « Tius :: blob

  23. Pingback: Julien Pecqueur – Ingénieur CNAM » Blog Archive » identica-mode for emacs

  24. Hi,

    identica-mode looks very nice! Thank you for writing it!

    One thing I’d like to see is easy changing of the way the messages are displayed. The default style in my emacs looks a bit dull compared to (for example) the colorization of texinfo code. Also I’d like to remove the background color for replies (it makes the dents hard to read for me).

    Is it already possible to do that easily?

    Best wishes

  25. Pingback: Emacs: identica-mode – Altertux-blog

  26. Pingback: Identi.ca mode para emacs « a13x00x1

  27. Pingback: Good bye Shyam Karanat | Nethazard.net

  28. Pingback: Identi.ca mode para Emacs « Urpi y el Software Libre

  29. Pingback: Identi.ca mode para emacs : $ a13x00x1

  30. Pingback: identica-mode | Pi ist genau 3

  31. Pingback: Conectar-se a Identi-ca amb Emacs « Cròniques del Pingüí

  32. Pingback: Emacs: Identi.ca mode « Idl3's Blog

  33. Pingback: Modo identi.ca en Emacs « @l30 Guide

  34. Pingback: EasyPG. Храним свои секреты при себе. « Emacs Tips

  35. Pingback: EBlogs - Online Information Need & Know for Internet Marketing.

  36. Bastian says:

    I keep getting the error “error in process filter: Symbol’s function definition is void: aget” with Aquamacs on Mac OSX.

  37. Thanks, but I think its better to change api to https, my country blocked identi.ca and for unknown reason with tor , i get access_token=nil , so I just switch to https via settings and every thing is ok now.

  38. Rikle_S says:

    Hello,

    I try to load this mode.

    Now, when I start Emacs, i have this error message : error: required feature `identica-mode.el’ was not provided

    I work on Archlinux. Thx

  39. Rikle_S says:

    I solved the problem. But now, i have another : I create de .authinfo file, but it seems like it doesn’t use/read it, because it ask me identi.ca logins.

    Can someone help me ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>