From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Info nodes titles font size customization Date: Sun, 5 Oct 2008 12:37:22 -0700 Message-ID: <011601c92721$c9cf9b80$0200a8c0@us.oracle.com> References: <87ej2v5njx.fsf@gmail.com><87r66vuid1.fsf@gmail.com><874p3qopx0.fsf@gmail.com> <87hc7q4ytj.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223235467 30410 80.91.229.12 (5 Oct 2008 19:37:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Oct 2008 19:37:47 +0000 (UTC) To: "'Rodolfo Medina'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 05 21:38:45 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KmZRE-0003pX-Pw for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2008 21:38:45 +0200 Original-Received: from localhost ([127.0.0.1]:60668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmZQB-0000uC-98 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Oct 2008 15:37:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KmZPr-0000u3-K9 for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 15:37:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KmZPq-0000tr-1O for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 15:37:19 -0400 Original-Received: from [199.232.76.173] (port=51501 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmZPp-0000to-TU for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 15:37:17 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:17839) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KmZPo-0003JN-9U for help-gnu-emacs@gnu.org; Sun, 05 Oct 2008 15:37:16 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m95JbDcS009631; Sun, 5 Oct 2008 13:37:13 -0600 Original-Received: from acsmt707.oracle.com (acsmt707.oracle.com [141.146.40.85]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m95JbB8f013357; Sun, 5 Oct 2008 13:37:12 -0600 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 05 Oct 2008 12:37:11 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87hc7q4ytj.fsf@gmail.com> Thread-Index: AcknGlxsffu3xT7GQC2LvqFpk+QL+wABp1sw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58398 Archived-At: > > Uh, use `custom-set-faces' in ~/.emacs? > > > > If you never use Customize, then Customize will never > > overwrite the `(custom-set-faces ...)' that you put in > > your ~/.emacs. > > To better explain what I mean, suppose that I want a > ps-top-margin of 20pt. If > I do `M-x customize-group RET ps-psrint RET' and do my setting via > customization, in my .emacs the following ugly stuff will > automatically appear: > > (custom-set-variables...) > > ; instead, all I need is to write: > (setq ps-top-margin 5) > > , which is much more tiny and simple. I wish something > similar in this case. Faces are different from variables. Nevertheless, there are other ways to change face properties than using `custom-set-faces'. Look at `defface' and functions such as `set-face-attribute' (`set-face-*', in general). However, this is what I'd recommend: Set variable `custom-file' to the name of a different file from `.emacs', e.g. `~/rodolfo-custom-file', and then use Customize. It's much easier and cleaner than you think. This will keep all of the ugly Customize-maintained stuff out of your `.emacs'. See the Emacs manual, node Saving Customizations.