all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* remove custom-set-*
@ 2017-02-22 12:39 Anast Gramm
  2017-02-22 15:51 ` Eli Zaretskii
  2017-02-24  0:18 ` Michael Heerdegen
  0 siblings, 2 replies; 3+ messages in thread
From: Anast Gramm @ 2017-02-22 12:39 UTC (permalink / raw)
  To: help-gnu-emacs

Hey list,

I have disabled the customs file since I want to have my configuration
in one neatly organised org file.

  custom-file (make-temp-file "")

I want to remove custom-set-faces from the code below, but I don't know how.
setq doesn't work, and I don't know what to try.

  (custom-set-faces
   '(company-preview
     ((t (:foreground "darkgray" :underline t))))
   '(company-preview-common
     ((t (:inherit company-preview))))
   '(company-tooltip
     ((t (:background "gray4" :foreground "gray85"))))
   '(company-tooltip-selection 
     ((t (:background "dark olive green" :foreground "gray100"))))
   '(company-tooltip-annotation
     ((t (:background "gray4" :foreground "goldenrod1"))))   
   '(company-tooltip-annotation-selection
     ((t (:background "dark olive green" :foreground "goldenrod1"))))
   '(company-tooltip-common
     ((t (:background "gray4" :foreground "gray42"))))
   '(company-tooltip-common-selection
     ((t (:background "dark olive green" :foreground "gray69")))))

Also from here, how do I remove the custom-set-variables

  (custom-set-variables
   '(TeX-view-program-selection
     (quote
      (((output-dvi has-no-display-manager)
        "dvi2tty")
       ((output-dvi style-pstricks)
        "dvips and gv")
       (output-dvi "xdvi")
       (output-pdf "Zathura")
       (output-html "xdg-open")))))



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: remove custom-set-*
  2017-02-22 12:39 remove custom-set-* Anast Gramm
@ 2017-02-22 15:51 ` Eli Zaretskii
  2017-02-24  0:18 ` Michael Heerdegen
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2017-02-22 15:51 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Wed, 22 Feb 2017 14:39:31 +0200
> From: Anast Gramm <anastasis.gramm2@gmail.com>
> 
> I want to remove custom-set-faces from the code below, but I don't know how.
> setq doesn't work, and I don't know what to try.

I think setq will work if you create the faces first (with defface or
something).  Or use setq in a hook that company provides when it is
turned on.

> Also from here, how do I remove the custom-set-variables
> 
>   (custom-set-variables
>    '(TeX-view-program-selection
>      (quote
>       (((output-dvi has-no-display-manager)
>         "dvi2tty")
>        ((output-dvi style-pstricks)
>         "dvips and gv")
>        (output-dvi "xdvi")
>        (output-pdf "Zathura")
>        (output-html "xdg-open")))))

Use setq, perhaps in the hook offered by the mode which needs the
above.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: remove custom-set-*
  2017-02-22 12:39 remove custom-set-* Anast Gramm
  2017-02-22 15:51 ` Eli Zaretskii
@ 2017-02-24  0:18 ` Michael Heerdegen
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Heerdegen @ 2017-02-24  0:18 UTC (permalink / raw)
  To: Anast Gramm; +Cc: help-gnu-emacs

Anast Gramm <anastasis.gramm2@gmail.com> writes:

> I want to remove custom-set-faces from the code below, but I don't
> know how.  setq doesn't work, and I don't know what to try.

I use this - dunno if it's good (but it works):

#+begin_src emacs-lisp
(defun my-face-spec-set (face spec)
  "Same as `custom-set-faces', minus custom and for one face."
  ;; (put face 'saved-face spec)
  (face-spec-set face spec 'face-defface-spec))
#+end_src


Michael.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-24  0:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-22 12:39 remove custom-set-* Anast Gramm
2017-02-22 15:51 ` Eli Zaretskii
2017-02-24  0:18 ` Michael Heerdegen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.