Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #247 - New layer: writeroom #4262

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions layers/+tools/writeroom/README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#+TITLE: writeroom layer
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../css/readtheorg.css" />

* Table of Contents :TOC_4_org:noexport:
- [[Description][Description]]
- [[Install][Install]]
- [[Key bindings][Key bindings]]

* Description
When activated, the writeroom mode offers a distraction-free environment for
writing text.

* Install
To use this contribution add it to your =~/.spacemacs=

#+begin_src emacs-lisp
(setq-default dotspacemacs-configuration-layers '(writeroom))
#+end_src

* Key bindings

| Key Binding | Description |
|-------------+-----------------------|
| ~SPC a W~ | Toggle writeroom mode |
21 changes: 21 additions & 0 deletions layers/+tools/writeroom/packages.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
;;; packages.el --- writeroom Layer packages File for Spacemacs
;;
;; Copyright (c) 2015 Gergely Nagy
;;
;; Author: Gergely Nagy <algernon@madhouse-project.org>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

(setq writeroom-packages
'(
writeroom-mode
))

(defun writeroom/init-writeroom-mode ()
"Initialize writeroom-mode"

(use-package writeroom-mode
:init (spacemacs/set-leader-keys "aW" #'writeroom-mode)))