all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using skeletons: how to avoid adding newline?
@ 2003-04-13  6:43 Karl Eichwalder
  2003-04-13  9:18 ` Oliver Scholz
  0 siblings, 1 reply; 4+ messages in thread
From: Karl Eichwalder @ 2003-04-13  6:43 UTC (permalink / 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/             |   (*)/'(*)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-04-13 17:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-13  6:43 Using skeletons: how to avoid adding newline? Karl Eichwalder
2003-04-13  9:18 ` Oliver Scholz
2003-04-13 15:15   ` Karl Eichwalder
2003-04-13 17:04     ` Stefan Monnier

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.