[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command to execute in a shell
From: |
Xah Lee |
Subject: |
Re: Command to execute in a shell |
Date: |
Sat, 1 Aug 2009 16:57:13 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Jul 30, 9:18 pm, Rafael <rvf0...@gmail.com> 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
• Using Emacs To Syntax Color Source Code In HTML
http://xahlee.org/emacs/elisp_htmlize.html
Xah
∑ http://xahlee.org/
☄
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Command to execute in a shell,
Xah Lee <=