all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: hw <hw@adminart.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	17021@debbugs.gnu.org, koppel@ece.lsu.edu,
	stefankangas@gmail.com
Subject: bug#17021: 24.3.50; extension to hi-lock.el
Date: Mon, 17 Aug 2020 03:32:08 +0300	[thread overview]
Message-ID: <87d03q2juf.fsf@mail.linkov.net> (raw)
In-Reply-To: <cfbe1667dd832061803bad40401cc961df0b0c41.camel@adminart.net> (hw@adminart.net's message of "Sun, 16 Aug 2020 19:49:38 +0200")

> When you have a (source) file or a number of (source) files in a directory
> (structure) highlighting patterns should be applied to, you probably want
> to keep the pattern file(s) together with the source file(s) --- or at
> least within the same directory structure.  If you somehow distribute the
> source files and/or have them under version control, you are facing the
> problem of how to distribute the pattern files along with the source files
> when you have a bunch of unrelated pattern files together with relevant
> pattern files all in the same default location (i. e. some directory
> somewhere else).  And if you use the same pattern files for multiple
> projects, you don't want the pattern files used by project A altered when
> you revert to a previous commit of project B or when you merge changes to
> project C just because all the pattern are at the same default location.

All these problems were already solved long ago with the help of
Directory Local Variables.  Just put such lines to .dir-locals.el
in the root of your project:

((emacs-lisp-mode
  . ((hi-lock-file-patterns
      . ((("^;;; .*" (0 (quote hi-black-hb) t)))
         (("make-variable-buffer-\\(local\\)" (0 font-lock-keyword-face)(1 'italic append))))))))





  reply	other threads:[~2020-08-17  0:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-17  4:18 bug#17021: 24.3.50; extension to hi-lock.el lee
2014-03-17  8:21 ` lee
2014-03-17 10:53   ` lee
2014-03-24  4:54 ` bug#17021: updated patch lee
2020-08-13 10:32 ` bug#17021: 24.3.50; extension to hi-lock.el Lars Ingebrigtsen
2020-08-13 18:43   ` David Koppelman
2020-08-13 19:50     ` Stefan Kangas
2020-08-13 21:46       ` David Koppelman
2020-08-16 17:49         ` hw
2020-08-17  0:32           ` Juri Linkov [this message]
2020-09-14 15:07             ` Lars Ingebrigtsen

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=87d03q2juf.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=17021@debbugs.gnu.org \
    --cc=hw@adminart.net \
    --cc=koppel@ece.lsu.edu \
    --cc=larsi@gnus.org \
    --cc=stefankangas@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.