diff --git a/.gitignore b/.gitignore index 604bc7aff..229fe831b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ *#* *-history .smex-items -places \ No newline at end of file +places +*.bat diff --git a/elpa/Save-visited-files-readme.txt b/elpa/Save-visited-files-readme.txt deleted file mode 100644 index 44ff71312..000000000 --- a/elpa/Save-visited-files-readme.txt +++ /dev/null @@ -1,40 +0,0 @@ -;;; Commentary: - -;; save-visited-files is a lightweight version of Desktop.el that -;; only save the files you have open(currently). This was created because I -;; couldn't ever get Desktop to work and wanted to persist open files across -;; sessions. This file is the result. - -;;; Installation: - -;; To install, put this file somewhere in your load-path and add the following -;; to your .emacs file: -;; -;; (require 'save-visited-files) -;; (turn-on-save-visited-files-mode) -;; -;; This will load the set of saved files on startup, as well as updating this -;; list whenever the auto-save-timer is run. This does not wait to save on -;; closing emacs because I wanted it to be useful even if emacs crashed. To -;; save the visited files at any time, you can call M-x save-visited-files-save. -;; M-x save-visited-files-restore will open all files saved this way. To turn -;; off the saving of files, you need to run (turn-off-save-visited-files-mode) - -;; Changelog: -;; 1.2 -;; * Changed default value of save-visited-files-location to ~/.emacs.d/emacs-visisted-files -;; * Improvements/rewriting by Jonathan Kotta -;; ** Checks save-visited-files-location is writable, and gives a message if not -;; ** Changed to use define-minor-mode -;; ** Moved (setq save-visited-files-already-restored t) to the end of -;; ** save-visited-files-restore from save-visited-files-mode. -;; ** Doesn't print a message in the echo area every time it saves the file list. -;; 1.1 -;; * Improvements/rewriting by Ryan Thomson -;; ** Use auto-save-hook instead of a periodic timer -;; ** More consistent naming conventions -;; ** Customization ability via M-x customize-group save-visited-files -;; ** Better handling of the temp buffer -;; 1.0 -;; * Initial Release - diff --git a/elpa/ac-cider-0.2.1/ac-cider-autoloads.el b/elpa/ac-cider-0.2.1/ac-cider-autoloads.el new file mode 100644 index 000000000..b7433633a --- /dev/null +++ b/elpa/ac-cider-0.2.1/ac-cider-autoloads.el @@ -0,0 +1,39 @@ +;;; ac-cider-autoloads.el --- automatically extracted autoloads +;; +;;; Code: +(add-to-list 'load-path (or (file-name-directory #$) (car load-path))) + +;;;### (autoloads nil "ac-cider" "ac-cider.el" (21721 36942 0 0)) +;;; Generated autoloads from ac-cider.el + +(defface ac-cider-candidate-face '((t (:inherit ac-candidate-face))) "\ +Face for nrepl candidates." :group (quote auto-complete)) + +(defface ac-cider-selection-face '((t (:inherit ac-selection-face))) "\ +Face for the nrepl selected candidate." :group (quote auto-complete)) + +(defconst ac-cider-source-defaults '((available . ac-cider-available-p) (candidate-face . ac-cider-candidate-face) (selection-face . ac-cider-selection-face) (prefix . cider-completion-symbol-start-pos) (match . ac-cider-match-fuzzy) (document . ac-cider-documentation) (cache)) "\ +Defaults common to the various completion sources.") + +(defvar ac-source-cider-everything (append '((candidates . ac-cider-candidates-everything) (symbol . "v")) ac-cider-source-defaults) "\ +Auto-complete source for CIDER buffers.") + +(autoload 'ac-cider-setup "ac-cider" "\ +Add the CIDER completion source to the front of `ac-sources'. +This affects only the current buffer. + +\(fn)" t nil) + +(autoload 'ac-cider-popup-doc "ac-cider" "\ +A popup alternative to `cider-doc'. + +\(fn)" t nil) + +;;;*** + +;; Local Variables: +;; version-control: never +;; no-byte-compile: t +;; no-update-autoloads: t +;; End: +;;; ac-cider-autoloads.el ends here diff --git a/elpa/ac-cider-0.2.1/ac-cider-pkg.el b/elpa/ac-cider-0.2.1/ac-cider-pkg.el new file mode 100644 index 000000000..40d398493 --- /dev/null +++ b/elpa/ac-cider-0.2.1/ac-cider-pkg.el @@ -0,0 +1 @@ +(define-package "ac-cider" "0.2.1" "Clojure auto-complete sources using CIDER" '((cider "0.8.0") (auto-complete "1.4") (cl-lib "0.3")) :url "https://github.com/clojure-emacs/ac-cider" :keywords '("languages" "clojure" "nrepl" "cider" "compliment")) diff --git a/elpa/auto-complete-1.4/auto-complete-pkg.elc b/elpa/ac-cider-0.2.1/ac-cider-pkg.elc similarity index 55% rename from elpa/auto-complete-1.4/auto-complete-pkg.elc rename to elpa/ac-cider-0.2.1/ac-cider-pkg.elc index 0da54964d..929137de1 100644 Binary files a/elpa/auto-complete-1.4/auto-complete-pkg.elc and b/elpa/ac-cider-0.2.1/ac-cider-pkg.elc differ diff --git a/elpa/ac-cider-0.2.1/ac-cider.el b/elpa/ac-cider-0.2.1/ac-cider.el new file mode 100644 index 000000000..8e419a7d5 --- /dev/null +++ b/elpa/ac-cider-0.2.1/ac-cider.el @@ -0,0 +1,206 @@ +;;; ac-cider.el --- Clojure auto-complete sources using CIDER + +;; Copyright (C) 2012-2014 Alex Yakushev + +;; Author: Alex Yakushev +;; Steve Purcell +;; Sam Aaron +;; +;; URL: https://github.com/clojure-emacs/ac-cider +;; Keywords: languages, clojure, nrepl, cider, compliment +;; Version: 0.2.1 +;; X-Original-Version: 0.2.1 +;; Package-Requires: ((cider "0.8.0") (auto-complete "1.4") (cl-lib "0.3")) + +;; 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 . + +;;; Commentary: + +;; Provides a number of auto-complete sources for Clojure projects using CIDER +;; and compliment. This is a replacement for now deprecated ac-nrepl project by +;; Steve Purcell. + +;;; Installation: + +;; Available as a package in melpa.org. +;; M-x package-install ac-cider + +;;; Usage: + +;; (require 'ac-cider) +;; (add-hook 'cider-mode-hook 'ac-flyspell-workaround) +;; (add-hook 'cider-mode-hook 'ac-cider-setup) +;; (add-hook 'cider-repl-mode-hook 'ac-cider-setup) +;; (eval-after-load "auto-complete" +;; '(progn +;; (add-to-list 'ac-modes 'cider-mode) +;; (add-to-list 'ac-modes 'cider-repl-mode))) + +;; If you want to trigger auto-complete using TAB in CIDER buffers, add this to +;; your configuration file, but note that it is incompatible with (setq +;; tab-always-indent 'complete): + +;; (defun set-auto-complete-as-completion-at-point-function () +;; (setq completion-at-point-functions '(auto-complete))) +;; (add-hook 'auto-complete-mode-hook 'set-auto-complete-as-completion-at-point-function) +;; +;; (add-hook 'cider-mode-hook 'set-auto-complete-as-completion-at-point-function) + +;;; Code: + +(require 'cider) +(require 'auto-complete) +(require 'cl-lib) + +(defun ac-cider-available-p () + "Return t if CIDER supports completion, otherwise nil." + (functionp 'cider-complete)) + +(defvar ac-cider-documentation-cache '()) + +(defun ac-cider-candidates-everything () + "Return all candidates for a symbol at point." + (setq ac-cider-documentation-cache nil) + (cider-complete ac-prefix)) + +(defun ac-cider-documentation (symbol) + "Return documentation for the given SYMBOL, if available. +Caches fetched documentation for the current completion call." + (when symbol + (let ((cached-doc (assoc (substring-no-properties symbol) + ac-cider-documentation-cache))) + (if cached-doc + (cdr cached-doc) + (let* ((doc + (substring-no-properties + (replace-regexp-in-string + "\r" "" + (nrepl-dict-get (nrepl-send-sync-request + (list "op" "complete-doc" + "session" (nrepl-current-session) + "ns" (cider-current-ns) + "symbol" symbol)) + "completion-doc")))) + (doc (if (string= "\"\"" doc) + "No documentation available." + doc))) + (add-to-list 'ac-cider-documentation-cache + (cons (substring-no-properties symbol) doc)) + doc))))) + +(defun ac-cider--is-separator (c) + (or (= c 45) (= c 46))) + +(defun ac-cider--is-capital (c) + (and (<= 65 c) (<= c 90))) + +(defun ac-cider-fuzzy-matches-p (prefix candidate) + "Return t if PREFIX and CANDIDATE are matched." + (let ((pre (string-to-list prefix)) + (cand (string-to-list candidate)) + (camelcase nil)) + (when (= (car pre) 46) + (setq camelcase t) + (setq pre (cdr pre)) + (setq cand (cdr cand))) + (if (string-prefix-p prefix candidate) + t + (let ((result :not-yet) (skipping nil)) + (when (= (car pre) (car cand)) + (while (eq result :not-yet) + (cond ((not pre) (setq result t)) + ((not cand) (setq result nil)) + (skipping (if camelcase + (if (ac-cider--is-capital (car cand)) + (setq skipping nil) + (setq cand (cdr cand))) + (if (ac-cider--is-separator (car cand)) + (progn + (when (ac-cider--is-separator (car pre)) + (setq pre (cdr pre))) + (setq cand (cdr cand)) + (setq skipping nil)) + (setq cand (cdr cand))))) + ((= (car pre) (car cand)) (progn (setq pre (cdr pre)) + (setq cand (cdr cand)))) + (t (progn (setq skipping + (or camelcase + (not (ac-cider--is-separator (car cand))))) + (setq cand (cdr cand)))))) + result))))) + +(defun ac-cider-match-fuzzy (prefix candidates) + "Returns candidates that match fuzzily with the prefix." + (cl-remove-if-not (lambda (cand) + (ac-cider-fuzzy-matches-p prefix cand)) + candidates)) + +;;;###autoload +(defface ac-cider-candidate-face + '((t (:inherit ac-candidate-face))) + "Face for nrepl candidates." + :group 'auto-complete) + +;;;###autoload +(defface ac-cider-selection-face + '((t (:inherit ac-selection-face))) + "Face for the nrepl selected candidate." + :group 'auto-complete) + +;;;###autoload +(defconst ac-cider-source-defaults + '((available . ac-cider-available-p) + (candidate-face . ac-cider-candidate-face) + (selection-face . ac-cider-selection-face) + (prefix . cider-completion-symbol-start-pos) + (match . ac-cider-match-fuzzy) + (document . ac-cider-documentation) + (cache)) + "Defaults common to the various completion sources.") + +;;;###autoload +(defvar ac-source-cider-everything + (append + '((candidates . ac-cider-candidates-everything) + (symbol . "v")) + ac-cider-source-defaults) + "Auto-complete source for CIDER buffers.") + +;;;###autoload +(defun ac-cider-setup () + "Add the CIDER completion source to the front of `ac-sources'. +This affects only the current buffer." + (interactive) + (setq-default ac-use-fuzzy nil) + (add-to-list 'ac-sources 'ac-source-cider-everything)) + +;;;###autoload +(defun ac-cider-popup-doc () + "A popup alternative to `cider-doc'." + (interactive) + (popup-tip (ac-cider-documentation (symbol-name (symbol-at-point))) + :point (cider-completion-symbol-start-pos) + :around t + :scroll-bar t + :margin t)) + +(provide 'ac-cider) + +;; Local Variables: +;; coding: utf-8 +;; indent-tabs-mode: nil +;; eval: (checkdoc-minor-mode 1) +;; End: + +;;; ac-cider.el ends here diff --git a/elpa/ac-cider-0.2.1/ac-cider.elc b/elpa/ac-cider-0.2.1/ac-cider.elc new file mode 100644 index 000000000..7648b9c2c Binary files /dev/null and b/elpa/ac-cider-0.2.1/ac-cider.elc differ diff --git a/elpa/ac-nrepl-0.21/ac-nrepl-autoloads.el b/elpa/ac-nrepl-0.21/ac-nrepl-autoloads.el new file mode 100644 index 000000000..58a1df783 --- /dev/null +++ b/elpa/ac-nrepl-0.21/ac-nrepl-autoloads.el @@ -0,0 +1,54 @@ +;;; ac-nrepl-autoloads.el --- automatically extracted autoloads +;; +;;; Code: +(add-to-list 'load-path (or (file-name-directory #$) (car load-path))) + +;;;### (autoloads nil "ac-nrepl" "ac-nrepl.el" (21706 21578 0 0)) +;;; Generated autoloads from ac-nrepl.el + +(defface ac-nrepl-candidate-face '((t (:inherit ac-candidate-face))) "\ +Face for nrepl candidates." :group (quote auto-complete)) + +(defface ac-nrepl-selection-face '((t (:inherit ac-selection-face))) "\ +Face for the nrepl selected candidate." :group (quote auto-complete)) + +(defconst ac-nrepl-source-defaults '((available . ac-nrepl-available-p) (candidate-face . ac-nrepl-candidate-face) (selection-face . ac-nrepl-selection-face) (prefix . ac-nrepl-symbol-start-pos) (document . ac-nrepl-documentation)) "\ +Defaults common to the various completion sources.") + +(defvar ac-source-nrepl-ns (append '((candidates . ac-nrepl-candidates-ns) (symbol . "n")) ac-nrepl-source-defaults) "\ +Auto-complete source for nrepl ns completion.") + +(defvar ac-source-nrepl-vars (append '((candidates . ac-nrepl-candidates-vars) (symbol . "v")) ac-nrepl-source-defaults) "\ +Auto-complete source for nrepl var completion.") + +(defvar ac-source-nrepl-ns-classes (append '((candidates . ac-nrepl-candidates-ns-classes) (symbol . "c")) ac-nrepl-source-defaults) "\ +Auto-complete source for nrepl ns-specific class completion.") + +(defvar ac-source-nrepl-all-classes (append '((candidates . ac-nrepl-candidates-all-classes) (symbol . "c")) ac-nrepl-source-defaults) "\ +Auto-complete source for nrepl all class completion.") + +(defvar ac-source-nrepl-java-methods (append '((candidates . ac-nrepl-candidates-java-methods) (symbol . "m")) ac-nrepl-source-defaults) "\ +Auto-complete source for nrepl java method completion.") + +(defvar ac-source-nrepl-static-methods (append '((candidates . ac-nrepl-candidates-static-methods) (symbol . "s")) ac-nrepl-source-defaults) "\ +Auto-complete source for nrepl java static method completion.") + +(autoload 'ac-nrepl-setup "ac-nrepl" "\ +Add the nrepl completion source to the front of `ac-sources'. +This affects only the current buffer. + +\(fn)" t nil) + +(autoload 'ac-nrepl-popup-doc "ac-nrepl" "\ +A popup alternative to `nrepl-doc'. + +\(fn)" t nil) + +;;;*** + +;; Local Variables: +;; version-control: never +;; no-byte-compile: t +;; no-update-autoloads: t +;; End: +;;; ac-nrepl-autoloads.el ends here diff --git a/elpa/ac-nrepl-0.21/ac-nrepl-pkg.el b/elpa/ac-nrepl-0.21/ac-nrepl-pkg.el new file mode 100644 index 000000000..093b484b3 --- /dev/null +++ b/elpa/ac-nrepl-0.21/ac-nrepl-pkg.el @@ -0,0 +1 @@ +(define-package "ac-nrepl" "0.21" "auto-complete sources for Clojure using nrepl completions" '((cider "0.1") (auto-complete "1.4"))) diff --git a/elpa/magit-1.0.0/50magit.elc b/elpa/ac-nrepl-0.21/ac-nrepl-pkg.elc similarity index 65% rename from elpa/magit-1.0.0/50magit.elc rename to elpa/ac-nrepl-0.21/ac-nrepl-pkg.elc index 8a38ba6ac..d0b9e4108 100644 Binary files a/elpa/magit-1.0.0/50magit.elc and b/elpa/ac-nrepl-0.21/ac-nrepl-pkg.elc differ diff --git a/elpa/ac-nrepl-0.21/ac-nrepl.el b/elpa/ac-nrepl-0.21/ac-nrepl.el new file mode 100644 index 000000000..25ea582b9 --- /dev/null +++ b/elpa/ac-nrepl-0.21/ac-nrepl.el @@ -0,0 +1,298 @@ + +;;; ac-nrepl.el --- auto-complete sources for Clojure using nrepl completions + +;; Copyright (C) 2012 Steve Purcell + +;; Author: Steve Purcell +;; Sam Aaron +;; URL: https://github.com/purcell/ac-nrepl +;; Keywords: languages, clojure, nrepl +;; Version: 0.21 +;; Package-Requires: ((cider "0.1") (auto-complete "1.4")) + +;; 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 . + +;;; Commentary: + +;; Provides a number of auto-complete sources for Clojure projects +;; using nrepl. + +;;; Installation: + +;; Available as a package in both Melpa (recommended) at +;; http://melpa.milkbox.net/ and Marmalade at http://marmalade-repo.org/ +;; M-x package-install ac-nrepl + +;;; Usage: + +;; (require 'ac-nrepl) +;; (add-hook 'cider-repl-mode-hook 'ac-nrepl-setup) +;; (add-hook 'cider-mode-hook 'ac-nrepl-setup) +;; (eval-after-load "auto-complete" +;; '(add-to-list 'ac-modes 'cider-repl-mode)) + +;; If you want to trigger auto-complete using TAB in nrepl buffers, you may +;; want to use auto-complete in your `completion-at-point-functions': + +;; (defun set-auto-complete-as-completion-at-point-function () +;; (setq completion-at-point-functions '(auto-complete))) +;; (add-hook 'auto-complete-mode-hook 'set-auto-complete-as-completion-at-point-function) +;; +;; (add-hook 'cider-repl-mode-hook 'set-auto-complete-as-completion-at-point-function) +;; (add-hook 'cider-mode-hook 'set-auto-complete-as-completion-at-point-function) +;; +;; You might consider using ac-nrepl's popup documentation in place of `nrepl-doc': +;; +;; (eval-after-load 'cider +;; '(define-key cider-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)) + +;;; Code: + +(require 'nrepl-client) +(require 'cider-interaction) +(require 'auto-complete) + +(defun ac-nrepl-available-p () + "Return t if nrepl is available for completion, otherwise nil." + (condition-case nil + (not (null (nrepl-current-tooling-session))) + (error nil))) + +(defun ac-nrepl-sync-eval (clj) + "Synchronously evaluate CLJ. +Result is a plist, as returned from `nrepl-send-string-sync'." + (nrepl-send-string-sync clj (cider-current-ns) (nrepl-current-tooling-session))) + +(defun ac-nrepl-candidates* (clj) + "Return completion candidates produced by evaluating CLJ." + (let ((response (plist-get (ac-nrepl-sync-eval (concat "(require 'complete.core) " clj)) + :value))) + (when response + (car (read-from-string response))))) + +(defun ac-nrepl-unfiltered-clj (clj) + "Return a version of CLJ with the completion prefix inserted." + (format clj ac-prefix)) + +(defun ac-nrepl-filtered-clj (clj) + "Build an expression which extracts the prefixed values from CLJ." + (concat "(filter #(.startsWith % \"" ac-prefix "\")" + (ac-nrepl-unfiltered-clj clj) ")")) + +(defun ac-nrepl-candidates-ns () + "Return namespace candidates." + (ac-nrepl-candidates* + (ac-nrepl-filtered-clj "(complete.core/namespaces *ns*)"))) + +(defun ac-nrepl-candidates-vars () + "Return var candidates." + (ac-nrepl-candidates* + (ac-nrepl-filtered-clj "(let [prefix \"%s\"] + (if-not (.contains prefix \"/\") + (complete.core/ns-vars *ns*) + (let [ns-alias (symbol (first (.split prefix \"/\"))) + core (find-ns 'clojure.core)] + (if-let [ns (or (get (ns-aliases *ns*) ns-alias) + (find-ns ns-alias))] + (let [vars (complete.core/ns-vars ns) + vars (if (= core ns) + vars + (remove (into #{} (complete.core/ns-vars core)) vars))] + (map (fn [x] (str ns-alias \"/\" x)) vars)) + '()))))"))) + +(defun ac-nrepl-candidates-ns-classes () + "Return namespaced class candidates." + (ac-nrepl-candidates* + (ac-nrepl-filtered-clj "(complete.core/ns-classes *ns*)"))) + +(defvar ac-nrepl-all-classes-cache nil + "Cached list of all classes loaded in the JVM backend.") + +(defun ac-nrepl-refresh-class-cache () + "Clear `ac-nrepl-all-classes-cache' and then refill it asynchronously." + (setq ac-nrepl-all-classes-cache nil) + (nrepl-send-string + (concat "(require 'complete.core)" + (ac-nrepl-unfiltered-clj "(concat @complete.core/nested-classes + @complete.core/top-level-classes)")) + (nrepl-make-response-handler + (nrepl-current-connection-buffer) + (lambda (buffer value) + (setq ac-nrepl-all-classes-cache (car (read-from-string value)))) + nil nil nil) + (cider-current-ns) + (nrepl-current-tooling-session))) + + +(add-hook 'nrepl-connected-hook 'ac-nrepl-refresh-class-cache t) + +(defun ac-nrepl-candidates-all-classes () + "Return java method candidates." + (when (string-match-p "^[a-zA-Z]+[a-zA-Z0-9$_]*\\.[a-zA-Z0-9$_.]*$" ac-prefix) + ac-nrepl-all-classes-cache)) + +(defun ac-nrepl-candidates-java-methods () + "Return java method candidates." + (mapcar (lambda (hit) + (let* ((parts (split-string hit "#")) + (meth (nth 0 parts)) + (classname (nth 1 parts))) + (propertize meth 'summary classname))) + (ac-nrepl-candidates* + (ac-nrepl-filtered-clj + "(for [class (vals (ns-imports *ns*)) + method (.getMethods class) + :when (not (java.lang.reflect.Modifier/isStatic (.getModifiers method)))] + (str \".\" (.getName method) \"#\" (.getName class)))")))) + +(defun ac-nrepl-candidates-static-methods () + "Return static method candidates." + (ac-nrepl-candidates* + (ac-nrepl-filtered-clj + "(let [prefix \"%s\"] + (if (or (not (.contains prefix \"/\")) + (.startsWith prefix \"/\")) + '() + (let [scope (symbol (first (.split prefix \"/\")))] + (map (fn [memb] (str scope \"/\" memb)) + (when-let [class (try (complete.core/resolve-class scope) + (catch java.lang.ClassNotFoundException e nil))] + (complete.core/static-members class)))))) "))) + +(defun ac-nrepl-documentation (symbol) + "Return documentation for the given SYMBOL, if available." + (let ((raw-doc (plist-get (ac-nrepl-sync-eval + (format "(try (eval '(clojure.repl/doc %s)) + (catch Exception e nil))" + symbol)) + :stdout))) + (when raw-doc + (let ((doc + (substring-no-properties + (replace-regexp-in-string + "\r" "" + (replace-regexp-in-string + "^\\( \\|-------------------------\r?\n\\)" "" + raw-doc))))) + (unless (string-match "\\`[ \t\n]*\\'" doc) + doc))))) + +(defun ac-nrepl-symbol-start-pos () + "Find the starting position of the symbol at point, unless inside a string." + (let ((sap (symbol-at-point))) + (when (and sap (not (in-string-p))) + (car (bounds-of-thing-at-point 'symbol))))) + +;;;###autoload +(defface ac-nrepl-candidate-face + '((t (:inherit ac-candidate-face))) + "Face for nrepl candidates." + :group 'auto-complete) + +;;;###autoload +(defface ac-nrepl-selection-face + '((t (:inherit ac-selection-face))) + "Face for the nrepl selected candidate." + :group 'auto-complete) + +;;;###autoload +(defconst ac-nrepl-source-defaults + '((available . ac-nrepl-available-p) + (candidate-face . ac-nrepl-candidate-face) + (selection-face . ac-nrepl-selection-face) + (prefix . ac-nrepl-symbol-start-pos) + (document . ac-nrepl-documentation)) + "Defaults common to the various completion sources.") + +;;;###autoload +(defvar ac-source-nrepl-ns + (append + '((candidates . ac-nrepl-candidates-ns) + (symbol . "n")) + ac-nrepl-source-defaults) + "Auto-complete source for nrepl ns completion.") + +;;;###autoload +(defvar ac-source-nrepl-vars + (append + '((candidates . ac-nrepl-candidates-vars) + (symbol . "v")) + ac-nrepl-source-defaults) + "Auto-complete source for nrepl var completion.") + +;;;###autoload +(defvar ac-source-nrepl-ns-classes + (append + '((candidates . ac-nrepl-candidates-ns-classes) + (symbol . "c")) + ac-nrepl-source-defaults) + "Auto-complete source for nrepl ns-specific class completion.") + +;;;###autoload +(defvar ac-source-nrepl-all-classes + (append + '((candidates . ac-nrepl-candidates-all-classes) + (symbol . "c")) + ac-nrepl-source-defaults) + "Auto-complete source for nrepl all class completion.") + +;;;###autoload +(defvar ac-source-nrepl-java-methods + (append + '((candidates . ac-nrepl-candidates-java-methods) + (symbol . "m")) + ac-nrepl-source-defaults) + "Auto-complete source for nrepl java method completion.") + +;;;###autoload +(defvar ac-source-nrepl-static-methods + (append + '((candidates . ac-nrepl-candidates-static-methods) + (symbol . "s")) + ac-nrepl-source-defaults) + "Auto-complete source for nrepl java static method completion.") + +;;;###autoload +(defun ac-nrepl-setup () + "Add the nrepl completion source to the front of `ac-sources'. +This affects only the current buffer." + (interactive) + (add-to-list 'ac-sources 'ac-source-nrepl-ns) + (add-to-list 'ac-sources 'ac-source-nrepl-vars) + (add-to-list 'ac-sources 'ac-source-nrepl-ns-classes) + (add-to-list 'ac-sources 'ac-source-nrepl-all-classes) + (add-to-list 'ac-sources 'ac-source-nrepl-java-methods) + (add-to-list 'ac-sources 'ac-source-nrepl-static-methods)) + +;;;###autoload +(defun ac-nrepl-popup-doc () + "A popup alternative to `nrepl-doc'." + (interactive) + (let ((doc (ac-nrepl-documentation (symbol-at-point)))) + (when doc + (popup-tip doc + :point (ac-nrepl-symbol-start-pos) + :around t + :scroll-bar t + :margin t)))) + +(provide 'ac-nrepl) + +;; Local Variables: +;; coding: utf-8 +;; eval: (checkdoc-minor-mode 1) +;; End: + +;;; ac-nrepl.el ends here diff --git a/elpa/ac-nrepl-0.21/ac-nrepl.elc b/elpa/ac-nrepl-0.21/ac-nrepl.elc new file mode 100644 index 000000000..9505699d0 Binary files /dev/null and b/elpa/ac-nrepl-0.21/ac-nrepl.elc differ diff --git a/elpa/archives/gnu/archive-contents b/elpa/archives/gnu/archive-contents deleted file mode 100644 index 78f93ebe5..000000000 --- a/elpa/archives/gnu/archive-contents +++ /dev/null @@ -1,332 +0,0 @@ -(1 - (ack . - [(1 3) - nil "Interface to ack-like source code search tools" tar - ((:keywords "tools" "processes" "convenience") - (:url . "https://github.com/leoliu/ack-el"))]) - (ada-mode . - [(5 0) - ((wisi - (1 0))) - "major-mode for editing Ada sources" tar - ((:url . "http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html"))]) - (adaptive-wrap . - [(0 5) - nil "Smart line-wrapping with wrap-prefix" single - ((:url . "http://elpa.gnu.org/packages/adaptive-wrap.html") - (:keywords))]) - (adjust-parens . - [(3 0) - nil "Indent and dedent Lisp code, automatically adjust close parens" tar - ((:url . "http://elpa.gnu.org/packages/adjust-parens.html"))]) - (all . - [(1 0) - nil "Edit all lines matching a given regexp" single - ((:url . "http://elpa.gnu.org/packages/all.html") - (:keywords "matching"))]) - (auctex . - [(11 87 2) - nil "Integrated environment for *TeX*" tar - ((:url . "http://www.gnu.org/software/auctex/"))]) - (cl-lib . - [(0 3) - nil "Properly prefixed CL functions and macros" single - ((:url . "http://elpa.gnu.org/packages/cl-lib.html") - (:keywords))]) - (coffee-mode . - [(0 4 1 1) - nil "Major mode for CoffeeScript files" single - ((:url . "http://github.com/defunkt/coffee-mode") - (:keywords "CoffeeScript major mode"))]) - (company . - [(0 6 12) - nil "Modular in-buffer completion framework" tar - ((:keywords "abbrev" "convenience" "matching") - (:url . "http://company-mode.github.io/"))]) - (csv-mode . - [(1 2) - nil "Major mode for editing comma/char separated values" single - ((:url . "http://centaur.maths.qmul.ac.uk/Emacs/") - (:keywords "convenience"))]) - (debbugs . - [(0 5) - nil "SOAP library to access debbugs servers" tar - ((:keywords "comm" "hypermedia") - (:url . "http://elpa.gnu.org/packages/debbugs.html"))]) - (dict-tree . - [(0 12 8) - ((trie - (0 2 5)) - (tNFA - (0 1 1)) - (heap - (0 3))) - "Dictionary data structure" single - ((:url . "http://www.dr-qubit.org/emacs.php") - (:keywords "extensions" "matching" "data structures"))]) - (diff-hl . - [(1 5 1) - ((cl-lib - (0 2))) - "Highlight uncommitted changes" tar - ((:keywords "vc" "diff") - (:url . "https://github.com/dgutov/diff-hl"))]) - (dismal . - [(1 5) - ((cl-lib - (0))) - "Dis Mode Ain't Lotus: Spreadsheet program Emacs" tar - ((:url . "http://elpa.gnu.org/packages/dismal.html"))]) - (djvu . - [(0 5) - nil "Edit and view Djvu files via djvused" single - ((:url . "http://elpa.gnu.org/packages/djvu.html") - (:keywords "files" "wp"))]) - (docbook . - [(0 1) - nil "Info-like viewer for DocBook" single - ((:url . "http://elpa.gnu.org/packages/docbook.html") - (:keywords "docs" "help"))]) - (ediprolog . - [(1 0) - nil "Emacs Does Interactive Prolog" single - ((:url . "http://elpa.gnu.org/packages/ediprolog.html") - (:keywords "languages" "processes"))]) - (eldoc-eval . - [(0 1) - nil "Enable eldoc support when minibuffer is in use." single - ((:url . "http://elpa.gnu.org/packages/eldoc-eval.html") - (:keywords))]) - (enwc . - [(1 0) - nil "The Emacs Network Client" tar - ((:keywords "enwc" "network" "wicd" "manager" "nm") - (:url . "http://elpa.gnu.org/packages/enwc.html"))]) - (epoch-view . - [(0 0 1) - nil "Minor mode to visualize epoch timestamps" single - ((:url . "http://elpa.gnu.org/packages/epoch-view.html") - (:keywords "data" "timestamp" "epoch" "unix"))]) - (f90-interface-browser . - [(1 1) - nil "Parse and browse f90 interfaces" single - ((:url . "http://github.com/wence-/f90-iface/") - (:keywords))]) - (flylisp . - [(0 2) - nil "Color unbalanced parentheses and parentheses inconsistent with indentation" single - ((:url . "http://elpa.gnu.org/packages/flylisp.html") - (:keywords))]) - (ggtags . - [(0 7 8) - ((emacs - (24))) - "emacs frontend to GNU Global source code tagging system" single - ((:url . "https://github.com/leoliu/ggtags") - (:keywords "tools" "convenience"))]) - (heap . - [(0 3) - nil "Heap (a.k.a. priority queue) data structure" single - ((:url . "http://www.dr-qubit.org/emacs.php") - (:keywords "extensions" "data structures" "heap" "priority queue"))]) - (ioccur . - [(2 4) - nil "Incremental occur" single - ((:url . "http://elpa.gnu.org/packages/ioccur.html") - (:keywords))]) - (jgraph-mode . - [(1 0) - nil "Major mode for Jgraph files" single - ((:url . "http://elpa.gnu.org/packages/jgraph-mode.html") - (:keywords "tex" "wp"))]) - (js2-mode . - [(20131106) - ((emacs - (24 1))) - "Improved JavaScript editing mode" tar - ((:keywords "languages" "javascript") - (:url . "https://github.com/mooz/js2-mode/"))]) - (jumpc . - [(3 0) - nil "jump to previous insertion points" single - ((:url . "http://elpa.gnu.org/packages/jumpc.html") - (:keywords))]) - (lex . - [(1 1) - nil "Lexical analyser construction" tar - ((:url . "http://elpa.gnu.org/packages/lex.html"))]) - (lmc . - [(1 2) - nil "Little Man Computer in Elisp" single - ((:url . "http://elpa.gnu.org/packages/lmc.html") - (:keywords))]) - (load-dir . - [(0 0 3) - nil "Load all Emacs Lisp files in a given directory" single - ((:url . "http://elpa.gnu.org/packages/load-dir.html") - (:keywords "lisp" "files" "convenience"))]) - (markchars . - [(0 2 0) - nil "Mark chars fitting certain characteristics" single - ((:url . "http://elpa.gnu.org/packages/markchars.html") - (:keywords))]) - (memory-usage . - [(0 2) - nil "Analyze the memory usage of Emacs in various ways" single - ((:url . "http://elpa.gnu.org/packages/memory-usage.html") - (:keywords "maint"))]) - (minimap . - [(1 0) - nil "Sidebar showing a \"mini-map\" of a buffer" single - ((:url . "http://elpa.gnu.org/packages/minimap.html") - (:keywords))]) - (muse . - [(3 20) - nil "Authoring and publishing tool for Emacs" tar - ((:keywords "hypermedia") - (:url . "http://mwolson.org/projects/EmacsMuse.html"))]) - (nhexl-mode . - [(0 1) - nil "Minor mode to edit files via hex-dump format" single - ((:url . "http://elpa.gnu.org/packages/nhexl-mode.html") - (:keywords "data"))]) - (nlinum . - [(1 1) - nil "Show line numbers in the margin" single - ((:url . "http://elpa.gnu.org/packages/nlinum.html") - (:keywords "convenience"))]) - (notes-mode . - [(1 30) - nil "Indexing system for on-line note-taking" tar - ((:url . "http://elpa.gnu.org/packages/notes-mode.html"))]) - (num3-mode . - [(1 1) - nil "highlight groups of digits in long numbers" single - ((:url . "http://elpa.gnu.org/packages/num3-mode.html") - (:keywords))]) - (oauth2 . - [(0 9) - nil "OAuth 2.0 Authorization Protocol" single - ((:url . "http://elpa.gnu.org/packages/oauth2.html") - (:keywords "comm"))]) - (omn-mode . - [(1 0) - nil "Support for OWL Manchester Notation" single - ((:url . "http://elpa.gnu.org/packages/omn-mode.html") - (:keywords))]) - (org . - [(20131223) - nil "Outline-based notes management and organizer" tar nil]) - (quarter-plane . - [(0 1) - nil "Minor mode for quarter-plane style editing" single - ((:url . "http://elpa.gnu.org/packages/quarter-plane.html") - (:keywords "convenience wp"))]) - (queue . - [(0 1) - nil "Queue data structure" single - ((:url . "http://www.dr-qubit.org/emacs.php") - (:keywords "extensions" "data structures" "queue"))]) - (rainbow-mode . - [(0 9) - nil "Colorize color names in buffers" single - ((:url . "http://elpa.gnu.org/packages/rainbow-mode.html") - (:keywords "faces"))]) - (register-list . - [(0 1) - nil "Interactively list/edit registers" single - ((:url . "http://elpa.gnu.org/packages/register-list.html") - (:keywords "register"))]) - (shen-mode . - [(0 1) - nil "A major mode for editing shen source code" tar - ((:keywords "languages" "shen") - (:url . "http://elpa.gnu.org/packages/shen-mode.html"))]) - (sisu-mode . - [(3 0 3) - nil "Major mode for SiSU markup text" single - ((:url . "http://elpa.gnu.org/packages/sisu-mode.html") - (:keywords "text" "processes" "tools"))]) - (smart-operator . - [(4 0) - nil "Insert operators with surrounding spaces smartly" single - ((:url . "http://xwl.appspot.com/ref/smart-operator.el") - (:keywords))]) - (sml-mode . - [(6 4) - nil "Major mode for editing (Standard) ML" single - ((:url . "http://elpa.gnu.org/packages/sml-mode.html") - (:keywords "SML"))]) - (sokoban . - [(1 0 4) - nil "Sokoban game for emacs" tar nil]) - (svg-clock . - [(0 5) - nil "Analog clock using Scalable Vector Graphics" single - ((:url . "http://elpa.gnu.org/packages/svg-clock.html") - (:keywords "demo" "svg" "clock"))]) - (tNFA . - [(0 1 1) - ((queue - (0 1))) - "Tagged non-deterministic finite-state automata" single - ((:url . "http://www.dr-qubit.org/emacs.php") - (:keywords "extensions" "matching" "data structures"))]) - (temp-buffer-browse . - [(1 1) - nil "temp buffer browse mode" single - ((:url . "http://elpa.gnu.org/packages/temp-buffer-browse.html") - (:keywords "convenience"))]) - (trie . - [(0 2 6) - ((tNFA - (0 1 1)) - (heap - (0 3))) - "Trie data structure" single - ((:url . "http://www.dr-qubit.org/emacs.php") - (:keywords "extensions" "matching" "data structures"))]) - (undo-tree . - [(0 6 5) - nil "Treat undo history as a tree" single - ((:url . "http://www.dr-qubit.org/emacs.php") - (:keywords "convenience" "files" "undo" "redo" "history" "tree"))]) - (uni-confusables . - [(0 1) - nil "Unicode confusables table" tar nil]) - (vlf . - [(1 2) - nil "View Large Files" single - ((:url . "https://github.com/m00natic/vlfi") - (:keywords "large files" "utilities"))]) - (w3 . - [(4 0 49) - nil "Fully customizable, largely undocumented web browser for Emacs" tar - ((:keywords "faces" "help" "comm" "news" "mail" "processes" "mouse" "hypermedia") - (:url . "http://elpa.gnu.org/packages/w3.html"))]) - (websocket . - [(1 1) - nil "Emacs WebSocket client and server" tar - ((:keywords "Communication" "Websocket" "Server") - (:url . "http://elpa.gnu.org/packages/websocket.html"))]) - (windresize . - [(0 1) - nil "Resize windows interactively" single - ((:url . "http://elpa.gnu.org/packages/windresize.html") - (:keywords "window"))]) - (wisi . - [(1 0) - ((cl-lib - (0))) - "Utilities for implementing an indentation/navigation engine using a generalized LALR parser" tar - ((:url . "http://stephe-leake.org/emacs/ada-mode/emacs-ada-mode.html"))]) - (xclip . - [(1 3) - nil "use xclip to copy&paste" single - ((:url . "http://elpa.gnu.org/packages/xclip.html") - (:keywords "convenience" "tools"))]) - (yasnippet . - [(0 8 0) - nil "Yet another snippet extension for Emacs." tar - ((:keywords "convenience" "emulation") - (:url . "http://github.com/capitaomorte/yasnippet"))])) diff --git a/elpa/archives/marmalade/archive-contents b/elpa/archives/marmalade/archive-contents deleted file mode 100644 index f381f7159..000000000 --- a/elpa/archives/marmalade/archive-contents +++ /dev/null @@ -1 +0,0 @@ -(1(haml-mode .[(3 1 3)((ruby-mode (1 0)))"Major mode for editing Haml files"single])(paredit .[(22)()"minor mode for editing parentheses -*- Mode: Emacs-Lisp -*-"single])(sass-mode .[(3 0 14)((haml-mode (3 0 14)))"Major mode for editing Sass files"single])(perspective .[(1 9)()"switch between named \"perspectives\" of the editor"single])(slime .[(20100404 1)()"Superior Lisp Interaction Mode for Emacs"single])(slime-repl .[(20100404)((slime (20100404)))"Read-Eval-Print Loop written in Emacs Lisp"single])(scpaste .[(0 6)((htmlize (1 39)))"Paste to the web via scp."single])(idle-highlight .[(1 0)()"highlight the word the point is on"single])(magit .[(1 2 0)()"Control Git from Emacs."tar])(durendal .[(0 2)((clojure-mode (1 7)) (slime (20100404)) (paredit (22)))"A bucket of tricks for Clojure and Slime."single])(htmlize .[(1 39)()"Convert buffer text and decorations to HTML."single])(furl .[(0 0 2)()"Friendly URL retrieval"single])(marmalade .[(0 0 4)((furl (0 0 2)))"Elisp interface for the Emacs Lisp package server."single])(yari .[(0 7)()"Yet Another RI interface for Emacs"single])(html-script-src .[(0 0 2)()"Insert