8 changed files with 291 additions and 88 deletions
@ -0,0 +1,30 @@ |
|||||
|
#+TITLE: org-gcal layer |
||||
|
|
||||
|
# The maximum height of the logo should be 200 pixels. |
||||
|
[[img/org-gcal.png]] |
||||
|
|
||||
|
# TOC links should be GitHub style anchors. |
||||
|
* Table of Contents :TOC_4_gh:noexport: |
||||
|
- [[#description][Description]] |
||||
|
- [[#install][Install]] |
||||
|
- [[#key-bindings][Key bindings]] |
||||
|
|
||||
|
* Description |
||||
|
This layer does wonderful things: |
||||
|
- thing01 |
||||
|
|
||||
|
* Install |
||||
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to |
||||
|
add =org-gcal= to the existing =dotspacemacs-configuration-layers= list in this |
||||
|
file. |
||||
|
|
||||
|
* Key bindings |
||||
|
|
||||
|
| Key Binding | Description | |
||||
|
|-------------+----------------| |
||||
|
| ~SPC x x x~ | Does thing01 | |
||||
|
# Use GitHub URLs if you wish to link a Spacemacs documentation file or its heading. |
||||
|
# Examples: |
||||
|
# [[https://github.com/syl20bnr/spacemacs/blob/master/doc/VIMUSERS.org#sessions]] |
||||
|
# [[https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Bfun/emoji/README.org][Link to Emoji layer README.org]] |
||||
|
# If space-doc-mode is enabled, Spacemacs will open a local copy of the linked file. |
||||
@ -0,0 +1,71 @@ |
|||||
|
;;; packages.el --- org-gcal layer packages file for Spacemacs. |
||||
|
;; |
||||
|
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors |
||||
|
;; |
||||
|
;; Author: <fh@LAPTOP-JHFG973M> |
||||
|
;; URL: https://github.com/syl20bnr/spacemacs |
||||
|
;; |
||||
|
;; This file is not part of GNU Emacs. |
||||
|
;; |
||||
|
;;; License: GPLv3 |
||||
|
|
||||
|
;;; Commentary: |
||||
|
|
||||
|
;; See the Spacemacs documentation and FAQs for instructions on how to implement |
||||
|
;; a new layer: |
||||
|
;; |
||||
|
;; SPC h SPC layers RET |
||||
|
;; |
||||
|
;; |
||||
|
;; Briefly, each package to be installed or configured by this layer should be |
||||
|
;; added to `org-gcal-packages'. Then, for each package PACKAGE: |
||||
|
;; |
||||
|
;; - If PACKAGE is not referenced by any other Spacemacs layer, define a |
||||
|
;; function `org-gcal/init-PACKAGE' to load and initialize the package. |
||||
|
|
||||
|
;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so |
||||
|
;; define the functions `org-gcal/pre-init-PACKAGE' and/or |
||||
|
;; `org-gcal/post-init-PACKAGE' to customize the package as it is loaded. |
||||
|
|
||||
|
;;; Code: |
||||
|
|
||||
|
(defconst org-gcal-packages |
||||
|
'(org-gcal) |
||||
|
"The list of Lisp packages required by the org-gcal layer. |
||||
|
|
||||
|
Each entry is either: |
||||
|
|
||||
|
1. A symbol, which is interpreted as a package to be installed, or |
||||
|
|
||||
|
2. A list of the form (PACKAGE KEYS...), where PACKAGE is the |
||||
|
name of the package to be installed or loaded, and KEYS are |
||||
|
any number of keyword-value-pairs. |
||||
|
|
||||
|
The following keys are accepted: |
||||
|
|
||||
|
- :excluded (t or nil): Prevent the package from being loaded |
||||
|
if value is non-nil |
||||
|
|
||||
|
- :location: Specify a custom installation location. |
||||
|
The following values are legal: |
||||
|
|
||||
|
- The symbol `elpa' (default) means PACKAGE will be |
||||
|
installed using the Emacs package manager. |
||||
|
|
||||
|
- The symbol `local' directs Spacemacs to load the file at |
||||
|
`./local/PACKAGE/PACKAGE.el' |
||||
|
|
||||
|
- A list beginning with the symbol `recipe' is a melpa |
||||
|
recipe. See: https://github.com/milkypostman/melpa#recipe-format") |
||||
|
|
||||
|
|
||||
|
(defun org-gcal/init-org-gcal () |
||||
|
(require 'org-gcal) |
||||
|
(setq org-gcal-client-id (getenv "ORG_GCAL_CLIENTID") |
||||
|
org-gcal-client-secret (getenv "ORG_GCAL_SECRET") |
||||
|
org-gcal-file-alist '( |
||||
|
("wavier@gmail.com" . "~/schedule.org") |
||||
|
)) |
||||
|
) |
||||
|
|
||||
|
;;; packages.el ends here |
||||
@ -0,0 +1,30 @@ |
|||||
|
#+TITLE: org layer |
||||
|
|
||||
|
# The maximum height of the logo should be 200 pixels. |
||||
|
[[img/org.png]] |
||||
|
|
||||
|
# TOC links should be GitHub style anchors. |
||||
|
* Table of Contents :TOC_4_gh:noexport: |
||||
|
- [[#description][Description]] |
||||
|
- [[#install][Install]] |
||||
|
- [[#key-bindings][Key bindings]] |
||||
|
|
||||
|
* Description |
||||
|
This layer does wonderful things: |
||||
|
- thing01 |
||||
|
|
||||
|
* Install |
||||
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to |
||||
|
add =org= to the existing =dotspacemacs-configuration-layers= list in this |
||||
|
file. |
||||
|
|
||||
|
* Key bindings |
||||
|
|
||||
|
| Key Binding | Description | |
||||
|
|-------------+----------------| |
||||
|
| ~SPC x x x~ | Does thing01 | |
||||
|
# Use GitHub URLs if you wish to link a Spacemacs documentation file or its heading. |
||||
|
# Examples: |
||||
|
# [[https://github.com/syl20bnr/spacemacs/blob/master/doc/VIMUSERS.org#sessions]] |
||||
|
# [[https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Bfun/emoji/README.org][Link to Emoji layer README.org]] |
||||
|
# If space-doc-mode is enabled, Spacemacs will open a local copy of the linked file. |
||||
@ -0,0 +1,66 @@ |
|||||
|
;;; packages.el --- org layer packages file for Spacemacs. |
||||
|
;; |
||||
|
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors |
||||
|
;; |
||||
|
;; Author: <fh@LAPTOP-JHFG973M> |
||||
|
;; URL: https://github.com/syl20bnr/spacemacs |
||||
|
;; |
||||
|
;; This file is not part of GNU Emacs. |
||||
|
;; |
||||
|
;;; License: GPLv3 |
||||
|
|
||||
|
;;; Commentary: |
||||
|
|
||||
|
;; See the Spacemacs documentation and FAQs for instructions on how to implement |
||||
|
;; a new layer: |
||||
|
;; |
||||
|
;; SPC h SPC layers RET |
||||
|
;; |
||||
|
;; |
||||
|
;; Briefly, each package to be installed or configured by this layer should be |
||||
|
;; added to `org-packages'. Then, for each package PACKAGE: |
||||
|
;; |
||||
|
;; - If PACKAGE is not referenced by any other Spacemacs layer, define a |
||||
|
;; function `org/init-PACKAGE' to load and initialize the package. |
||||
|
|
||||
|
;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so |
||||
|
;; define the functions `org/pre-init-PACKAGE' and/or |
||||
|
;; `org/post-init-PACKAGE' to customize the package as it is loaded. |
||||
|
|
||||
|
;;; Code: |
||||
|
|
||||
|
(defconst org-packages |
||||
|
'(org) |
||||
|
"The list of Lisp packages required by the org layer. |
||||
|
|
||||
|
Each entry is either: |
||||
|
|
||||
|
1. A symbol, which is interpreted as a package to be installed, or |
||||
|
|
||||
|
2. A list of the form (PACKAGE KEYS...), where PACKAGE is the |
||||
|
name of the package to be installed or loaded, and KEYS are |
||||
|
any number of keyword-value-pairs. |
||||
|
|
||||
|
The following keys are accepted: |
||||
|
|
||||
|
- :excluded (t or nil): Prevent the package from being loaded |
||||
|
if value is non-nil |
||||
|
|
||||
|
- :location: Specify a custom installation location. |
||||
|
The following values are legal: |
||||
|
|
||||
|
- The symbol `elpa' (default) means PACKAGE will be |
||||
|
installed using the Emacs package manager. |
||||
|
|
||||
|
- The symbol `local' directs Spacemacs to load the file at |
||||
|
`./local/PACKAGE/PACKAGE.el' |
||||
|
|
||||
|
- A list beginning with the symbol `recipe' is a melpa |
||||
|
recipe. See: https://github.com/milkypostman/melpa#recipe-format") |
||||
|
(defun org/init-org () |
||||
|
(setq-default dotspacemacs-configuration-layers '( |
||||
|
(org :variables |
||||
|
org-enable-jira-support t |
||||
|
jiralib-url "https://m2hycon.atlassian.net:443"))) |
||||
|
) |
||||
|
;;; packages.el ends here |
||||
@ -0,0 +1,6 @@ |
|||||
|
# Private directory for Yatemplate templates |
||||
|
|
||||
|
The content of this directory is ignored by Git. This is the default place |
||||
|
where to store your private templates. |
||||
|
|
||||
|
This path will be loaded automatically and used whenever Yatemplate loads. |
||||
Loading…
Reference in new issue