branch: externals/tmr
commit 67b3dea676b4959996238ee6ebc34d6945cf91fb
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Update the sample configuration
---
 README.org | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/README.org b/README.org
index 6223a3d791..b1440a1f3a 100644
--- a/README.org
+++ b/README.org
@@ -450,20 +450,13 @@ Everything is in place to set up the package.
 #+cindex: Package configuration
 
 #+begin_src emacs-lisp
-  ;; Set to nil to disable the sound
-  (setq tmr-sound-file 
"/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga")
-
-  ;; Desktop notification urgency level
-  (setq tmr-notification-urgency 'normal)
-
-  ;; Read the `tmr-descriptions-list' doc string
-  (setq tmr-descriptions-list 'tmr-description-history)
-
-  ;; Set global prefix bindings (autoloaded):
-  (define-key global-map "\C-ct" 'tmr-prefix-map)
-
-  ;; Alternatively bind tmr command (autoloaded):
-  (define-key global-map "\C-ct" 'tmr)
+(use-package tmr
+  :ensure t
+  :config
+  (define-key global-map (kbd "C-c t") #'tmr-prefix-map)
+  (setq tmr-sound-file 
"/usr/share/sounds/freedesktop/stereo/alarm-clock-elapsed.oga"
+        tmr-notification-urgency 'normal
+        tmr-description-list 'tmr-description-history))
 #+end_src
 
 * Integration with Embark

Reply via email to