unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Configuring win32 Emacs for ipython?
@ 2013-06-30  6:56 Sivaram Neelakantan
  2013-06-30 14:36 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Sivaram Neelakantan @ 2013-06-30  6:56 UTC (permalink / raw)
  To: help-gnu-emacs


I have the following for the default python mode bundled with Emacs,
what settings should I add for ipython support? This is for a Windows
Emacs 24.3.


The code snippets below works in sending the python code to the python
interpreter and printing the results.

--8<---------------cut here---------------start------------->8---
(setq python-python-command  "C:\\Anaconda\\python")
;; no idea why popup is not being read;put path to load
(add-to-list 'load-path "/cygdrive/c/gnu/elisp/auto-complete/lib/popup/")
(add-to-list 'load-path "/cygdrive/c/gnu/elisp/auto-complete/")
(require 'auto-complete)
(add-hook 'python-mode-hook
          (function (lambda ()
                      (hs-minor-mode t)
		      (local-set-key (quote [f7])   (quote hs-hide-block))
		      (local-set-key (quote [S-f7]) (quote hs-show-block))
		      (local-set-key [f8] (quote hs-show-all))
		      (auto-complete-mode 1)
		      (ruler-mode t)
                      (paren-toggle-matching-quoted-paren 1)
                      (paren-toggle-matching-paired-delimiter 1))))
;;;;
--8<---------------cut here---------------end--------------->8---


 sivaram
 -- 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Configuring win32 Emacs for ipython?
  2013-06-30  6:56 Configuring win32 Emacs for ipython? Sivaram Neelakantan
@ 2013-06-30 14:36 ` Eli Zaretskii
  2013-07-01  2:31   ` Sivaram Neelakantan
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2013-06-30 14:36 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Sivaram Neelakantan <nsivaram.net@gmail.com>
> Date: Sun, 30 Jun 2013 12:26:26 +0530
> 
> I have the following for the default python mode bundled with Emacs,
> what settings should I add for ipython support? This is for a Windows
> Emacs 24.3.
> 
> 
> The code snippets below works in sending the python code to the python
> interpreter and printing the results.

Is this a Cygwin Emacs or a native w32 Emacs?  If the former, why do
you use Windows-style file names:

> (setq python-python-command  "C:\\Anaconda\\python")

If the latter, why do you use Cygwin-style file names:

> (add-to-list 'load-path "/cygdrive/c/gnu/elisp/auto-complete/lib/popup/")
> (add-to-list 'load-path "/cygdrive/c/gnu/elisp/auto-complete/")

which a w32 Emacs does not grok?

I don't recommend mixing a w32 Emacs with a Cygwin Python, or vice
versa.  There are subtle incompatibilities between Cygwin and native
programs that might bite you.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Configuring win32 Emacs for ipython?
  2013-06-30 14:36 ` Eli Zaretskii
@ 2013-07-01  2:31   ` Sivaram Neelakantan
  0 siblings, 0 replies; 3+ messages in thread
From: Sivaram Neelakantan @ 2013-07-01  2:31 UTC (permalink / raw)
  To: help-gnu-emacs

On Sun, Jun 30 2013,Eli Zaretskii wrote:


[snipped 11 lines]

> Is this a Cygwin Emacs or a native w32 Emacs?  If the former, why do
> you use Windows-style file names:
>
>> (setq python-python-command  "C:\\Anaconda\\python")

Native Windows port of Emacs and Python

>
> If the latter, why do you use Cygwin-style file names:
>
>> (add-to-list 'load-path "/cygdrive/c/gnu/elisp/auto-complete/lib/popup/")
>> (add-to-list 'load-path "/cygdrive/c/gnu/elisp/auto-complete/")
>
> which a w32 Emacs does not grok?
>

Well, it seems to work but I'll change it to Win32 style of path
names. 

[snipped 5 lines]

 sivaram
 -- 




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-01  2:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-30  6:56 Configuring win32 Emacs for ipython? Sivaram Neelakantan
2013-06-30 14:36 ` Eli Zaretskii
2013-07-01  2:31   ` Sivaram Neelakantan

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).