(define-key python-mode-map (kbd "M-/") 'jedi:show-doc) (define-key python-mode-map (kbd "M-,") 'jedi:goto-definition-pop-marker) (define-key python-mode-map (kbd "M-.") 'jedi:goto-definition) (setq imenu-create-index-function 'my-merge-imenu) (if (string-match-p "rita" (or (buffer-file-name) "")) (custom-imenu (imenu-generic-function imenu-generic-expression))) (let ((mode-imenu (imenu-default-create-index-function)) Python modeįinally we move to Emacs setting directly for work with Python. Yasnippet - allows to create and use snippets for different programming languages. Project search, project files replacement, go to definition, project switching and many other useful functions. Projectile - a plugin for project management in Emacs. Plugin, with the help of which you can appoint an action for any keys double-tapping is key-chord ( video).Īnalogue vim-powerline, of a functional status line powerline. Multiple-cursors - after watching this video you would surely like to try it :) A great article describes all the capabilities of this plugin. Search in open buffers ( helm-swoop), in recently opened files, in files in current directory, commands search, renaming of variables in several buffers and many other. The last one should be particularly pointed out - it is just excellent - a couple of touches and your code is on the server.Īnd you will ask about a file manager? Neotree integration with git is available.Īnother very useful plugin - helm - is an aoutocompletion to everything. ![]() More details in this video.įor work with git three wonderful plugins are used - git-gutter, mo-git-blame and magit. For example, company-elisp backend is used for lisp, for Python - company - jedi (backend for company-jedi - Python code’s static analysis libraries).Įxpand-region is used for text’s semantic allocation. Different backends are used for different modes. There is backend - an individual code for different modes and frontend - a general code which presents the results of autocompletion in Emacs itself. The convenience is in a structure of a given plugin. It works very quickly, can be completely customized, although the documentation is not full, I often looked in sources. Let’s probably start with avy, a plugin which allows to switch to a word, containing the entered symbol (analogue vim-easymotion).įor autocompletion we used company-mode - a universal autocompletion for Emacs. We are not going to describe all plugins in detail, for this purpose we attach a link to each of them. Plugins, irrespective of programming language Changes to recipes are very frequently made, plugins settings are added there, which is why they are stored in a separate folder. The folders with snippets yasnippet and recipes are also synchronized. Keybindings changes are taken out in a separate file keybindings_my.el. Hooks of different modes are described in a file hooks_my.el. In package_my.el there are a list of all plugins to be installed and several functions for correct installation. Scratch_my.el describes all the standard settings and includes all the required modes, which are incorporated from scratch in any fresh Emacs. (add-to-list 'load-path (expand-file-name "settings" user-emacs-directory))Īutomatically generated at “customize” code. The thinnest init.el, where logically broken files from settings folder connect. Generally, a very useful tool.Īll settings are stored in the following folder ~/.emacs.d. There is also another great command - :post-init, where lisp code can be specified, which will be run every time the plugin is initialized. In recipe you can specify the code origin - git/github repository or, just a link to the file or plugin’s name in ELPA/MELPA, necessary dependencies, for github - a branch or a tag.Ĭommand :built allows to start system utilities, if they required for plugin’s correct installation. This is a recipe for installation of flycheck - files syntax checking plugin. (setq flycheck-checker-error-threshold 2000) (setq flycheck-indication-mode 'left-fringe) (setq flycheck-check-syntax-automatically '(mode-enabled save idle-change)) (add-hook 'markdown-mode-hook #'flycheck-mode) (add-hook 'fish-mode-hook #'flycheck-mode) (add-hook 'lisp-interaction-mode-hook #'flycheck-mode) (add-hook 'web-mode-hook #'flycheck-mode) (add-hook 'python-mode-hook #'flycheck-mode) ![]() :description "On-the-fly syntax checking extension" ![]() Our choice is el-get - a perfect manager with autocompilation, automatic initialization and, the most importantly, installation recipes. To begin with, it is recommended to install an easy-to-use plugin manager with lazy loading and updating, such as NeoBundle from vim. Emacs is an excellent text editor for comfortable work with Python code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |