This is second of three big naming convention changes. In this commit, we change the naming conventions for hook functions and variable functions: 1. Replace the bar | to indicate a hook function with a -h suffix, e.g. doom|init-ui -> doom-init-ui-h doom|run-local-var-hooks -> doom-run-local-var-hooks-h 2. And add a -fn suffix for functions meant to be set on variables, e.g. (setq magit-display-buffer-function #'+magit-display-buffer-fn) See ccf327f8 for the reasoning behind these changes.
51 lines
1.4 KiB
EmacsLisp
51 lines
1.4 KiB
EmacsLisp
;;; app/calendar/config.el -*- lexical-binding: t; -*-
|
|
|
|
(defvar +calendar-open-function #'+calendar/open-calendar
|
|
"TODO")
|
|
|
|
|
|
;;
|
|
;; Packages
|
|
|
|
(def-package! calfw
|
|
:commands (cfw:open-calendar-buffer)
|
|
:config
|
|
;; better frame for calendar
|
|
(setq cfw:face-item-separator-color nil
|
|
cfw:render-line-breaker 'cfw:render-line-breaker-none
|
|
cfw:fchar-junction ?╋
|
|
cfw:fchar-vertical-line ?┃
|
|
cfw:fchar-horizontal-line ?━
|
|
cfw:fchar-left-junction ?┣
|
|
cfw:fchar-right-junction ?┫
|
|
cfw:fchar-top-junction ?┯
|
|
cfw:fchar-top-left-corner ?┏
|
|
cfw:fchar-top-right-corner ?┓)
|
|
|
|
(define-key cfw:calendar-mode-map "q" #'+calendar/quit)
|
|
|
|
(add-hook 'cfw:calendar-mode-hook #'doom-mark-buffer-as-real-h)
|
|
(add-hook 'cfw:calendar-mode-hook 'hide-mode-line-mode)
|
|
|
|
(advice-add #'cfw:render-button :override #'+calendar*cfw:render-button))
|
|
|
|
|
|
(def-package! calfw-org
|
|
:commands (cfw:open-org-calendar
|
|
cfw:org-create-source
|
|
cfw:open-org-calendar-withkevin
|
|
my-open-calendar))
|
|
|
|
|
|
(def-package! org-gcal
|
|
:commands (org-gcal-sync
|
|
org-gcal-fetch
|
|
org-gcal-post-at-point
|
|
org-gcal-delete-at-point)
|
|
:config
|
|
;; hack to avoid the deferred.el error
|
|
(defun org-gcal--notify (title mes)
|
|
(message "org-gcal::%s - %s" title mes)))
|
|
|
|
|
|
;; (def-package! alert)
|