From: Karl Eichwalder <keichwa@gmx.net>
Subject: Using skeletons: how to avoid adding newline?
Date: Sun, 13 Apr 2003 08:43:07 +0200 [thread overview]
Message-ID: <shfzomnbic.fsf@tux.gnu.franken.de> (raw)
I'm trying to accomplish something very basic: "link" should become
[[link]]; this code snippet works but I'd like to avoid the newline
after "]]":
(define-skeleton ke-wp-make-link
"Create [[wikipedia link]]."
nil
"[[" _ "]]")
(global-set-key "\C-c[" 'ke-wp-make-link)
This is what I do:
1. Enter ("-!-" [[marks]]
the point):
Create -!-link here
2. Press "C-SPC" and "M-f" to mark a region:
Create link-!- here
3. Press "C-c [" to add [[...]]:
=>
Create [[link]]
-!- here
But I want to see:
Create [[link]]-!- here
--
ke@suse.de (work) / keichwa@gmx.net (home): |
http://www.gnu.franken.de/ke/ | ,__o
Free Translation Project: | _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)
next reply other threads:[~2003-04-13 6:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-13 6:43 Karl Eichwalder [this message]
2003-04-13 9:18 ` Using skeletons: how to avoid adding newline? Oliver Scholz
2003-04-13 15:15 ` Karl Eichwalder
2003-04-13 17:04 ` Stefan Monnier
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=shfzomnbic.fsf@tux.gnu.franken.de \
--to=keichwa@gmx.net \
/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.