1. Theme
Describes how to define Emacs as a pycharm external editor.
2. Preparatory work
(1) Pycharm version number 2.7 or higher
(2) Download the Downloadedemacs and install it correctly
3. Configure Emacs
Open the Settings dialog box, under the IDE Settings node, open the External tools page. Confirm the installation of Emacs.
First of all. On the External tools page, click the green plus sign to open the Create/edit Tool dialog Box dialog box:
Do the following work:
(1) Input tool name (EMACS), brief description (open Emacs)
(2) Specifies the menu bar tool group that appears.
This is placed in the Editors menu group and can be placed in the main course
(3) Cancel the Open console tick
(4) Define the Emacs binary file location, can be manually entered also can browse the selection
(5) Enter the default open file path in the parameters column $filepath$
(6) Specify working folder (e.g. $projectfiledir$)
(7) Click OK
Setting takes effect.
4. Open the current file in Emacs
Click the Emacs Command in the Editors node in the Tools menu bar:
Opens the open a file in the Pycharm Editor dialog box. In the Tools menu. Select Editors→emacs:
5. Specify shortcut keys
Opens the Settings dialog box. In the Keymap page drop-down list, locate the external Tools node, expand Editors, right-click the Emacs node, and select Add keyboard shortcut:
Open the Enter Keyboard shortcut dialog box, where you enter the Ctrl+alt+shift+e combination:
No prompt conflict, click OKButton, the shortcut key is set up:
The most complete pycharm tutorial (--pycharm) expansion function Emacs External Editor