From: "haws" <hugows@gmail.com>
Subject: Something like read-file-into-string needed
Date: 5 Jan 2007 10:57:36 -0800 [thread overview]
Message-ID: <1168023456.119091.38300@51g2000cwl.googlegroups.com> (raw)
Hello everyone!
I've been trying out the snippet.el package which lets you insert
templates nicely.
But now I have a "big" template (like 100 lines) that I don't want to
put inline in my lisp function.
Instead, I'd like to have it in a file, and read this file contents
into a string.
Once in a string, I could use the regular command, snippet-insert, to
insert my template.
I've found no way to do that (only to insert the file into a buffer,
which doesn't solve my problem.)
Any tips, ideas?
Thanks in advance,
Hugo
next reply other threads:[~2007-01-05 18:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-05 18:57 haws [this message]
2007-01-05 20:06 ` Something like read-file-into-string needed Leo
[not found] ` <mailman.2789.1168027612.2155.help-gnu-emacs@gnu.org>
2007-01-05 20:41 ` haws
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1168023456.119091.38300@51g2000cwl.googlegroups.com \
--to=hugows@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).