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

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

Re: Why there is an additional NOSPAM in this Yasnippet?


From: Hongxu Chen
Subject: Re: Why there is an additional NOSPAM in this Yasnippet?
Date: Fri, 10 May 2013 02:55:57 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Got it, thanks so much!

Óscar Fuentes <ofv@wanadoo.es> writes:

> Hongxu Chen <leftcopy.chx@gmail.com> writes:
>
>>    I am using yasnippet but has some problems with it.
>>
>>    There is a snippet file in the `snippets/text-mode' directory called
>>    `email', with the full contents below:
>>
>>     # name: (user's email)
>>     # key: email
>>     # --
>>     `(replace-regexp-in-string "@" "@NOSPAM." user-mail-address)`
>>
>> So why there is a need to replace the `@' with `@NOSPAM'?
>
> Putting @NOSPAM in the email address is a common way of trying to
> confuse spammers doing address harvesting.
>
> In this case, if you want to use your email address as-is, possibly
> there are methods provided by the email client you are using for quickly
> inserting it, without the need to use yasnippet.
>
>> BTW, is there any setting that looks up ONLY the directory I customized?
>> I am using this one but it STILL additionally uses the snippets insides
>> `yasnippets/snippets' directory(I am using elpa to manage el packages so
>> I do not like to remove or modify the snippets directory).
>>
>>   (setq yas-snippet-dirs "~/emacs.d/snippets")
>
> Try moving the setq to a place before (require 'yasnippet).

-- 
Regards,
Hongxu Chen



reply via email to

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