feat(emacs): fix org-contacts, add calfw

This commit is contained in:
Pavel Korytov 2023-02-08 13:02:08 +03:00
parent 87626e0539
commit 8b954419fe
2 changed files with 48 additions and 18 deletions

View file

@ -545,6 +545,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(global-undo-tree-mode)
(setq undo-tree-visualizer-diff t)
(setq undo-tree-visualizer-timestamps t)
(setq undo-tree-auto-save-history nil)
(my-leader-def "u" 'undo-tree-visualize)
(fset 'undo-auto-amalgamate 'ignore)
@ -3627,11 +3628,23 @@ skip exactly those headlines that do not match."
(use-package org-contacts
:straight (:type git :repo "https://repo.or.cz/org-contacts.git")
:if (not my/remote-server)
:commands (org-contacts org-contacts-db)
:after (org)
:config
(setq org-contacts-files (list
(concat org-directory "/contacts.org"))))
(defun my/calfw-setup-buffer ()
(display-line-numbers-mode -1))
(use-package calfw
:straight t
:config
(add-hook 'cfw:calendar-mode-hook #'my/calfw-setup-buffer))
(use-package calfw-org
:after (calfw org)
:straight t)
(use-package org-latex-impatient
:straight (:repo "yangsheng6810/org-latex-impatient"
:branch "master"

View file

@ -934,6 +934,7 @@ References:
(global-undo-tree-mode)
(setq undo-tree-visualizer-diff t)
(setq undo-tree-visualizer-timestamps t)
(setq undo-tree-auto-save-history nil)
(my-leader-def "u" 'undo-tree-visualize)
(fset 'undo-auto-amalgamate 'ignore)
@ -5081,7 +5082,7 @@ It seems the package has been somewhat revived in the recent months. It used thi
(use-package org-contacts
:straight (:type git :repo "https://repo.or.cz/org-contacts.git")
:if (not my/remote-server)
:commands (org-contacts org-contacts-db)
:after (org)
:config
(setq org-contacts-files (list
(concat org-directory "/contacts.org"))))
@ -5097,6 +5098,22 @@ An example contact entry can look like this:
:BIRTHDAY: [1998-08-14]
:END:
#+end_example
*** Calendar view
[[https://github.com/kiwanami/emacs-calfw][calfw]] is a nice package that displays calendars in Emacs.
#+begin_src emacs-lisp
(defun my/calfw-setup-buffer ()
(display-line-numbers-mode -1))
(use-package calfw
:straight t
:config
(add-hook 'cfw:calendar-mode-hook #'my/calfw-setup-buffer))
(use-package calfw-org
:after (calfw org)
:straight t)
#+end_src
** UI
*** OFF (OFF) Instant equations preview
Instant math previews for org mode.