diff options
author | jao <jao@gnu.org> | 2021-08-13 19:58:45 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-08-13 19:58:45 +0100 |
commit | cf59fd9a42f7896e2e91c2b1caf1a66bd8720f1a (patch) | |
tree | 80bc27a56cf50b3822dfbb067ff7df3ec7a643f0 | |
parent | 1dbebad9a786aea7f177e27d204771b11d04f2d9 (diff) | |
download | elibs-cf59fd9a42f7896e2e91c2b1caf1a66bd8720f1a.tar.gz elibs-cf59fd9a42f7896e2e91c2b1caf1a66bd8720f1a.tar.bz2 |
pop-up for fancy diary display
-rw-r--r-- | init.org | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -728,7 +728,7 @@ (add-hook 'diary-list-entries-hook 'diary-sort-entries t) #+END_SRC *** Calendar - #+BEGIN_SRC emacs-lisp + #+begin_src emacs-lisp (setq appt-display-format nil) (appt-activate 1) (setq calendar-latitude 55.9533 @@ -760,7 +760,21 @@ (/ calendar-daylight-savings-ends-time (float 60)) calendar-daylight-time-zone-name))))) - #+END_SRC + + (add-to-list 'display-buffer-alist + `(,(regexp-quote diary-fancy-buffer) + (display-buffer-at-bottom) + (window-parameters (mode-line-format . none)) + (window-height . fit-window-to-buffer))) + + (defun jao-diary--select () + (switch-to-buffer diary-fancy-buffer)) + + (add-hook 'diary-fancy-display-mode-hook #'jao-diary--select) + (setq org-calendar-insert-diary-entry-key nil + org-agenda-diary-file 'diary-file) + + #+end_src *** Weather ***** winttr #+begin_src emacs-lisp @@ -962,7 +976,8 @@ (defun jao-define-attached-buffer (name-rx &optional height) (add-to-list 'display-buffer-alist (jao-attached-buffer-entry name-rx height))) - #+end_src + + #+end_src *** images #+begin_src emacs-lisp (setq image-use-external-converter t) |