Skip to content

Instantly share code, notes, and snippets.

@kennethlove
Created January 28, 2015 22:16
Show Gist options
  • Save kennethlove/4a6ed13fcf2cd83058f2 to your computer and use it in GitHub Desktop.
Save kennethlove/4a6ed13fcf2cd83058f2 to your computer and use it in GitHub Desktop.
;;; packages.el --- writing Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <[email protected]>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defvar writing-packages
'(
markdown-mode
markdown-mode+
markdown-toc
hl-sentence
writegood-mode
writeroom-mode
visual-fill-column
;; package writings go here
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(defvar writing-excluded-packages '()
"List of packages to exclude.")
;; For each package, define a function writing/init-<package-writing>
;;
;; (defun writing/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 writing/init-writing ()
"Initialize my package"
(require 'hl-sentence)
(require 'writegood-mode)
(require 'writeroom-mode)
(set-face-attribute 'hl-sentence-face nil
:foreground "#444")
(defun writing/load-writing-on-demand ()
(interactive)
(writeroom-mode)
(writeroom-mode-toggle-mode-line)
(writegood-mode)
)
(evil-leader/set-key "owm" 'load-writing-on-demand)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment