A few questions about configuring smartparens package. #1189
Replies: 4 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Do you mean something like this: |
Beta Was this translation helpful? Give feedback.
-
The global mode is generated by Emacs and this is the documentation:
So drop the |
Beta Was this translation helpful? Give feedback.
-
But based on my tries, the following usage in (use-package smartparens
:demand t
:config
(setq sp-navigate-close-if-unbalanced t)
(progn
(require 'smartparens-latex)
(smartparens-global-strict-mode t)
(smartparens-mode +1))) |
Beta Was this translation helpful? Give feedback.
-
On Ubuntu 20.10, I use the latest git master version of Emacs and installed the lastest smartparens from melpa with the following settings in my
~/.emacs.d/init.el
:The above setting seems to be working smoothly. But I still can't understand a few questions as described below:
Why?
As you can see, the above settings only activate the smartparens-strict-mode conditionally for prog-mode. If I want to always activate this mode in any case globally. What setting should I use?
Are the following two instructions equivalent:
and
(use-package smartparens-config
Regards,
HY
Beta Was this translation helpful? Give feedback.
All reactions