7ed32a8d61
README - Remove header from README (we don't add such header by convention) - Move sections in README to better the reflect the structure of the other READMEs - Simplify documentation - Remove Thanks section (we don't add such section by convention, it is very hard to maintain and keep accurate, user can see credits for a package in the package source code directly) - Remove the package default key bindings (same reason, it is also hard to keep in sync if the bindings change upstream, the users should check the default bindings themselves). CONFIGURATION - Add spacemacs key bindings under `SPC x b` for text boxes (I prefer to use `SPC x` instead of `SPC i` because rebox modify an existing text, it does not _insert_ a box per se). - Add a transient state for quick cycling - Add a layer variable `rebox-enable-in-text-mode` to enable the mode in text-mode buffers - Move functions to funcs.el squash! rebox: various modifications
22 lines
655 B
EmacsLisp
22 lines
655 B
EmacsLisp
;;; packages.el --- rebox layer function file for Spacemacs.
|
|
;;
|
|
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Christian E. Hopps <chopps@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(defun rebox-enable-hook ()
|
|
"Until rebox is fixed for C style comments we have to disable"
|
|
(and (not (or (eq major-mode 'c-mode)
|
|
(eq major-mode 'c++-mode)
|
|
(eq major-mode 'objc-mode)))
|
|
(rebox-mode)))
|
|
|
|
(defun spacemacs/rebox-dwim-previous ()
|
|
"Cycle to previous style in `rebox-style-loop'."
|
|
(interactive)
|
|
(rebox-dwim '(4)))
|