From 0a3d30f317932170bc7938da045f7ce71d6d7e93 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 9 Dec 2021 05:51:33 -0600 Subject: [PATCH] adding notifications to org-mode and new yasnippet --- README.org | 22 +++++++++++++++++++++- init.el | 10 +++++++++- yasnippets/org-mode/quote | 8 ++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 yasnippets/org-mode/quote diff --git a/README.org b/README.org index 3fb8eb42..67383ca3 100644 --- a/README.org +++ b/README.org @@ -27,6 +27,7 @@ - [[#mu4e][MU4E]] - [[#calendar][Calendar]] - [[#org-caldav-sync][Org-Caldav-sync]] + - [[#org-notifications][Org Notifications]] - [[#magit][Magit]] - [[#eshell][Eshell]] - [[#sly][Sly]] @@ -402,6 +403,7 @@ This evil-collection package includes a lot of other evil based things. "hf" '(helpful-callable :which-key "describe-function") "hv" '(helpful-variable :which-key "describe-variable") "hk" '(helpful-key :which-key "describe-key") + "hF" '(describe-face :which-key "describe-face") "hb" '(general-describe-keybindings :which-key "describe-bindings") "hi" '(info :which-key "info manual") "ss" '(consult-line :which-key "consult search") @@ -1091,7 +1093,7 @@ Part of this config includes some special capture templates for my work as a you #+begin_src emacs-lisp (use-package org :straight t - :ensure t + :defer 1 :config (setq org-startup-indented t org-edit-src-content-indentation 0 @@ -1255,6 +1257,7 @@ Part of this config includes some special capture templates for my work as a you "gC" 'chris/org-columns-view "ge" 'org-edit-src-code "gr" 'revert-buffer + "S" 'org-schedule "t" 'org-todo) ('insert org-mode-map "C-i" 'completion-at-point) @@ -1811,6 +1814,23 @@ I'd like to sync my org-files to caldav and hopefully use more native android ap org-icalendar-use-scheduled '(todo-start event-if-todo))) #+END_SRC +** Org Notifications +I'd really like to have notifications for when things are scheduled so that I get my butt to working. +#+BEGIN_SRC emacs-lisp :tangle no +(use-package org-notifications + :after org + :config + (setq org-notifications-notify-before-time 600) + (org-notifications-start)) +#+END_SRC + +#+BEGIN_SRC emacs-lisp +(use-package org-wild-notifier + :after org + :config + (setq alert-default-style 'libnotify) + (org-wild-notifier-mode +1)) +#+END_SRC ** Magit Use magit, because why wouldn't you? duh! #+begin_src emacs-lisp diff --git a/init.el b/init.el index 0c7c3ef2..6e7fdfb7 100644 --- a/init.el +++ b/init.el @@ -233,6 +233,7 @@ "hf" '(helpful-callable :which-key "describe-function") "hv" '(helpful-variable :which-key "describe-variable") "hk" '(helpful-key :which-key "describe-key") + "hF" '(describe-face :which-key "describe-face") "hb" '(general-describe-keybindings :which-key "describe-bindings") "hi" '(info :which-key "info manual") "ss" '(consult-line :which-key "consult search") @@ -637,7 +638,7 @@ vertically." (use-package org :straight t - :ensure t + :defer 1 :config (setq org-startup-indented t org-edit-src-content-indentation 0 @@ -801,6 +802,7 @@ vertically." "gC" 'chris/org-columns-view "ge" 'org-edit-src-code "gr" 'revert-buffer + "S" 'org-schedule "t" 'org-todo) ('insert org-mode-map "C-i" 'completion-at-point) @@ -1295,6 +1297,12 @@ If on a: org-icalendar-alarm-time 15 org-icalendar-use-scheduled '(todo-start event-if-todo))) +(use-package org-wild-notifier + :after org + :config + (setq alert-default-style 'libnotify) + (org-wild-notifier-mode +1)) + (use-package magit :commands (magit-status magit-get-current-branch) :general diff --git a/yasnippets/org-mode/quote b/yasnippets/org-mode/quote new file mode 100644 index 00000000..bfedaa11 --- /dev/null +++ b/yasnippets/org-mode/quote @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: Demo +# key: