Commits

Anonymous committed 2fc7b7c

Updated smartparens config

Comments (0)

Files changed (1)

files/smartparens.el

 ;;;;;;;;;;;;;;;;;;
 ;; pair management
 
-(sp-add-local-ban-insert-pair "'" 'minibuffer-inactive-mode)
+(sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil)
 
 ;;; markdown-mode
-(sp-add-pair "*" "*")
-
-(sp-with '(markdown-mode gfm-mode rst-mode)
-  ;; this also disables '*' in all other modes
-  (sp-add-local-allow-insert-pair "*")
-  (sp-add-tag-pair "2" "**" "**" nil)
-  (sp-add-tag-pair "s" "```scheme" "```" nil)
-  (sp-add-tag-pair "<"  "<_>" "</_>" 'sp-match-sgml-tags))
+(sp-with-modes '(markdown-mode gfm-mode rst-mode)
+  (sp-local-pair "*" "*")
+  (sp-local-tag "2" "**" "**")
+  (sp-local-tag "s" "```scheme" "```")
+  (sp-local-tag "<"  "<_>" "</_>" :transform 'sp-match-sgml-tags))
 
 ;;; tex-mode latex-mode
-(sp-with '(tex-mode plain-tex-mode latex-mode)
-  (sp-add-tag-pair "i" "\"<" "\">" nil))
-
-;;; python-mode
-(sp-with 'python-mode
-  (sp-add-local-ban-insert-pair "`"))
+(sp-with-modes '(tex-mode plain-tex-mode latex-mode)
+  (sp-local-tag "i" "\"<" "\">"))
 
 ;;; html-mode
-(sp-add-pair "<" ">") ;; in html only!
-(sp-with '(html-mode sgml-mode)
-  (sp-add-local-allow-insert-pair "<"))
+(sp-with-modes '(html-mode sgml-mode)
+  (sp-local-pair "<" ">"))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Custom defuns and macros
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.