0

I have this setup for showing a matching paren offscreen. I would like to customize some of the child frame parameters including background color, font color, etc.

(require 'paren) (show-paren-mode 1) (setq blink-matching-paren 'jump-offscreen) (setq show-paren-context-when-offscreen 'child-frame) 
2
  • 1
    I think you need to add them to show-paren--context-child-frame-parameters: that's what's used when making the child frame. Untested - no guarantees. Commented Feb 13 at 3:56
  • @NickD thanks, do you have any rough elisp code? I'm not the best with elisp. Commented Feb 13 at 4:12

2 Answers 2

1

EDIT: As the OP points out in his answers, this should be:

(with-eval-after-load "paren" (add-to-list 'show-paren--context-child-frame-parameters '(background-color . "black")) (add-to-list 'show-paren--context-child-frame-parameters '(foreground-color . "red"))) 

Original answer

Try:

(with-eval-after-load "paren" (add-to-list 'show-paren--context-child-frame-parameters '((background-color . "black") (foreground-color . "red")))) 

Stick the above in a file foo.el , start with emacs -l foo.el and test. If it works, adjust colors to taste and move the code to your init file.

Completely untested.

0
1

@NickD thank you! This works:

(with-eval-after-load "paren" (add-to-list 'show-paren--context-child-frame-parameters '(background-color . "cyan")) (add-to-list 'show-paren--context-child-frame-parameters '(foreground-color . "black"))) 

Yours had both parameters in a list that was being added to another list.

1
  • 1
    Ah, right - I told you it was untested :-) Commented Feb 14 at 2:37

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.