lhonda avatar lhonda committed 6eed431

emacs removes trailing spaces

Comments (0)

Files changed (2)

 (autoload 'django-html-mumamo-mode "~/.emacs.d/nxhtml/autostart.el")
 (setq auto-mode-alist
       (append '(("\\.html?$" . django-html-mumamo-mode)) auto-mode-alist))
-(setq mumamo-background-colors nil) 
+(setq mumamo-background-colors nil)
 (add-to-list 'auto-mode-alist '("\\.html$" . django-html-mumamo-mode))
 
 (require 'ido)
 (global-linum-mode 1)
 (require 'flymake)
 
-(defun my-coding-hook () (make-local-variable 'column-number-mode) (column-number-mode t) (if window-system (hl-line-mode t)) (idle-highlight t))
+(defun my-coding-hook () (make-local-variable 'column-number-mode) (column-number-mode t) (idle-highlight t))
 
 (add-hook 'emacs-lisp-mode-hook 'my-coding-hook)
 (add-hook 'python-mode-hook 'my-coding-hook)
 
+(idle-highlight t)
+
 (cua-mode 0)
 
 (add-to-list 'load-path "/usr/share/emacs/site-lisp/emacs-goodies-el/")
 
 
 ;;; python-flake8.el --- Thin wrapper around python-pylint to run flake8
- 
+
 ;; Copyright (C) 2011 Andi Albrecht
- 
+
 ;; Author: Andi Albrecht <albrecht.andi@gmail.com>
 ;; Keywords: languages
- 
+
 ;; This program is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by
 ;; the Free Software Foundation, either version 3 of the License, or
 ;; (at your option) any later version.
- 
+
 ;; This program is distributed in the hope that it will be useful,
 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 ;; GNU General Public License for more details.
- 
+
 ;; You should have received a copy of the GNU General Public License
 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
- 
+
 ;;; Commentary:
- 
+
 ;; This is a thin wrapper around python-pylint
 ;; (https://gist.github.com/302848) to run flake8.
- 
+
 ;; Sometimes I want to run pylint and sometimes flake8. This simple
 ;; wrapper just re-uses python-pylint's compilation mode and
 ;; configures it to use flake8 and parses it's output.
- 
+
 ;;; Code:
- 
- 
+
+
 (defgroup python-flake8 nil
 "Wrapper around python-pylint for running flake8"
 :prefix "python-flake8-"
 :group 'tools)
- 
+
 (defconst python-flake8-regexp-alist
 (let* ((basepre "^\\(.*\\):\\([0-9]+\\):\\([0-9]+\\):\s+")
 (base (concat basepre "\\(%s.*\\)$")))
 (list (format base "[RWC]") 1 2 3 1)
 (list (concat basepre ".* is too complex ([0-9]+)$") 1 2)))
 "Regexp used to match PYLINT hits. See `compilation-error-regexp-alist'.")
- 
+
 (defcustom python-flake8-options '()
 "Options to pass to flake8."
 :type '(repeat string)
 :group 'python-flake8)
- 
+
 (defcustom python-flake8-command "flake8"
 "flake8 command."
 :type '(file)
 :group 'python-flake8)
- 
+
 (defun python-flake8 ()
 "Utilize python-pylint to run flake8 instead."
 (interactive)
 (python-pylint-options python-flake8-options)
 (python-pylint-regexp-alist python-flake8-regexp-alist))
 (python-pylint)))
- 
- 
+
+
 (defalias 'flake8 'python-flake8)
- 
+
 (provide 'python-flake8)
 ;;; python-flake8.el ends here
 
 (yas/initialize)
 (yas/load-directory "~/.emacs.d/plugins")
 
+(add-hook `before-save-hook `delete-trailing-whitespace)
-pyflakes $1 |grep -v htmlcov |grep -v logs 
-echo "## pyflakes above, pep8 below ##"
-pep8 --repeat --exclude htmlcov --exclude logs $1
+flake8 --exclude=htmlcov --exclude=logs --ignore=E501 $1
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.