adding notifications to org-mode and new yasnippet

This commit is contained in:
Chris Cochrun 2021-12-09 05:51:33 -06:00
parent 69dcd671be
commit 0a3d30f317
3 changed files with 38 additions and 2 deletions

View file

@ -27,6 +27,7 @@
- [[#mu4e][MU4E]] - [[#mu4e][MU4E]]
- [[#calendar][Calendar]] - [[#calendar][Calendar]]
- [[#org-caldav-sync][Org-Caldav-sync]] - [[#org-caldav-sync][Org-Caldav-sync]]
- [[#org-notifications][Org Notifications]]
- [[#magit][Magit]] - [[#magit][Magit]]
- [[#eshell][Eshell]] - [[#eshell][Eshell]]
- [[#sly][Sly]] - [[#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") "hf" '(helpful-callable :which-key "describe-function")
"hv" '(helpful-variable :which-key "describe-variable") "hv" '(helpful-variable :which-key "describe-variable")
"hk" '(helpful-key :which-key "describe-key") "hk" '(helpful-key :which-key "describe-key")
"hF" '(describe-face :which-key "describe-face")
"hb" '(general-describe-keybindings :which-key "describe-bindings") "hb" '(general-describe-keybindings :which-key "describe-bindings")
"hi" '(info :which-key "info manual") "hi" '(info :which-key "info manual")
"ss" '(consult-line :which-key "consult search") "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 #+begin_src emacs-lisp
(use-package org (use-package org
:straight t :straight t
:ensure t :defer 1
:config :config
(setq org-startup-indented t (setq org-startup-indented t
org-edit-src-content-indentation 0 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 "gC" 'chris/org-columns-view
"ge" 'org-edit-src-code "ge" 'org-edit-src-code
"gr" 'revert-buffer "gr" 'revert-buffer
"S" 'org-schedule
"t" 'org-todo) "t" 'org-todo)
('insert org-mode-map ('insert org-mode-map
"C-i" 'completion-at-point) "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))) org-icalendar-use-scheduled '(todo-start event-if-todo)))
#+END_SRC #+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 ** Magit
Use magit, because why wouldn't you? duh! Use magit, because why wouldn't you? duh!
#+begin_src emacs-lisp #+begin_src emacs-lisp

10
init.el
View file

@ -233,6 +233,7 @@
"hf" '(helpful-callable :which-key "describe-function") "hf" '(helpful-callable :which-key "describe-function")
"hv" '(helpful-variable :which-key "describe-variable") "hv" '(helpful-variable :which-key "describe-variable")
"hk" '(helpful-key :which-key "describe-key") "hk" '(helpful-key :which-key "describe-key")
"hF" '(describe-face :which-key "describe-face")
"hb" '(general-describe-keybindings :which-key "describe-bindings") "hb" '(general-describe-keybindings :which-key "describe-bindings")
"hi" '(info :which-key "info manual") "hi" '(info :which-key "info manual")
"ss" '(consult-line :which-key "consult search") "ss" '(consult-line :which-key "consult search")
@ -637,7 +638,7 @@ vertically."
(use-package org (use-package org
:straight t :straight t
:ensure t :defer 1
:config :config
(setq org-startup-indented t (setq org-startup-indented t
org-edit-src-content-indentation 0 org-edit-src-content-indentation 0
@ -801,6 +802,7 @@ vertically."
"gC" 'chris/org-columns-view "gC" 'chris/org-columns-view
"ge" 'org-edit-src-code "ge" 'org-edit-src-code
"gr" 'revert-buffer "gr" 'revert-buffer
"S" 'org-schedule
"t" 'org-todo) "t" 'org-todo)
('insert org-mode-map ('insert org-mode-map
"C-i" 'completion-at-point) "C-i" 'completion-at-point)
@ -1295,6 +1297,12 @@ If on a:
org-icalendar-alarm-time 15 org-icalendar-alarm-time 15
org-icalendar-use-scheduled '(todo-start event-if-todo))) 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 (use-package magit
:commands (magit-status magit-get-current-branch) :commands (magit-status magit-get-current-branch)
:general :general

View file

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: Demo
# key: <o
# --
#+begin_quote
$0
#+end_quote