0

I am using the following interactive function to enable show-paren-mode. Would like to have the capability to change the style. What can I do for such functionality to work?


    (defun rk-bracemk-companion ()
      "Indicates counterpart character when matching bracketing pairs."
      (interactive)
    
      (show-paren-mode 1)
      (setq show-paren-delay 1.3)
    
      ;; Options: Style | `parenthesis', `expression', `mixed'
      (setq show-paren-style 'parenthesis))

1 Answer 1

0
(defun rk-bracemk-companion (style)
  "Indicates counterpart character when matching bracketing pairs."
  (interactive "SStyle: ")

  (show-paren-mode 1)
  (setq show-paren-delay 1.3)

  ;; Options: Style | `parenthesis', `expression', `mixed'
  (setq show-paren-style style))

Allows free-text entry of any Lisp symbol (which is what 'parenthesis etc are)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.