all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Placing " at beginning and end of line?
Date: Thu, 19 Mar 2015 16:12:18 +0100	[thread overview]
Message-ID: <87iodxf2ct.fsf@yahoo.fr> (raw)
In-Reply-To: <87a8z9ksni.fsf@skimble.plus.com> (Sharon Kimble's message of "Thu, 19 Mar 2015 13:45:21 +0000")

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> How can I place " at the beginning of a line, and " at the end of a
> line, in a highlighted region please? This is a block of 10+ lines,
> and I need quotes from the beginning and end of each line.
>
> I have a block of text, which is a latex preamble, as part of an org-mode
> init file, which is tangled and creates my "init.el".

Another way is: C-M-% ^\|$ RET " RET
(i.e. replace all beginning of line and all end of line by a
double-quote character)

Yet another way would be using magnars' multiple-cursors-mode (available
from your favourite ELPA repository) : M-x mc/edit-lines (I have it bound to
"C-c e"), then do: " C-e " RET.

The added advantage of this solution is that it makes you feel extremely
powerful...

HTH,

-- 
Nicolas



      parent reply	other threads:[~2015-03-19 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19 13:45 Placing " at beginning and end of line? Sharon Kimble
2015-03-19 13:52 ` Tassilo Horn
2015-03-19 13:55 ` Yuri Khan
2015-03-19 15:12 ` Nicolas Richard [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=87iodxf2ct.fsf@yahoo.fr \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.