config emacs/init.el for clojure
This commit is contained in:
parent
89dce99fd0
commit
14f9dc91d8
2 changed files with 44 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
**/**.**~
|
|
@ -0,0 +1,43 @@
|
|||
(load-theme 'tango-dark t)
|
||||
|
||||
;; -- paredit for lisps
|
||||
(autoload 'enable-paredit-mode "paredit"
|
||||
"turn on pseudo-structural editing of lisp code"
|
||||
t)
|
||||
(add-hook 'emacs-lisp-mode-hook
|
||||
'enable-paredit-mode)
|
||||
(add-hook 'lisp-mode-hook
|
||||
'enable-paredit-mode)
|
||||
(add-hook 'eval-expression-minibuffer-setup-hook
|
||||
'enable-paredit-mode)
|
||||
(add-hook 'ielm-mode-hook
|
||||
'enable-paredit-mode)
|
||||
(add-hook 'lisp-interaction-mode-hook
|
||||
'enable-paredit-mode)
|
||||
(add-hook 'scheme-mode-hook
|
||||
'enable-paredit-mode)
|
||||
(add-hook 'racket-mode-hook
|
||||
'enable-paredit-mode)
|
||||
(add-hook 'clojure-mode-hook
|
||||
'enable-paredit-mode)
|
||||
|
||||
;; -- cider repl
|
||||
;; REPL history file
|
||||
(setq cider-repl-history-file "~/.emacs.d/cider-history")
|
||||
;; nice pretty printing
|
||||
(setq cider-repl-use-pretty-printing t)
|
||||
;; nicer font lock in REPL
|
||||
(setq cider-repl-use-clojure-font-lock t)
|
||||
;; result prefix for the REPL
|
||||
(setq cider-repl-result-prefix ";; => ")
|
||||
;; never ending REPL history
|
||||
(setq cider-repl-wrap-history t)
|
||||
;; looong history
|
||||
(setq cider-repl-history-size 3000)
|
||||
;; eldoc for clojure
|
||||
(add-hook 'cider-mode-hook #'eldoc-mode)
|
||||
;; error buffer not popping up
|
||||
(setq cider-show-error-buffer nil)
|
||||
;; use paredit in cider
|
||||
(add-hook 'cider-repl-mode-hook
|
||||
'enable-paredit-mode)
|
Loading…
Reference in a new issue