diff options
Diffstat (limited to '.emacs.d/rul-lisp/packages/rul-org.el')
| -rw-r--r-- | .emacs.d/rul-lisp/packages/rul-org.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.emacs.d/rul-lisp/packages/rul-org.el b/.emacs.d/rul-lisp/packages/rul-org.el index 12a88dc..02688fd 100644 --- a/.emacs.d/rul-lisp/packages/rul-org.el +++ b/.emacs.d/rul-lisp/packages/rul-org.el @@ -18,29 +18,29 @@ (use-package org-pomodoro :ensure t :config - (defun rul/disable-notifications () + (defun rul-disable-notifications () "Disable GNOME notifications." (shell-command "gsettings set org.gnome.desktop.notifications show-banners false")) - (defun rul/enable-notifications () + (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-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) (add-hook 'org-mode-hook 'visual-line-mode) -(defun rul/org-reset-element-cache-after-revert () +(defun rul-org-reset-element-cache-after-revert () "Reset Org's element cache after reverting an Org buffer." (when (derived-mode-p 'org-mode) (org-element-cache-reset))) -(add-hook 'after-revert-hook #'rul/org-reset-element-cache-after-revert) +(add-hook 'after-revert-hook #'rul-org-reset-element-cache-after-revert) (use-package org-download :ensure t |
