Skip to content

Commit

Permalink
Commented out flymake config that I'm not using
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshk committed Feb 2, 2016
1 parent 4d3d032 commit 795d2db
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions startup.el
Expand Up @@ -197,26 +197,26 @@
(if window-system (require 'fixpath))))

;;; Flymake-Pylint
(eval-after-load "flymake"
'(progn
(defun flymake-pylint-init ()
(if window-system (require 'fixpath))
(local-set-key (kbd "C-.") 'flymake-goto-next-error-with-display)
(local-set-key (kbd "C->") 'flymake-goto-prev-error-with-display)
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list (concat emacs-root-p "support/epylint2.py") (list local-file))))
;; (eval-after-load "flymake"
;; '(progn
;; (defun flymake-pylint-init ()
;; (if window-system (require 'fixpath))
;; (local-set-key (kbd "C-.") 'flymake-goto-next-error-with-display)
;; (local-set-key (kbd "C->") 'flymake-goto-prev-error-with-display)
;; (let* ((temp-file (flymake-init-create-temp-buffer-copy
;; 'flymake-create-temp-inplace))
;; (local-file (file-relative-name
;; temp-file
;; (file-name-directory buffer-file-name))))
;; (list (concat emacs-root-p "support/epylint2.py") (list local-file))))

(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pylint-init))))
;; (add-to-list 'flymake-allowed-file-name-masks
;; '("\\.py\\'" flymake-pylint-init))))

(add-hook 'python-mode-hook
'(lambda ()
(flymake-mode t)
))
;; (add-hook 'python-mode-hook
;; '(lambda ()
;; (flymake-mode t)
;; ))

;;; XML
(add-to-list 'auto-mode-alist
Expand Down

0 comments on commit 795d2db

Please sign in to comment.