From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.help Subject: Re: About how misspelled word are displayed Date: Fri, 12 May 2017 21:30:13 +0200 Message-ID: <4bf8d1cf-5287-f74e-d6c5-938bbf295d6c@alice.it> References: <3993ee96-42e7-e597-f7d0-306003faa235@alice.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1494617527 9826 195.159.176.226 (12 May 2017 19:32:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 May 2017 19:32:07 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 12 21:32:03 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9GIE-0002Pv-QE for geh-help-gnu-emacs@m.gmane.org; Fri, 12 May 2017 21:32:02 +0200 Original-Received: from localhost ([::1]:55035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9GIJ-0006Rf-Vb for geh-help-gnu-emacs@m.gmane.org; Fri, 12 May 2017 15:32:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9GGk-0005qf-Qd for help-gnu-emacs@gnu.org; Fri, 12 May 2017 15:30:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9GGf-0000fJ-Qh for help-gnu-emacs@gnu.org; Fri, 12 May 2017 15:30:30 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:3762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9GGf-0000bS-Fa for help-gnu-emacs@gnu.org; Fri, 12 May 2017 15:30:25 -0400 Original-Received: from [192.168.1.102] (79.35.224.245) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 58C423FB284C71F0 for help-gnu-emacs@gnu.org; Fri, 12 May 2017 21:30:24 +0200 In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.100 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113005 Archived-At: Drew Adams wrote: > And for stuff that is not so simple, it is better to rely > on Customize. Yes, you are right but I have spent all the afternoon trying to find in 'Options - Customize Emacs' the things to customize and how... at the end I found this post: https://email.esm.psu.edu/pipermail/macosx-emacs/2008-October/000888.html which helped a bit. In short I have to use something like this: (custom-set-faces '(flyspell-duplicate ((t (:foreground "Gold3" :underline t :weight normal)))) '(flyspell-incorrect ((t (:foreground "OrangeRed" :underline t :weight normal)))) ) Really I already have in my init.el: ;; Instead of saving on ~/.emacs.d/init.el (setq custom-file "~/.emacs.d/custom.el") (load custom-file) this because I have installed packages from MELPA and I didn't want my init file changed silently (*). For this reasons, usually, I want to put all customizations, decided by me, in init.el leaving all the rest in custom.el. In this case, since _I_ want to change 'flyspell-duplicate', 'flyspell-incorrect', I would to add the code in init.el without duplicating the "custom-set-faces" (one in init.el and one in custom.el (*)) In any case, thanks for all your help. Angelo ---- (*) Installing from MELPA adds something like this to init.el if ono does not set a custom file: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages (quote (tabbar-ruler sr-speedbar)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. )