Questions tagged [smartparens]

The tag has no usage guidance.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
78 views

Web-mode left arrow without the right closing angle bracket

When using Elixir html template (.eex) in web-mode, I sometimes need to type code like <%= for bid <- @bids do %> . At the moment because the opening left angled bracked is closed immediately ...
2
votes
0answers
41 views

Automatically wrap text with smartparen

Using smartparen, if I have some text I can select it then press ( { or [ and the text is wrapped in those braces. How can I extend this functionality so that (in Latex for example) if I press $ the ...
2
votes
0answers
80 views

smartparens with LaTeX to deal with \begin \end environment and markup commands

How can I configure smartparens to treat \begin ...\end environments, and commands, e.g., \textbf, delimiters so that I can navigate them, e.g., using sp-forward-sexp.
2
votes
0answers
78 views

smartparen-latex with delete-selection-mode

In my emacs setup, if I have smartparens-mode enabled with smartparens-latex and I open a latex document, type some text then select it and type any latex special command (such as $, ", \{, etc...) ...
1
vote
1answer
30 views

I would like to add a shortcut to sp-wrap-square in spacemacs

I would like to extend the lisp editing shortcuts so SPC k [ and SPC k { would wrap the current form in [] and {} respectively. I don't know what I need to write in my spacemacs config to enable this ...
1
vote
1answer
332 views

Electric/smart parentheses: allow wrapping in a nontransient way

I like smart parentheses as much as the next person, but there is one situation in which I often get frustrated. Suppose I have a TeX line reading: Lorem ipsum dolor sit amet Now I wish to \...
1
vote
0answers
558 views

How can I make Spacemacs stop deleting my parentheses?

I've recently switched from emacs to spacemacs (develop branch), and I'm still getting used to the new defaults. I added smartparens to my excluded-packages in my config file, because I don't like ...
1
vote
0answers
241 views

Unable to get backtrace for error

I have installed paredit & need to turnoff smartparens. I checked this answer and I have added (advice-add #'smartparens-mode :before-until (lambda (&rest args) t)) to my prelude starter ...
0
votes
0answers
55 views

c-electric-brace and smartparens pairs

Within c-mode it is possible to configure a style and with c-hanging-braces-alist it is possible to relocate braces like { and } to separate lines, inserting whitespace and so on. Th function which ...
0
votes
0answers
20 views

Smartparens slurping across fluent call chains in php-mode

I have not been able to find a solution to this frustrating problem. Here is the situation and my questions are at the end: Given code that looks similar to this: $this->hello()->wootFluent()-&...
0
votes
0answers
30 views

Use arrows keys to call Lispy functions

In lispy-mode, I want to use control + the arrow keys instead of lispy's defaults (h, j, k, l). But if I run the obvious code (define-key lispy-mode-map [C-up] 'lispy-up) then C-up always ...
0
votes
0answers
94 views

lisp code not indenting after paredit slurping, etc

When I use smartparens-mode or paredit-mode to shift parens around (e.g. paredit-forward-slurp-sexp) the effected forms are not being indented appropriately. For example if I add a let and then slurp ...