all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: thorne <thinly-disguised@spam-sucks.foo>
To: help-gnu-emacs@gnu.org
Subject: Simple syntax table stuff
Date: Sat, 14 Apr 2007 23:21:45 -0700	[thread overview]
Message-ID: <m3y7ku2m4m.fsf@timbral.net> (raw)


Hello.  I would like to be able to font-lock strings in a text-mode
type buffer.  I have figured out i can do this:

(defun fontify-strings ()
  "Add font-lock to double-quoted strings in the current buffer."
  (interactive)
  (modify-syntax-entry ?\" "\"")
  (font-lock-fontify-buffer))

Which does work, but it is permanant--i don't know how to write code
to turn the feature off.  Is there a way to do that (i assume there
must be)?

Also, is there a way to define comment delimiters in syntax such that
a character is a comment start if and only if it is in column 1?

-- 
þ    theron tlåx    þ
(compose-mail (concat "thorne@" (rot13 "gvzoeny") ".net"))

             reply	other threads:[~2007-04-15  6:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-15  6:21 thorne [this message]
2007-04-15  6:43 ` Simple syntax table stuff David Hansen

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=m3y7ku2m4m.fsf@timbral.net \
    --to=thinly-disguised@spam-sucks.foo \
    --cc=help-gnu-emacs@gnu.org \
    /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.