(nth 2 when))))))))
(eq w d)))
+(defadvice diary-add-to-list (before mdw-trim-leading-space activate)
+ "Trim leading space from the diary entry string."
+ (save-match-data
+ (let ((str (ad-get-arg 1)))
+ (if (and str (string-match "^[ \t]+" str))
+ (let ((new (replace-match "" nil nil str)))
+ (ad-set-arg 1 new))))))
+
;; Fighting with Org-mode's evil key maps.
(defvar mdw-evil-keymap-keys