博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
clojure-emacs-autocomplete
阅读量:5041 次
发布时间:2019-06-12

本文共 2798 字,大约阅读时间需要 9 分钟。

1. 

2. install emacs 24.5

3. 

4. 

5. edit .lein project.clj

  

{:user{:java-cmd "C:\\Program Files\\Java\\jdk1.8.0\\bin\\java.exe":plugins [[cider/cider-nrepl "0.9.0-SNAPSHOT"]]:dependencies [[org.clojure/tools.nrepl "0.2.7"]]}}

 

6. edit project's project.clj

    :profiles {:dev {:plugins [[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, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, 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, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, 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 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)(eval-after-load "cider"  '(define-key cider-mode-map (kbd "C-c C-d") 'ac-cider-popup-doc))(package-initialize)

  

转载于:https://www.cnblogs.com/rexy/p/4589917.html

你可能感兴趣的文章
Nginx + Tomcat 反向代理 如何在高效的在一台服务器部署多个站点
查看>>
C++的引用
查看>>
python itertools
查看>>
http://lorempixel.com/ 可以快速产生假图
查看>>
编写一个函数isMerge,判断一个字符串str是否可以由其他两个字符串part1和part2“组合”而成...
查看>>
文件操作
查看>>
NYOJ-613//HDU-1176-免费馅饼,数字三角形的兄弟~~
查看>>
graphite custom functions
查看>>
ssh无密码登陆屌丝指南
查看>>
一个自己写的判断2个相同对象的属性值差异的工具类
查看>>
[CF803C] Maximal GCD(gcd,贪心,构造)
查看>>
oracle连接的三个配置文件(转)
查看>>
Java 8 中如何优雅的处理集合
查看>>
[HNOI2012]永无乡 线段树合并
查看>>
Centos下源码安装git
查看>>
控件发布:div2dropdownlist(div模拟dropdownlist控件)
查看>>
[置顶] 细说Cookies
查看>>
[wp7软件]wp7~~新闻资讯,阅读软件下载大全! 集合贴~~~
查看>>
web前端java script学习2017.7.18
查看>>
删除TXPlatform
查看>>