From c90daec5f4a91cf1041a5a61411d860ea4329ece Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 21 Jun 2012 21:24:54 +0200 Subject: Initial commit --- blog/blog-2012-05-02-2136.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 blog/blog-2012-05-02-2136.org (limited to 'blog/blog-2012-05-02-2136.org') diff --git a/blog/blog-2012-05-02-2136.org b/blog/blog-2012-05-02-2136.org new file mode 100644 index 0000000..8ea8b36 --- /dev/null +++ b/blog/blog-2012-05-02-2136.org @@ -0,0 +1,21 @@ +#+TITLE: Show identica icon with new dents +#+DESCRIPTION: I kinda like it + +I've written this a while ago after I found out how images can be +added to the emacs modeline. I like being notified of things that go +on, and new dents is a good example of this, though ~notify-send~ and +an urgency hint don't always work for that. + +This works: + +#+BEGIN_SRC emacs-lisp +(add-to-list + 'global-mode-string + '(:eval + (unless (zerop identica-new-dents-count) + (propertize " " 'display identica-active-indicator-image)))) +#+END_SRC + +This will show an icon in your modeline whenever there are new dents, +at this time there dents will not have been loaded into the buffer, so +you'll have to refresh it, after which the icon disappears. -- cgit v1.2.3-54-g00ecf