help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: condition based on show-paren-style option


From: Drew Adams
Subject: RE: condition based on show-paren-style option
Date: Fri, 1 Jan 2021 14:13:15 -0800 (PST)

> How can I make a condition based on whether show-paren-style
> is  'parenthesis or 'expression?

(cl-case show-paren-style
  (parenthesis DO-THIS)
  (expression  DO-THAT)
  (t           DO-SOMETHING-ELSE))

Or if you don't care about a `mixed' value:

(if (eq show-paren-style 'parenthesis)
    DO-THIS
  DO-THAT)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]