Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Multiple Emacs Flavor Setup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Balaye
Multiple Emacs Flavor Setup
Commits
689de28e
Commit
689de28e
authored
5 years ago
by
Pierre Balaye
Browse files
Options
Downloads
Patches
Plain Diff
~/emacs/layers/ can now be used with symlinks for private layers
parent
f40791ed
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
layers/smartparens/README.org
+42
-0
42 additions, 0 deletions
layers/smartparens/README.org
layers/smartparens/packages.el
+88
-0
88 additions, 0 deletions
layers/smartparens/packages.el
with
130 additions
and
0 deletions
layers/smartparens/README.org
0 → 100644
+
42
−
0
View file @
689de28e
#+TITLE: smartparens layer
# Document tags are separated with "|" char
# The example below contains 2 tags: "layer" and "web service"
# Avaliable tags are listed in <spacemacs_root>/.ci/spacedoc-cfg.edn
# under ":spacetools.spacedoc.config/valid-tags" section.
#+TAGS: layer|web service
# The maximum height of the logo should be 200 pixels.
[[img/smartparens.png]]
# TOC links should be GitHub style anchors.
* Table of Contents :TOC_4_gh:noexport:
- [[#description][Description]]
- [[#features][Features:]]
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
* Description
This layer adds support for something.
** Features:
- Autocomplete
- Lint
- Refactor
- ...
* Install
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =smartparens= 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.
This diff is collapsed.
Click to expand it.
layers/smartparens/packages.el
0 → 100644
+
88
−
0
View file @
689de28e
;;; packages.el --- smartparens layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Pierre Balayé <ulys@ITAK>
;; 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 `smartparens-packages'. Then, for each package PACKAGE:
;;
;; - If PACKAGE is not referenced by any other Spacemacs layer, define a
;; function `smartparens/init-PACKAGE' to load and initialize the package.
;; - Otherwise, PACKAGE is already referenced by another Spacemacs layer, so
;; define the functions `smartparens/pre-init-PACKAGE' and/or
;; `smartparens/post-init-PACKAGE' to customize the package as it is loaded.
;;; Code:
(
defconst
smartparens-packages
'
(
yasnippet
yasnippet-snippets
smartparens
evil-smartparens
)
"The list of Lisp packages required by the smartparens 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
smartparens/init-yasnippet
()
(
use-package
yasnippet
:ensure
t
)
)
(
defun
smartparens/init-yasnippet-snippets
()
(
use-package
yasnippet-snippets
:ensure
t
)
)
(
defun
smartparens/init-evil-smartparens
()
(
use-package
evil-smartparens
:ensure
t
)
)
(
defun
smartparens/post-init-smartparens
()
(
use-package
smartparens
:diminish
""
:bind
((
"C-}"
.
sp-forward-slurp-sexp
)
(
"C-{"
.
sp-forward-barf-sexp
)
(
"C-)"
.
sp-splice-sexp
))
:config
(
add-hook
'smartparens-enabled-hook
#'
evil-smartparens-mode
)
)
)
;;; packages.el ends here
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment