From: Hongxu Chen <leftcopy.chx@gmail.com>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Why there is an additional NOSPAM in this Yasnippet?
Date: Fri, 10 May 2013 02:55:57 +0800 [thread overview]
Message-ID: <87y5bo9e4i.fsf@gmail.com> (raw)
In-Reply-To: <87txmcouq6.fsf@wanadoo.es> ("Óscar Fuentes"'s message of "Thu, 09 May 2013 20:48:17 +0200")
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
prev parent reply other threads:[~2013-05-09 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 18:08 Why there is an additional NOSPAM in this Yasnippet? Hongxu Chen
2013-05-09 18:48 ` Óscar Fuentes
2013-05-09 18:55 ` Hongxu Chen [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=87y5bo9e4i.fsf@gmail.com \
--to=leftcopy.chx@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=ofv@wanadoo.es \
/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.