From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Command to execute in a shell Date: Sat, 1 Aug 2009 16:57:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <054b1062-4866-4416-9b01-f407f09466e4@z4g2000prh.googlegroups.com> References: <87tz0t68ln.fsfhello@somewhere.com> <871vnxefhq.fsf@galatea.local> <87d47h5vtv.fsfhello@somewhere.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249222345 9073 80.91.229.12 (2 Aug 2009 14:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2009 14:12:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 02 16:12:18 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MXbnN-00034h-WD for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2009 16:12:18 +0200 Original-Received: from localhost ([127.0.0.1]:50167 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXbnM-0001El-U7 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2009 10:12:16 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z4g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1249171034 22477 127.0.0.1 (1 Aug 2009 23:57:14 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 1 Aug 2009 23:57:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z4g2000prh.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.37 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171452 X-Mailman-Approved-At: Sun, 02 Aug 2009 10:11:53 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66650 Archived-At: On Jul 30, 9:18 pm, Rafael wrote: > ... > The result of this can be > seen at > > http://farm4.static.flickr.com/3424/3774270402_81b58c6909_o.png Nice graph. :D what software is it? > and the function I have so far is: > > (defun split-for-tikz2pdf () > (interactive) > (TeX-run-style-hooks "tikz") > (split-window-horizontally 60) > (other-window 1) > (split-window-vertically 15) > (find-file "tikz2pdf_temp.pdf") > (doc-view-mode) > (auto-revert-mode 1) > (other-window 1) > (let ((file-path (buffer-file-name))) > (when file-path > (shell) > (comint-send-string (get-buffer-process (current-buffer)) > (format "tikz2pdf -v %S \n" file-path)))) > ) > > and the only wish I have now is to have doc-view-mode actually chosen > for the buffer of the .pdf file, (which is a new file at the moment). > As it is, it is in text mode (the default-major-mode). I would > appreciate any comments. haven't fully read this thread, but if you want elisp code to activate a particular mode, use: (funcall (intern "doc-view-mode")) It is pulled from =E2=80=A2 Using Emacs To Syntax Color Source Code In HTML http://xahlee.org/emacs/elisp_htmlize.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84