-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
451 additions
and
5 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
.python-environments/default/lib/python2.7/site-packages/argparse.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
(nil) | ||
((("dump" . | ||
[0 0 1 0]) | ||
("I" . | ||
[1]) | ||
("result" . | ||
[1 0 0 0 0 0]) | ||
("dumps" . | ||
[0 0 0 0 2]) | ||
("message" . | ||
[4 0 0 0 0 0 0]) | ||
("security" . | ||
[0 0 0 1 0 0 0 3]) | ||
("json_file" . | ||
[1 0 0 0 0 0 0 0 1]) | ||
("self" . | ||
[3 0 0 0]))) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
After you add the following line to your Emacs init file you can | ||
call imenu from a dired buffer and get a list of all files in the | ||
current buffer with completion. That's easier to use the isearch if | ||
you use something like idomenu. | ||
|
||
(require 'dired-imenu) |
Empty file.
43 changes: 43 additions & 0 deletions
43
elpa/highlight-indentation-20150307.208/highlight-indentation-autoloads.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
;;; highlight-indentation-autoloads.el --- automatically extracted autoloads | ||
;; | ||
;;; Code: | ||
|
||
|
||
;;;### (autoloads (highlight-indentation-current-column-mode highlight-indentation-set-offset | ||
;;;;;; highlight-indentation-mode) "highlight-indentation" "highlight-indentation.el" | ||
;;;;;; (21855 5776 582721 768000)) | ||
;;; Generated autoloads from highlight-indentation.el | ||
|
||
(autoload 'highlight-indentation-mode "highlight-indentation" "\ | ||
Highlight indentation minor mode highlights indentation based on spaces | ||
\(fn &optional ARG)" t nil) | ||
|
||
(autoload 'highlight-indentation-set-offset "highlight-indentation" "\ | ||
Set indentation offset localy in buffer, will prevent | ||
highlight-indentation from trying to guess indentation offset | ||
from major mode | ||
\(fn OFFSET)" t nil) | ||
|
||
(autoload 'highlight-indentation-current-column-mode "highlight-indentation" "\ | ||
Hilight Indentation minor mode displays a vertical bar | ||
corresponding to the indentation of the current line | ||
\(fn &optional ARG)" t nil) | ||
|
||
;;;*** | ||
|
||
;;;### (autoloads nil nil ("highlight-indentation-pkg.el") (21855 | ||
;;;;;; 5776 684685 776000)) | ||
|
||
;;;*** | ||
|
||
(provide 'highlight-indentation-autoloads) | ||
;; Local Variables: | ||
;; version-control: never | ||
;; no-byte-compile: t | ||
;; no-update-autoloads: t | ||
;; coding: utf-8 | ||
;; End: | ||
;;; highlight-indentation-autoloads.el ends here |
1 change: 1 addition & 0 deletions
1
elpa/highlight-indentation-20150307.208/highlight-indentation-pkg.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(define-package "highlight-indentation" "20150307.208" "Minor modes for highlighting indentation" (quote nil)) |
Binary file added
BIN
+654 Bytes
elpa/highlight-indentation-20150307.208/highlight-indentation-pkg.elc
Binary file not shown.
244 changes: 244 additions & 0 deletions
244
elpa/highlight-indentation-20150307.208/highlight-indentation.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,244 @@ | ||
;;; highlight-indentation.el --- Minor modes for highlighting indentation | ||
;; Author: Anton Johansson <anton.johansson@gmail.com> - http://antonj.se | ||
;; Created: Dec 15 23:42:04 2010 | ||
;; Version: 0.7.0 | ||
;; Package-Version: 20150307.208 | ||
;; URL: https://github.com/antonj/Highlight-Indentation-for-Emacs | ||
;; | ||
;; 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 2 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. | ||
;; | ||
;;; Commentary: | ||
;; Customize `highlight-indentation-face', and | ||
;; `highlight-indentation-current-column-face' to suit your theme. | ||
|
||
;;; Code: | ||
|
||
(defgroup highlight-indentation nil | ||
"Highlight Indentation" | ||
:prefix "highlight-indentation-" | ||
:group 'basic-faces) | ||
|
||
(defface highlight-indentation-face | ||
;; Fringe has non intrusive color in most color-themes | ||
'((t :inherit fringe)) | ||
"Basic face for highlighting indentation guides." | ||
:group 'highlight-indentation) | ||
|
||
(defcustom highlight-indentation-offset 4 | ||
"Default indentation offset, used if no other can be found from | ||
major mode. This value is always used by | ||
`highlight-indentation-mode' if set buffer local. Set buffer | ||
local with `highlight-indentation-set-offset'" | ||
:group 'highlight-indentation) | ||
|
||
(defconst highlight-indentation-hooks | ||
'((after-change-functions (lambda (start end length) | ||
(highlight-indentation-redraw-region | ||
start end | ||
'highlight-indentation-overlay | ||
'highlight-indentation-put-overlays-region)) | ||
t t) | ||
(window-scroll-functions (lambda (win start) | ||
(highlight-indentation-redraw-window | ||
win | ||
'highlight-indentation-overlay | ||
'highlight-indentation-put-overlays-region | ||
start)) | ||
nil t))) | ||
|
||
(defun highlight-indentation-get-buffer-windows (&optional all-frames) | ||
"Return a list of windows displaying the current buffer." | ||
(get-buffer-window-list (current-buffer) 'no-minibuf all-frames)) | ||
|
||
(defun highlight-indentation-delete-overlays-buffer (overlay) | ||
"Delete all overlays in the current buffer." | ||
(save-restriction | ||
(widen) | ||
(highlight-indentation-delete-overlays-region (point-min) (point-max) overlay))) | ||
|
||
(defun highlight-indentation-delete-overlays-region (start end overlay) | ||
"Delete overlays between START and END." | ||
(mapc #'(lambda (o) | ||
(if (overlay-get o overlay) (delete-overlay o))) | ||
(overlays-in start end))) | ||
|
||
(defun highlight-indentation-redraw-window (win overlay func &optional start) | ||
"Redraw win starting from START." | ||
(highlight-indentation-redraw-region (or start (window-start win)) (window-end win t) overlay func)) | ||
|
||
(defun highlight-indentation-redraw-region (start end overlay func) | ||
"Erease and read overlays between START and END." | ||
(save-match-data | ||
(save-excursion | ||
(let ((inhibit-point-motion-hooks t) | ||
(end (save-excursion (goto-char end) (line-beginning-position 2)))) | ||
(highlight-indentation-delete-overlays-region start end overlay) | ||
(funcall func start end overlay))))) | ||
|
||
(defun highlight-indentation-redraw-all-windows (overlay func &optional all-frames) | ||
"Redraw the all windows showing the current buffer." | ||
(dolist (win (highlight-indentation-get-buffer-windows all-frames)) | ||
(highlight-indentation-redraw-window win overlay func))) | ||
|
||
(defun highlight-indentation-put-overlays-region (start end overlay) | ||
"Place overlays between START and END." | ||
(goto-char start) | ||
(let (o ;; overlay | ||
(last-indent 0) | ||
(pos start)) | ||
(while (< pos end) | ||
(beginning-of-line) | ||
(while (and (integerp (char-after)) | ||
(not (= 10 (char-after))) ;; newline | ||
(= 32 (char-after))) ;; space | ||
(when (= 0 (% (current-column) highlight-indentation-offset)) | ||
(setq pos (point) | ||
last-indent pos | ||
o (make-overlay pos (+ pos 1))) | ||
(overlay-put o overlay t) | ||
(overlay-put o 'priority highlight-indentation-overlay-priority) | ||
(overlay-put o 'face 'highlight-indentation-face)) | ||
(forward-char)) | ||
(forward-line) ;; Next line | ||
(setq pos (point))))) | ||
|
||
(defun highlight-indentation-guess-offset () | ||
"Get indentation offset of current buffer" | ||
(cond ((and (eq major-mode 'python-mode) (boundp 'python-indent)) | ||
python-indent) | ||
((and (eq major-mode 'python-mode) (boundp 'py-indent-offset)) | ||
py-indent-offset) | ||
((and (eq major-mode 'python-mode) (boundp 'python-indent-offset)) | ||
python-indent-offset) | ||
((eq major-mode 'ruby-mode) | ||
ruby-indent-level) | ||
((and (eq major-mode 'scala-mode) (boundp 'scala-indent:step)) | ||
scala-indent:step) | ||
((and (eq major-mode 'scala-mode) (boundp 'scala-mode-indent:step)) | ||
scala-mode-indent:step) | ||
((or (eq major-mode 'scss-mode) (eq major-mode 'css-mode)) | ||
css-indent-offset) | ||
((eq major-mode 'nxml-mode) | ||
nxml-child-indent) | ||
((eq major-mode 'coffee-mode) | ||
coffee-tab-width) | ||
((eq major-mode 'js-mode) | ||
js-indent-level) | ||
((eq major-mode 'js2-mode) | ||
js2-basic-offset) | ||
((and (fboundp 'derived-mode-class) (eq (derived-mode-class major-mode) 'sws-mode)) | ||
sws-tab-width) | ||
((eq major-mode 'web-mode) | ||
web-mode-html-offset) ; other similar vars: web-mode-{css-indent,scripts}-offset | ||
((local-variable-p 'c-basic-offset) | ||
c-basic-offset) | ||
(t | ||
(default-value 'highlight-indentation-offset)))) | ||
|
||
;;;###autoload | ||
(define-minor-mode highlight-indentation-mode | ||
"Highlight indentation minor mode highlights indentation based on spaces" | ||
:lighter " ||" | ||
(when (not highlight-indentation-mode) ;; OFF | ||
(highlight-indentation-delete-overlays-buffer 'highlight-indentation-overlay) | ||
(dolist (hook highlight-indentation-hooks) | ||
(remove-hook (car hook) (nth 1 hook) (nth 3 hook)))) | ||
|
||
(when highlight-indentation-mode ;; ON | ||
(when (not (local-variable-p 'highlight-indentation-offset)) | ||
(set (make-local-variable 'highlight-indentation-offset) | ||
(highlight-indentation-guess-offset))) | ||
|
||
;; Setup hooks | ||
(dolist (hook highlight-indentation-hooks) | ||
(apply 'add-hook hook)) | ||
(highlight-indentation-redraw-all-windows 'highlight-indentation-overlay | ||
'highlight-indentation-put-overlays-region))) | ||
|
||
;;;###autoload | ||
(defun highlight-indentation-set-offset (offset) | ||
"Set indentation offset localy in buffer, will prevent | ||
highlight-indentation from trying to guess indentation offset | ||
from major mode" | ||
(interactive | ||
(if (and current-prefix-arg (not (consp current-prefix-arg))) | ||
(list (prefix-numeric-value current-prefix-arg)) | ||
(list (read-number "Indentation offset: ")))) | ||
(set (make-local-variable 'highlight-indentation-offset) offset) | ||
(when highlight-indentation-mode | ||
(highlight-indentation-mode))) | ||
|
||
;;; This minor mode will highlight the indentation of the current line | ||
;;; as a vertical bar (grey background color) aligned with the column of the | ||
;;; first character of the current line. | ||
(defface highlight-indentation-current-column-face | ||
;; Fringe has non intrusive color in most color-themes | ||
'((t (:background "black"))) | ||
"Basic face for highlighting indentation guides." | ||
:group 'highlight-indentation) | ||
|
||
(defvar highlight-indentation-overlay-priority 1) | ||
(defvar highlight-indentation-current-column-overlay-priority 2) | ||
|
||
(defconst highlight-indentation-current-column-hooks | ||
'((post-command-hook (lambda () | ||
(highlight-indentation-redraw-all-windows 'highlight-indentation-current-column-overlay | ||
'highlight-indentation-current-column-put-overlays-region)) nil t))) | ||
|
||
(defun highlight-indentation-current-column-put-overlays-region (start end overlay) | ||
"Place overlays between START and END." | ||
(let (o ;; overlay | ||
(last-indent 0) | ||
(indent (save-excursion (back-to-indentation) (current-column))) | ||
(pos start)) | ||
(goto-char start) | ||
;; (message "doing it %d" indent) | ||
(while (< pos end) | ||
(beginning-of-line) | ||
(while (and (integerp (char-after)) | ||
(not (= 10 (char-after))) ;; newline | ||
(= 32 (char-after))) ;; space | ||
(when (= (current-column) indent) | ||
(setq pos (point) | ||
last-indent pos | ||
o (make-overlay pos (+ pos 1))) | ||
(overlay-put o overlay t) | ||
(overlay-put o 'priority highlight-indentation-current-column-overlay-priority) | ||
(overlay-put o 'face 'highlight-indentation-current-column-face)) | ||
(forward-char)) | ||
(forward-line) ;; Next line | ||
(setq pos (point))))) | ||
|
||
;;;###autoload | ||
(define-minor-mode highlight-indentation-current-column-mode | ||
"Hilight Indentation minor mode displays a vertical bar | ||
corresponding to the indentation of the current line" | ||
:lighter " |" | ||
|
||
(when (not highlight-indentation-current-column-mode) ;; OFF | ||
(highlight-indentation-delete-overlays-buffer 'highlight-indentation-current-column-overlay) | ||
(dolist (hook highlight-indentation-current-column-hooks) | ||
(remove-hook (car hook) (nth 1 hook) (nth 3 hook)))) | ||
|
||
(when highlight-indentation-current-column-mode ;; ON | ||
(when (not (local-variable-p 'highlight-indentation-offset)) | ||
(set (make-local-variable 'highlight-indentation-offset) | ||
(highlight-indentation-guess-offset))) | ||
|
||
;; Setup hooks | ||
(dolist (hook highlight-indentation-current-column-hooks) | ||
(apply 'add-hook hook)) | ||
(highlight-indentation-redraw-all-windows 'highlight-indentation-current-column-overlay | ||
'highlight-indentation-current-column-put-overlays-region))) | ||
|
||
(provide 'highlight-indentation) | ||
|
||
;;; highlight-indentation.el ends here |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Customize `highlight-indentation-face', and | ||
`highlight-indentation-current-column-face' to suit your theme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
See documentation in README.org, README.DEVEL.org | ||
|
||
commands-python-mode.org in directory "doc" reports | ||
available commands, also a menu is provided | ||
|
||
as for `py-add-abbrev': | ||
Similar to `add-mode-abbrev', but uses | ||
`py-partial-expression' before point for expansion to | ||
store, not `word'. Also provides a proposal for new | ||
abbrevs. | ||
|
||
Proposal for an abbrev is composed from the downcased | ||
initials of expansion - provided they are of char-class | ||
[:alpha:] | ||
|
||
For example code below would be recognised as a | ||
`py-expression' composed by three | ||
py-partial-expressions. | ||
|
||
OrderedDict.popitem(last=True) | ||
|
||
Putting the curser at the EOL, M-3 M-x py-add-abbrev | ||
|
||
would prompt "op" for an abbrev to store, as first | ||
`py-partial-expression' beginns with a "(", which is | ||
not taken as proposal. |
Oops, something went wrong.