diff options
author | Raul Benencia <raul@thousandeyes.com> | 2024-12-20 09:41:06 -0800 |
---|---|---|
committer | Raul Benencia <raul@thousandeyes.com> | 2024-12-20 09:42:57 -0800 |
commit | 521bf60eb97d243337147d2435ff6528be29d25c (patch) | |
tree | ffee0b863c9c51bd18e9f4b180efbf3bdbb3c87b /.emacs.d | |
parent | 52497eb64d8cf01704963a7ce5037766a0864298 (diff) |
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/rul-emacs.org | 16 | ||||
-rw-r--r-- | .emacs.d/rul-lisp/packages/rul-org.el | 1 |
2 files changed, 15 insertions, 2 deletions
diff --git a/.emacs.d/rul-emacs.org b/.emacs.d/rul-emacs.org index e3a99a8..e7162c8 100644 --- a/.emacs.d/rul-emacs.org +++ b/.emacs.d/rul-emacs.org @@ -908,7 +908,21 @@ My org mode configuration is quite big, so I split it across multiple files. (setq org-edit-src-content-indentation 0) (use-package org-modern :ensure t) -(use-package org-pomodoro :ensure t) +(use-package org-pomodoro + :ensure t + :config + (defun rul/disable-notifications () + "Disable GNOME notifications." + (shell-command "gsettings set org.gnome.desktop.notifications show-banners false")) + + (defun rul/enable-notifications () + "Enable GNOME notifications." + (shell-command "gsettings set org.gnome.desktop.notifications show-banners true")) + + ;; Add hooks for Pomodoro start and finish + (add-hook 'org-pomodoro-started-hook #'rul/disable-notifications) + (add-hook 'org-pomodoro-finished-hook #'rul/enable-notifications) + (add-hook 'org-pomodoro-killed-hook #'rul/enable-notifications)) ;; (add-hook 'org-mode-hook 'turn-off-auto-fill) ;; (add-hook 'auto-save-hook 'org-save-all-org-buffers) diff --git a/.emacs.d/rul-lisp/packages/rul-org.el b/.emacs.d/rul-lisp/packages/rul-org.el index fc13653..6d71068 100644 --- a/.emacs.d/rul-lisp/packages/rul-org.el +++ b/.emacs.d/rul-lisp/packages/rul-org.el @@ -13,7 +13,6 @@ (setq org-edit-src-content-indentation 0) (use-package org-modern :ensure t) - (use-package org-pomodoro :ensure t :config |