Skip to main content
deleted 12 characters in body
Source Link
Stefan
  • 26.7k
  • 3
  • 52
  • 88

What worked for me:

(defun disable-smartparens ()
  (smartparens-mode -1)
 )

(add-hook 'smartparens-enabled-hook 'disable-smartparens t)

It appears that the smartparens-enabled-hook is called when smartparens is enabled. So, essentially, whenever smartparens turns on, we immediately turn it off.

If you just want to rebind some of the keys within there, you can change the function to:

(defun rebind-keys ()
  (global-set-key example 'command)
 )

And customize as appropriate from https://www.gnu.org/software/emacs/manual/html_node/emacs/Rebinding.html

What worked for me:

(defun disable-smartparens ()
  (smartparens-mode -1)
 )

(add-hook 'smartparens-enabled-hook 'disable-smartparens t)

It appears that the smartparens-enabled-hook is called when smartparens is enabled. So, essentially, whenever smartparens turns on, we immediately turn it off.

If you just want to rebind some of the keys within there, you can change the function to:

(defun rebind-keys ()
  (global-set-key example 'command)
 )

And customize as appropriate from https://www.gnu.org/software/emacs/manual/html_node/emacs/Rebinding.html

What worked for me:

(defun disable-smartparens ()
  (smartparens-mode -1))

(add-hook 'smartparens-enabled-hook 'disable-smartparens t)

It appears that the smartparens-enabled-hook is called when smartparens is enabled. So, essentially, whenever smartparens turns on, we immediately turn it off.

If you just want to rebind some of the keys within there, you can change the function to:

(defun rebind-keys ()
  (global-set-key example 'command))

And customize as appropriate from https://www.gnu.org/software/emacs/manual/html_node/emacs/Rebinding.html

Source Link

What worked for me:

(defun disable-smartparens ()
  (smartparens-mode -1)
)

(add-hook 'smartparens-enabled-hook 'disable-smartparens t)

It appears that the smartparens-enabled-hook is called when smartparens is enabled. So, essentially, whenever smartparens turns on, we immediately turn it off.

If you just want to rebind some of the keys within there, you can change the function to:

(defun rebind-keys ()
  (global-set-key example 'command)
)

And customize as appropriate from https://www.gnu.org/software/emacs/manual/html_node/emacs/Rebinding.html