Simplify display-diary-hook

This commit is contained in:
Tom Willemse 2015-12-17 01:04:01 +01:00
parent b3a0345c7c
commit cc4b99f7fc

View file

@ -144,10 +144,6 @@ MODE1 is enabled and vice-versa."
*jabber-current-status*)
"Online"))
(defun oni:diary-display-func ()
"Function for `diary-display-hook'."
(diary-fancy-display))
(defun oni:enable (functions)
"Set the `disabled' property for each item in FUNCTIONS to nil."
(mapc #'(lambda (f) (put f 'disabled nil)) functions))
@ -1023,7 +1019,7 @@ If no direction is given, don't split."
(add-hook 'before-save-hook 'oni:replace-html-special-chars-in-html-mode)
(add-hook 'css-mode-hook #'rainbow-mode)
(add-hook 'diary-display-hook 'oni:diary-display-func)
(add-hook 'diary-display-hook 'diary-fancy-display)
(add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
(add-hook 'gnus-exit-group-hook 'oni:update-mailcount)
(add-hook 'gnus-exit-gnus-hook 'oni:update-mailcount)