summaryrefslogtreecommitdiffstats
path: root/blog/blog-2012-05-02-2136.org
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-06-21 21:24:54 +0200
committerGravatar Tom Willemsen2012-06-21 21:24:54 +0200
commitc90daec5f4a91cf1041a5a61411d860ea4329ece (patch)
treecd8932e1dd5dacdc183a91b55ca4d5c7580e9d36 /blog/blog-2012-05-02-2136.org
downloadorgweb-c90daec5f4a91cf1041a5a61411d860ea4329ece.tar.gz
orgweb-c90daec5f4a91cf1041a5a61411d860ea4329ece.zip
Initial commit
Diffstat (limited to 'blog/blog-2012-05-02-2136.org')
-rw-r--r--blog/blog-2012-05-02-2136.org21
1 files changed, 21 insertions, 0 deletions
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.