From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pedro Costa Newsgroups: gmane.emacs.help Subject: How to create a function to italicize in latex in emacs? Date: Tue, 26 Jul 2011 11:58:11 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1311794408 13953 80.91.229.12 (27 Jul 2011 19:20:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 19:20:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 27 21:19:58 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qm9e9-00055O-Il for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 21:19:57 +0200 Original-Received: from localhost ([::1]:45816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm9e9-0005Vl-3y for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 15:19:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlfLN-0002e9-Ax for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 06:58:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlfLM-0003Aj-FQ for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 06:58:33 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:64058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlfLM-0003AY-CS for help-gnu-emacs@gnu.org; Tue, 26 Jul 2011 06:58:32 -0400 Original-Received: by iyb14 with SMTP id 14so600875iyb.0 for ; Tue, 26 Jul 2011 03:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=6RBhwd1Ibj0WjufuL3/CktiDfooIAX1oia/rtf+m0wA=; b=uIwMtfJ9gRO+yke4SMU5MyR2tgNXRFjlEv3ZtVmzIKqF05Mu5DP1G7ct0M/1EkFTYL gzCczXGlFWJbQ7i1Z1N8LmeG+4sEg0v2Pt4Cz6RrbFDgOSFUc4GEGYK3xHEx0oIPrTUN MKoTLaadhYNQsE7YppLY4FhFRL72DQkbH4rpc= Original-Received: by 10.231.120.92 with SMTP id c28mr5829500ibr.46.1311677911150; Tue, 26 Jul 2011 03:58:31 -0700 (PDT) Original-Received: by 10.231.199.1 with HTTP; Tue, 26 Jul 2011 03:58:11 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-Mailman-Approved-At: Wed, 27 Jul 2011 15:19:52 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81813 Archived-At: 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 and it's added textit around the word. Do I have to create a lisp function in .emacs? How do I do that? Thanks,