43 lines
1.2 KiB
EmacsLisp
43 lines
1.2 KiB
EmacsLisp
(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)
|