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

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

Re: how to insert this?


From: William Xu
Subject: Re: how to insert this?
Date: Sun, 25 Nov 2007 12:10:32 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (darwin)

"Drew Adams" <drew.adams@oracle.com> writes:

> Here are two ways to do what you request:
>
> 1. Put the text in a file `cut', then use `C-x i cut' (command
> `insert-file').
>
> 2. Put the text in a string, then use a command that calls `insert' to
> insert it:
>
> (defcustom cut-string
>   "--8<---------------cut here---------------start------------->8---\n"
>   "My cut string" :type 'string)
>
> (defun insert-cut-string ()
>   "Insert `cut-string'." (interactive) (insert cut-string))

Alternatively, you can use abbrev-mode. I myself use "xcut" for
expanding something similar.

-- 
William

http://williamxu.net9.org





reply via email to

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