0

I am using python-mode and jedi for autocompletion.

(add-hook 'python-mode-hook 'jedi:setup)
(add-hook 'python-mode-hook 'jedi:ac-setup)

(require 'auto-complete-config)
(ac-config-default)
(set-face-background 'ac-completion-face "black")
(set-face-underline 'ac-completion-face "black")
(set-face-underline 'ac-selection-face "black")

The font color show up as yellow on top of a gray background, which is unreadable. Also for the selected line, gray font on top of blue is unreadable.

I want to change the font color or the background color, if its possible.

enter image description here


enter image description here

[Q] How could I change the font color or the background color on the popped out window that show up on jedi usage?

1 Answer 1

1

It's auto-complete package. Completion candidates colors can be changed by customizing ac-completion-face, ac-candidate-face, ac-candidate-mouse-face and ac-selection-face.

That window with additional candidate info can be changed by customizing popup-tip-face.

3
  • I have added (set-face-underline 'ac-selection-face "black") but nothing affected
    – alper
    Jan 31, 2020 at 20:08
  • I did the same in emacs -Q and selected candidate is underlined with black line as expected.
    – muffinmad
    Jan 31, 2020 at 20:26
  • I don't know what is wrong on my end but when I say a color a different color shows up
    – alper
    Jan 31, 2020 at 20:29

Your Answer

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

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