Skip to content

Commit

Permalink
Add org-pomodoro layer
Browse files Browse the repository at this point in the history
  • Loading branch information
swaroopch authored and syl20bnr committed Apr 11, 2015
1 parent c98c3ff commit c70141e
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
30 changes: 30 additions & 0 deletions contrib/org-pomodoro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# org-pomodoro contribution layer for Spacemacs

<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**

- [org-pomodoro contribution layer for Spacemacs](#org-pomodoro-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [Key bindings](#key-bindings)

<!-- markdown-toc end -->

## Description

Use pomodoro technique with your Org Mode tasks.

## Install

To use this contribution add it to your `~/.spacemacs`

```elisp
(setq-default dotspacemacs-configuration-layers '(org-pomodoro))
```

## Key bindings

Key Binding | Description
--------------|------------------------------------------------------------
`<SPC> m p` | Starts a Pomodoro
`, p` | Starts a Pomodoro
33 changes: 33 additions & 0 deletions contrib/org-pomodoro/extensions.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
;;; extensions.el --- org-pomodoro Layer extensions File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

(defvar org-pomodoro-pre-extensions
'(
;; pre extension org-pomodoros go here
)
"List of all extensions to load before the packages.")

(defvar org-pomodoro-post-extensions
'(
;; post extension org-pomodoros go here
)
"List of all extensions to load after the packages.")

;; For each extension, define a function org-pomodoro/init-<extension-org-pomodoro>
;;
;; (defun org-pomodoro/init-my-extension ()
;; "Initialize my extension"
;; )
;;
;; Often the body of an initialize function uses `use-package'
;; For more info on `use-package', see readme:
;; https://github.com/jwiegley/use-package
45 changes: 45 additions & 0 deletions contrib/org-pomodoro/packages.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
;;; packages.el --- org-pomodoro Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

(defvar org-pomodoro-packages
'(
;; package org-pomodoros go here
org-pomodoro
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")

(defvar org-pomodoro-excluded-packages '()
"List of packages to exclude.")

;; For each package, define a function org-pomodoro/init-<package-org-pomodoro>
;;
;; (defun org-pomodoro/init-my-package ()
;; "Initialize my package"
;; )
;;
;; Often the body of an initialize function uses `use-package'
;; For more info on `use-package', see readme:
;; https://github.com/jwiegley/use-package


(defun org-pomodoro/init-org-pomodoro ()
"Initialize org-pomodoro"
(use-package org-pomodoro
:defer t
:init
(progn
(when (system-is-mac)
(setq org-pomodoro-audio-player "/usr/bin/afplay"))
(evil-leader/set-key-for-mode 'org-mode
"p" nil "mp" 'org-pomodoro)))
)

0 comments on commit c70141e

Please sign in to comment.