Move custom-set-faces out of company config

Keep it in a recommendation in the README for the layer. Eval'ing the
custom-set-faces directly in the config makes it difficult to revert the
customizations.
This commit is contained in:
sooheon 2016-05-23 20:11:32 +09:00 committed by syl20bnr
parent 15e6290151
commit ec3ea5b41e
2 changed files with 10 additions and 6 deletions

View File

@ -171,6 +171,16 @@ Here is an example to add =company= auto-completion to python buffer:
:init (push 'company-anaconda company-backends-python-mode))))
#+END_SRC
** Improved faces
For nicer-looking faces, try adding the following to `custom-set-faces` in your dotspacemacs file.
#+BEGIN_SRC emacs-lisp
(custom-set-faces
'(company-tooltip-common
((t (:inherit company-tooltip :weight bold :underline nil))))
'(company-tooltip-common-selection
((t (:inherit company-tooltip-selection :weight bold :underline nil)))))
#+END_SRC
* Key Bindings
** Company

View File

@ -102,12 +102,6 @@
;; ensure that the correct bindings are set at startup
(spacemacs//company-active-navigation dotspacemacs-editing-style)
;; Nicer looking faces
(custom-set-faces
'(company-tooltip-common
((t (:inherit company-tooltip :weight bold :underline nil))))
'(company-tooltip-common-selection
((t (:inherit company-tooltip-selection :weight bold :underline nil)))))
(setq company-transformers '(spacemacs//company-transformer-cancel
company-sort-by-occurrence)))))