summaryrefslogtreecommitdiffstats
path: root/spacemacs/.emacs.d/private/aminb
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2016-12-11 00:07:48 -0500
committerAmin Bandali <amin@aminb.org>2016-12-11 00:07:48 -0500
commitf138f1d7c8d6f6cf629c35870fc3f6e477a0c0d2 (patch)
tree569311adb617455fafbfca11f8275b61bee9b4cf /spacemacs/.emacs.d/private/aminb
parentff3e934e64f0275a7ff73e9c01dcaafaf5d1a557 (diff)
downloadconfigs-f138f1d7c8d6f6cf629c35870fc3f6e477a0c0d2.tar.gz
configs-f138f1d7c8d6f6cf629c35870fc3f6e477a0c0d2.tar.xz
configs-f138f1d7c8d6f6cf629c35870fc3f6e477a0c0d2.zip
Update .spacemacs and add aminb layer
Diffstat (limited to 'spacemacs/.emacs.d/private/aminb')
-rw-r--r--spacemacs/.emacs.d/private/aminb/packages.el38
1 files changed, 38 insertions, 0 deletions
diff --git a/spacemacs/.emacs.d/private/aminb/packages.el b/spacemacs/.emacs.d/private/aminb/packages.el
new file mode 100644
index 0000000..fb9862b
--- /dev/null
+++ b/spacemacs/.emacs.d/private/aminb/packages.el
@@ -0,0 +1,38 @@
+;;; packages.el --- aminb layer packages file for Spacemacs.
+;;
+;; Copyright (c) 2016 Amin Bandali
+;;
+;; Author: Amin Bandali <amin@aminb.org>
+;; URL: https://github.com/aminb/dotfiles
+;;
+;; This file is not part of GNU Emacs.
+;;
+;;; License: GPLv3
+
+;;; Commentary:
+
+;; This file is a collection of my settings and customizations on top of
+;; spacemacs.
+
+;;; Code:
+
+(defconst aminb-packages
+ '(crux writeroom-mode)
+ "The list of Lisp packages required by the aminb layer.")
+
+(defun aminb/init-crux ()
+ (use-package crux
+ :defer t
+ :bind (("C-c d" . crux-duplicate-current-line-or-region)
+ ("C-c M-d" . crux-duplicate-and-comment-current-line-or-region)
+ )))
+
+(defun aminb/init-writeroom-mode ()
+ (use-package writeroom-mode ; Distraction-free editing
+ :defer t
+ :config (setq writeroom-width 82)
+ :bind (("C-c W" . writeroom-mode)
+ ("s-?" . writeroom-toggle-mode-line))))
+
+
+;;; packages.el ends here