Emacs-for-python package is configured to be upstarted quickly, you shouldn’t spend your time in configuring and tweaking your Emacs environment (and searching for appropriate extensions).
Most of the selected extensions are “intelligent”, they aren’t intrusive and they don’t touch your focus.
After installing the package (it’s a matter of load-file), fire up Emacs.
To open a new file you can proceed as usual, with the C-x C-f
keystrokes, you would see the ido-mode prompt with fuzzy completion enabled.
It’s fairly intuitive, type some keywords and you will be searching through files. It remembers your choices and prompt you for the most used files.
After opening your python module you will have automatically activated some useful things:
There are also editing facilities:
C-o
inside a sentence, you will be teleported to the next line, with the correct indentation.After editing the files you may want to execute the code. I would not recommend the execution facilities of “python-mode”, instead I suggest you to act in this way:
M-x compile <interactive> python whatever_test_to_do
In this way the trace-backs are automatically highlighted and you can re-run easily the command (Be careful to the working directory!)
Very Good! Test are all green, you may want to register your changes to version control:
C-x v v
This will select the right thing to do, if the file is unregistered, it will be registered, else it will commit and prompt you for logging message. If you have other needs, I suggest you to spawn a shell and use it.
To use virtual environments for python development check the Virtualenv page.
Need to do 2+2?:
M-c q
Will prompt you for an expression, the result is in the kill ring, you can yank it in the text with C-y
Cut/Copy/Paste from external applications is easy, the keys are remapped with the super
key:
Cut: s-x Copy: s-c Paste: s-v
The buffer menu is improved with the same ido interface plus ibuffer, it’s much colorful and has nice sorting functionalities.
Can’t go with M-Tab
keys (the desktop keep switching application)? No problem it’s remapped with C-Tab
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4