From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to create a function to italicize in latex in emacs?
Date: Wed, 27 Jul 2011 14:16:52 -0700 [thread overview]
Message-ID: <87ei1bifuj.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAJ8VZfVdOuZiC_GGi7we_Hf-sPZWURQbU02nXFqtGBMU6BLpiQ@mail.gmail.com
On Tue, Jul 26 2011, Pedro Costa wrote:
> Hi,
>
> I would like to italicize a word in latex in emacs automatically.
> Instead of write \textit{word}, I would like to select the "word" and
> then write M-x <my command> and it's added textit around the word. Do
> I have to create a lisp function in .emacs? How do I do that?
If you're editing a latex file you should be using a latex mode to do
that, and the latex mode will provide these sorts of commands. Auctex is
a great one: using that, select the word and then hit C-c C-f C-i to
surround it with \textit{}. Or just hit the command with nothing
selected, and point will be left between the braces, ready to type.
Eric
next prev parent reply other threads:[~2011-07-27 21:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 10:58 How to create a function to italicize in latex in emacs? Pedro Costa
2011-07-27 19:31 ` dejfson
2011-07-27 19:50 ` Andreas Röhler
2011-07-27 19:53 ` suvayu ali
2011-07-27 21:16 ` Eric Abrahamsen [this message]
2011-07-28 3:54 ` R. Clayton
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=87ei1bifuj.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--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.
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).