summaryrefslogtreecommitdiffstats
path: root/blog/blog-2012-05-02-2136.org
blob: 8ea8b361f35f8bd6530e9fa516344504c7154512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.