6 Nov 2008 wainstead   » (Master)

Been a while since I posted anything; time for some new Emacs Lisp.

While waiting on cron, I find myself running "date" over and over to see when the top of the hour has arrived... but why not make the status bar do this for me? (I'm in shell mode usually).

Dunno how much this will punish your system; I'm running it via X11, displayed locally with no problems, and also in a terminal window on a remote server and there's no display flickering or anything.


;; check the man page for the 'date' command to format the
;; day/time differently..
(defun sw-display-seconds-in-status-bar ()
  "Make the clock display the seconds so I know when cron is
going to run..."
  (interactive)
  (setq display-time-interval 1)
  (setq display-time-format "%c")
  (display-time)
  )

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!