smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

RFI/Help wanted - using sp-local-tag

Open rileyrg opened this issue 5 years ago • 2 comments

Expected behavior

When I select a region and press "b" then it encloses the region with tags to make it bold.

Actual behavior

my region is deleted and "b" is inserted ;)

Steps to reproduce the problem

  (use-package smartparens
    :commands (smartparens-mode)
    :diminish smartparens-mode
    :config
    (setq sp-show-pair-from-inside nil)
    (require 'smartparens-config)
    (sp-local-tag '(mhtml-mode html-mode) "b" "<span class=\"bold\">" "</span>")
    (smartparens-global-mode t)
    )

The sp-local-tag call is from the docs.

I open an mhtml-mode file (t.html)... And smartparens is on and the mode is mhtml mode.

Am I doing something really stupid here and totally misread the docs?

rileyrg avatar Jan 15 '20 19:01 rileyrg

The sp-local-tag does not exist anymore. Where did you find it? I need to remove it from the docs.

Fuco1 avatar Jan 16 '20 14:01 Fuco1

Also congrats on the # 1000 :D :tada: :tada: :tada:

Fuco1 avatar Jan 16 '20 14:01 Fuco1