GithubHelp home page GithubHelp logo

emacsmirror / pungi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mgrbyte/pungi

0.0 3.0 0.0 46 KB

Integrates jedi with virtualenv and buildout python environments

Home Page: https://github.com/mgrbyte/pungi

License: GNU General Public License v3.0

Makefile 20.60% Emacs Lisp 79.40%

pungi's Introduction

pungi - A Python development tool to Integrate Jedi with virtualenv and buildout

The primary purpose of this package is to integrate the Emacs24 builtin python-mode package with jedi for ease of developing Python code with Emacs.

When working within a virtualenv, pungi:setup-jedi configures the python modes' python-shell-virtualenv-path to be the current virtualenv, and when a buildout is detected via the presence of an omelette part, sets python-shell-extra-pythonpaths , which enables jedi commands jedi:complete, jedi:goto-definition and jedi:doc operate on the correct source files.

pungi was originally inspired by the following gist:

https://gist.github.com/nyergler/6100112

For the curious, the name pungi is the Indian name for a snake charmer.

Installation

Ensure that the name "emacs" in your shell points to the Emacs executable. i.e On $PATH or aliased.

This package can be installed via the list-packages interface in Emacs.

If not using ELPA (i.e list-packages), then add the following to you init.el/.emacs:

(add-to-list 'load-path 'path-to-this-file)

Using ELPA, i.e when pungi is installed via list-packages:

In all cases, call pungi:setup-jedi within a python-mode-hook

Manual testing:

When visiting a python buffer, move the cursor over a symbol and check that invoking M-x jedi:goto-definition (Usually bound to the key M-.) opens a new buffer showing the source of that python symbol.

pungi's People

Contributors

mgrbyte avatar purcell avatar wyuenho avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.