Muli Ben-Yehuda's journal

February 3, 2004

it’s the small things that make me happy

Filed under: Uncategorized — Muli Ben-Yehuda @ 11:18 PM

I like emacs’s mode bar to be choke full of information. To that end, I have it display for example the battery status, and also the current date and time. By default (XEmacs 21.4.14), when showing the date and time, it also shows the “you have mail” icon. But since I don’t read mail on the laptop, here’s how to get rid of it:

 
;; prepare to show current time 
(defun prepare-and-display-time() 
  ;; no mail icon - I don't read mail on this box 
  (setq display-time-form-list '(date time load)) 
  ;; do show the day and date 
  (setq display-time-day-and-date t) 
  ;; turn it on 
  (display-time))

;; turn it on 
(prepare-and-display-time) 

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: