forked from syl20bnr/spacemacs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))) | ||
) |