help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode in regexp


From: Reiner Steib
Subject: Re: Unicode in regexp
Date: Tue, 14 Dec 2004 15:02:52 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

On Sat, Dec 04 2004, Torsten Bronger wrote:

> However, I want to use notes mode for taking on-line notes, and
> there this has a special meaning, so I want to use "•" (the real
> bullet in Unicode) instead.  I know that
>
>  '(adaptive-fill-regexp "[ \t]*\\([-!|#%;>*]+[ \t]*\\|(?[0-9]+[.)][ \t]*\\)*")
>
> in the appropriate place in my .emacs can do this, but how do I add
> the unicode to it?  Although the .emacs starts with
>
> ;-*- Mode: Emacs-Lisp; coding: utf-8; -*-
>
> a direct insertion doesn't work, neither does the UTF-8 code
> sequence translated to Latin-1.

And you custom statement (custom-set-variables ...) is in ~/.emacs?

Putting this in my-adapt-utf.el and loading it in Emacs works for me
in text mode.

--8<---------------cut here---------------start------------->8---
;; -*- coding: utf-8; -*-
(setq adaptive-fill-regexp
      "[ \t]*\\([-!|#%;>*•]+[ \t]*\\|(?[0-9]+[.)][ \t]*\\)*")
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]