summaryrefslogtreecommitdiffstats
path: root/posts
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-11-06 00:08:20 +0100
committerGravatar Tom Willemsen2012-11-06 00:08:20 +0100
commit66540bfe507936fdd4e44762daa653c270736c4f (patch)
tree215e73dfc8191127e5e1b464022dcbc49d945973 /posts
parentdc8b6982f361a7adc4d99a0ca59099bf020ee80c (diff)
downloadsite-66540bfe507936fdd4e44762daa653c270736c4f.tar.gz
site-66540bfe507936fdd4e44762daa653c270736c4f.zip
Add "Show idendica icon with new dents" archive post
Diffstat (limited to 'posts')
-rw-r--r--posts/Show_identica_icon_with_new_dents.mdwn21
1 files changed, 21 insertions, 0 deletions
diff --git a/posts/Show_identica_icon_with_new_dents.mdwn b/posts/Show_identica_icon_with_new_dents.mdwn
new file mode 100644
index 0000000..b3eaf4d
--- /dev/null
+++ b/posts/Show_identica_icon_with_new_dents.mdwn
@@ -0,0 +1,21 @@
+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:
+
+[[!format el """
+(add-to-list
+ 'global-mode-string
+ '(:eval
+ (unless (zerop identica-new-dents-count)
+ (propertize " " 'display identica-active-indicator-image))))
+"""]]
+
+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.
+
+[[!meta date="2012-05-02 21:36:00"]]
+[[!tag emacs elisp identica mode-line icon coding]]