Skip to content

Commit 2d27cd3

Browse files
committed
Enable calfw and calfw-blocks for planning calendar slots
Visually looking at the day gives a far more visceral understanding of what you plan to do today. Note that I am using personal recipes for both these projects, until the fixes I've made can be merged upstream. The relevant PRs are: - kiwanami/emacs-calfw#154 - kiwanami/emacs-calfw#155 - ml729/calfw-blocks#1 - ml729/calfw-blocks#2
1 parent 147c07e commit 2d27cd3

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(:name calfw-blocks
2+
:description "Visual enhancements for the Emacs Calendar Framework"
3+
:type github
4+
:pkgname "vedang/calfw-blocks"
5+
:depends (calfw)
6+
:minimum-emacs-version "26.3")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(:name calfw
2+
:type github
3+
:pkgname "vedang/emacs-calfw"
4+
:description "A calendar framework for Emacs (with support for `org-mode', `howm' and iCal files)"
5+
:website "https://github.com/kiwanami/emacs-calfw")

init-el-get.el

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,32 @@
323323
;; leuven-scale-org-agenda-structure nil
324324
;; leuven-scale-volatile-highlight nil)))
325325

326-
;; (:name calfw
327-
;; :after (progn
328-
;; ;; For reasons that I do not understand, the
329-
;; ;; :timestamp value does not work here.
330-
;; (setq cfw:org-agenda-schedule-args
331-
;; '(:deadline :scheduled))))
326+
(:name calfw
327+
:after (with-eval-after-load 'org
328+
(require 'calfw)
329+
(require 'calfw-org)
330+
(setq cfw:org-agenda-schedule-args
331+
'(:deadline :scheduled :timestamp))))
332+
333+
(:name calfw-blocks
334+
:after (with-eval-after-load 'org
335+
(require 'calfw-blocks)
336+
337+
;; From the readme of calfw-blocks
338+
(defun cfw:open-calendar-agenda-blocks ()
339+
(interactive)
340+
(cfw:open-calendar-buffer
341+
:contents-sources
342+
(list
343+
(cfw:org-create-source "medium purple"))
344+
:view 'block-day))
345+
346+
(setq calfw-blocks-earliest-visible-time '(6 0)
347+
calfw-blocks-show-time-grid t
348+
calfw-blocks-show-current-time-indicator t
349+
calfw-blocks-default-event-length 1
350+
cfw:highlight-today nil)))
351+
332352
(:name company-mode
333353
:after (progn (add-hook 'after-init-hook #'global-company-mode)
334354
(setq company-require-match nil

0 commit comments

Comments
 (0)