78 lines
1.9 KiB
EmacsLisp
78 lines
1.9 KiB
EmacsLisp
(load-theme 'weyland-yutani t)
|
|
|
|
;; -- always on modess
|
|
(require 'evil)
|
|
(evil-mode 1)
|
|
(add-hook 'prog-mode-hook
|
|
'display-line-numbers-mode)
|
|
(add-hook 'prog-mode-hook
|
|
'undo-tree-mode)
|
|
(add-hook 'prog-mode-hook
|
|
'which-key-mode)
|
|
|
|
;; -- 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 'emacs-lisp-mode-hook
|
|
#'rainbow-blocks-mode)
|
|
|
|
(add-hook 'lisp-mode-hook
|
|
'enable-paredit-mode)
|
|
(add-hook 'lisp-mode-hook
|
|
#'rainbow-blocks-mode)
|
|
|
|
(add-hook 'eval-expression-minibuffer-setup-hook
|
|
'enable-paredit-mode)
|
|
(add-hook 'eval-expression-minibuffer-setup-hook
|
|
#'rainbow-blocks-mode)
|
|
|
|
(add-hook 'ielm-mode-hook
|
|
'enable-paredit-mode)
|
|
(add-hook 'ielm-mode-hook
|
|
#'rainbow-blocks-mode)
|
|
|
|
(add-hook 'lisp-interaction-mode-hook
|
|
'enable-paredit-mode)
|
|
(add-hook 'lisp-interaction-mode-hook
|
|
#'rainbow-blocks-mode)
|
|
|
|
(add-hook 'scheme-mode-hook
|
|
'enable-paredit-mode)
|
|
(add-hook 'scheme-mode-hook
|
|
#'rainbow-blocks-mode)
|
|
|
|
(add-hook 'racket-mode-hook
|
|
'enable-paredit-mode)
|
|
(add-hook 'racket-mode-hook
|
|
#'rainbow-blocks-mode)
|
|
|
|
(add-hook 'clojure-mode-hook
|
|
'enable-paredit-mode)
|
|
(add-hook 'clojure-mode-hook
|
|
#'rainbow-blocks-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)
|