   (use-package yaml-mode :defer t))
 
 (defun extra-langs/init-rust-mode ()
-  (use-package rust-mode :defer t))
+  (use-package rust-mode
+    :defer t
+    :config
+    (when (fboundp 'sp-local-pair) ; Don't pair lifetime specifiers
+      (sp-local-pair 'rust-mode "'" nil :actions nil))))
 
 ;; no associated extension because conflicts with more common Objective-C, manually invoke for .m files.
 (defun extra-langs/init-wolfram-mode ()

(defvar extra-langs-packages
  '(
    idris-mode
    arduino-mode
    scad-mode
    qml-mode
    julia-mode
    nix-mode
    racket-mode
    yaml-mode
    rust-mode
    wolfram-mode
    ))

(defun extra-langs/init-arduino-mode ()

(defun extra-langs/init-nix-mode ()
  (use-package nix-mode :defer t))

(defun extra-langs/init-nim-mode ()
  (use-package nim-mode :defer t))

(defun extra-langs/init-qml-mode ()
  (use-package qml-mode :defer t))

