Skip to content

Latest commit

 

History

History
113 lines (80 loc) · 3.45 KB

usage.rst

File metadata and controls

113 lines (80 loc) · 3.45 KB

Usage

nesight-mode

At Netsight, we use a custom minor-mode which defines a set of emacs functions and key bindings that we've found useful over time.

By default, this minor mode is activated globally (as indicated in your mode line).

You can turn this off by adding the following in file pointed to by the custom-file variable:

As with all other modes, Key-bindings and functions provided by the mode are documented in the info window when you invoke C-h m or M-x describe-mode and navigate to Netsight.

python-mode

This package use the built-in python mode provided in emacs24.

It has been configure to add hooks which load the pungi package. Additionally, the netsight-mode function py-insert-debug is enabled, which inserts the pdb.set_trace command on the current line indicated by position of the cursor.

Custom settings and functions

The default custom-file is:

~/.emacs-customize.el

If you use the customize interface in Emacs, then any saved settings generated will also be appended to this file.

Your own settings and functions should be added to ~/.emacs-custom.el, this file will be created on your behalf (if it doesn't already exist) upon installation. Move any personal preferences, settings, and/or utility functions you've previously used into this file.

If you require variables to differ depending on the project you're working on, consider using directory local variables.

Package management

New packages can be added to Emacs by using the package manager M-x list-packages.

The pallet package automatically takes care of keeping the Cask file_ up to date with packages you may install or delete with list-packages.

Python development

By default, the netsight package uses the built-in python package,

The pungi package provides jedi and pyvenv integration for buildout and virtualenv.

The flycheck package is used for PEP8 and syntax checking.

The sphinx-doc package provides auto-generation of documentation strings for functions and methods. Consult the python mode help for commands to insert doc strings for other Python statements.

Related packages

python-mode
An Emacs mode for editing Python code
jedi
Python auto-completion for Emacs.
pyvenv
Management of Python virtual environments.
pungi
Integrates jedi with virtualenv and buildout python environments.
flycheck
On-the-fly syntax checking (Flymake done right)

See the package documentation for each of the above for a synopsis on the all the key-bindings and utilities available.

the pungi package detects if the file you are editing resides in either virtualenv, or buildout, and makes the jedi:goto-definition feature work in either environment.