Clojure-emacs-autocomplete

Source: Internet
Author: User

1. https://github.com/clojure-emacs/cider#keyboard-shortcuts

2. Install Emacs 24.5

3. http://clojure-doc.org/articles/tutorials/emacs.html

4. http://stackoverflow.com/questions/23233470/how-to-use-ciders-built-in-autocompletion-in-clojure/28249313#28249313

5. Edit. Lein PROJECT.CLJ

  

{: User{:java-cmd "C:\\Program Files\\java\\jdk1.8.0\\bin\\java.exe":p lugins [[Cider/cider-nrepl "0.9.0-snapshot"]]:d ependencies [[Org.clojure/tools.nrepl "0.2.7"]]}}

6. Edit Project ' s PROJECT.CLJ

:p rofiles {:d ev {:p lugins [[[Cider/cider-nrepl] 0.9.0 "]}}

7. The. Emacs

(custom-set-variables;; Custom-set-variables was added by Custom.;; If you edit it by hand, you could mess it up and so is careful. ;; Your init file should contain only one such instance. ;; If there is more than one, the they won ' t work right. ' (Text-mode-hook (quote (Turn-on-auto-fill text-mode-hook-identify))) (custom-set-faces;; Custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up and so is careful. ;; Your init file should contain only one such instance. ;; If there is more than one, the they won ' t work right. (Require ' cl) (Require ' package) (Add-to-list ' package-archives ' ("Melpa"). "http://melpa.org/packages/") t) (Let ((default-directory "~/.emacs.d/elpa/")) (Normal-top-level-add-to-load-path ' (  "."))    (Normal-top-level-add-subdirs-to-load-path))  (Require ' color-theme)  (color-theme-initialize) (color-theme-bharadwaj-slate) (Require ' auto-complete-config) (Add-to-list ' ac-dictionary-directories "~/.emacs.d/elpa/auto-complete-20150615.34/dict") (Require' Clojure-mode ' (Require ' cider-mode) (Require ' Ac-cider) (Ac-config-default) (Add-hook ' Cider-repl-mode-hook ')                                                                                                                                             Ac-cider-setup) (Add-hook ' Cider-mode-hook ' Ac-cider-setup) (eval-after-load "Auto-complete" ' (add-to-list ' ac-modes ' Cider-repl-mode)) (Add-hook ' Clojure-mode-hook ' Paredit-mode)                                                                                                                                            (Add-hook ' Clojurescript-mode-hook ' Paredit-mode) (Add-hook ' Clojure-mode-hook ' Rainbow-delimiters-mode) (  SETQ cider-repl-pop-to-buffer-on-connect Nil) (Require ' highlight-parentheses) (Add-hook ' Clojure-mode-hook (lambda (Highlight-parentheses-mode T))) (Defun set-auto-complete-as-completion-at-point-function () (Setq Completi On-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) (eval-after-load "Cider" ' (Define-key cider-mode-map (kbd "c-c c-d") ' Ac-cider-popup-doc) (package-initialize)

  

Clojure-emacs-autocomplete

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.