Skip to content

Commit

Permalink
Adds python and js beautifier configs
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreant-p committed May 22, 2016
1 parent a3bc06a commit e239324
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/init-flycheck.el
Expand Up @@ -13,7 +13,8 @@
(set-face-attribute 'flycheck-fringe-warning nil :foreground "gold")
(set-face-attribute 'flycheck-warning nil :box '(:line-width 2 :color "gold"))

(add-hook 'after-init-hook #'global-flycheck-mode)
'(flycheck-jshintrc "~/dev/sketchfab/showwebgl/.jshintrc")
'(flycheck-flake8rc '"~/dev/sketchfab/showwebgl/tox.ini")

(provide 'init-flycheck)
;;; init-flycheck.el ends here
6 changes: 5 additions & 1 deletion modules/init-python.el
@@ -1,13 +1,17 @@
;;; init-python.el --- Configures python
;;
;;; Commentary:
;; Configures python colors
;; Configures python

;;; Code:
(require 'python)
(require 'jedi)
(require 'py-isort)
(require 'py-yapf)

(add-hook 'python-mode-hook 'jedi:setup)
(setq py-isort-options '("--settings-path=/Users/pilou/dev/sketchfab/showwebgl/.isort.cfg"))
(setq py-yapf-options '("--style=/Users/pilou/dev/sketchfab/showwebgl/.style.yapf"))

(provide 'init-python)
;;; init-python.el ends here

0 comments on commit e239324

Please sign in to comment.