all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'smd'" <sssmmmddd@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Patch syntax coloring for xemacs / XP
Date: Sun, 28 Sep 2008 07:35:58 -0700	[thread overview]
Message-ID: <005801c92177$86897530$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <7678168f-2b9c-4fb6-b197-0f0acf3a2f92@m45g2000hsb.googlegroups.com>

> This took me forever to find :) I am a total newb, and wanted to use
> the facilities of Emacs that allow for editing of diff patch files
> (like hunk row calculations, etc)... As soon as I installed the latest
> version, and opened a patch file, and chosen font-lock-mode (I guess
> the syntax coloring mode), I could see that *only* the patch headers
> are colored, but not the added/removed files (i.e. those starting with
> + / - in a patch file). (As I also messed up the diff-mode display, ow
> I als have to start it by using Alt-X, then type "diff-mode" and
> Enter, an say no to "convert contents back to binary format").
> 
> Once you're sure you're in diff-mode, and syntax-coloring is on, heres
> how to get those rows to color:
> - Options / Edit Faces...
> - scroll down, and find Diff Added Face, and Diff Changed Face, and
> change those by clicking the little trangle, clicking the box next to
> Foreground/Background in the subsequently opened options, and type in
> a color like 'red', preview will be enabled
> --- Note that these options (Diff Added Face) will NOT be present,
> unless diff-mode is currently active
> --- notice that Diff Context Face should already be defaulted to a
> gray color
> - to save, right click, select Save
> 
> After this, the patch should have th lines correspondingly colored.
> This process should make a file, custom.el, with the following
> contents:
> (custom-set-variables)
> (custom-set-faces
>  '(diff-added-face ((t (:foreground "red"))))
>  '(diff-changed-face ((t (:foreground "darkorange"))))
>  '(diff-removed-face ((t (:foreground "blue")))))
> 
> However, it seems these options do not get saved with xemacs, so I
> have to re-do the procedure each time I start it...

Dunno if it helps with XEmacs (probably not), but you might also want to take a
look at http://www.emacswiki.org/cgi-bin/wiki/DiffEnhancements.





      parent reply	other threads:[~2008-09-28 14:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-28 10:28 Patch syntax coloring for xemacs / XP smd
2008-09-28 13:47 ` Lennart Borgman (gmail)
2008-09-28 14:35 ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='005801c92177$86897530$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sssmmmddd@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.