Simplify display-diary-hook
This commit is contained in:
parent
b3a0345c7c
commit
cc4b99f7fc
1 changed files with 1 additions and 5 deletions
|
@ -144,10 +144,6 @@ MODE1 is enabled and vice-versa."
|
||||||
*jabber-current-status*)
|
*jabber-current-status*)
|
||||||
"Online"))
|
"Online"))
|
||||||
|
|
||||||
(defun oni:diary-display-func ()
|
|
||||||
"Function for `diary-display-hook'."
|
|
||||||
(diary-fancy-display))
|
|
||||||
|
|
||||||
(defun oni:enable (functions)
|
(defun oni:enable (functions)
|
||||||
"Set the `disabled' property for each item in FUNCTIONS to nil."
|
"Set the `disabled' property for each item in FUNCTIONS to nil."
|
||||||
(mapc #'(lambda (f) (put f 'disabled nil)) functions))
|
(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 'before-save-hook 'oni:replace-html-special-chars-in-html-mode)
|
||||||
|
|
||||||
(add-hook 'css-mode-hook #'rainbow-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 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
|
||||||
(add-hook 'gnus-exit-group-hook 'oni:update-mailcount)
|
(add-hook 'gnus-exit-group-hook 'oni:update-mailcount)
|
||||||
(add-hook 'gnus-exit-gnus-hook 'oni:update-mailcount)
|
(add-hook 'gnus-exit-gnus-hook 'oni:update-mailcount)
|
||||||
|
|
Loading…
Reference in a new issue