Macos integration has been added

This commit is contained in:
Sameer Rahmani 2018-08-30 11:51:34 +01:00
parent 60666acae7
commit c86f15a21c
5 changed files with 32 additions and 1 deletions

View File

@ -12,7 +12,7 @@
;; ABILITIES
;; =========
;; Disable abilities which you don't want.
(disable 'rbenv 'helm 'spell 'linum 'smart-mode-line 'desktop-mode 'dired+ 'guru 'emoji)
(disable 'rbenv 'helm 'spell 'linum 'smart-mode-line 'desktop-mode 'dired+ 'guru 'emoji 'elpy)
;; EXTENSIONS

View File

@ -71,6 +71,9 @@
(depends-on 'emojify))
(if (eq system-type 'darwin)
(depends-on 'exec-path-from-shell))
;; Extension -------------------------------------
(extension editor
:version "2.31"

View File

@ -28,6 +28,11 @@
"Base plugin initialization."
(message "Initializing 'editor' extension.")
(if (eq system-type 'darwin)
(progn
(message "Running on the stupid macOS X.")
(exec-path-from-shell-initialize)))
(require 'all-the-icons)
(require 'cheatsheet)
(require 'extensions/editor/utils)

View File

@ -8,6 +8,11 @@
(depends-on 'virtualenvwrapper)
(depends-on 'flycheck)
(depends-on 'pyvenv)
(depends-on 'py-autopep8)
(with-ability elpy
(depends-on 'ein)
(depends-on 'elpy))
(with-ability kivy-editor
(depends-on 'kivy-mode))

View File

@ -98,6 +98,24 @@
(defun extensions/python-initialize ()
(message "Initializing 'python' extension.")
(ability elpy ()
"Full feature python IDE. (A little bit heavy)"
(require 'py-autopep8)
(elpy-enable)
(setq python-shell-interpreter "ipython"
python-shell-interpreter-args "-i --simple-prompt")
;; enable autopep8 formatting on save
(add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)
;; use flycheck not flymake with elpy
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode)))
(ability venv ()
"Virtualenv support"
(require 'virtualenvwrapper)