|
|
|
@ -3,7 +3,28 @@
|
|
|
|
|
;; script) |
|
|
|
|
|
|
|
|
|
(use-package paredit |
|
|
|
|
:ensure t) |
|
|
|
|
:ensure t |
|
|
|
|
:hook ((emacs-lisp-mode . enable-paredit-mode) |
|
|
|
|
(eval-expression-minibuffer-setup . enable-paredit-mode) |
|
|
|
|
(ielm-mode . enable-paredit-mode) |
|
|
|
|
(lisp-mode . enable-paredit-mode) |
|
|
|
|
(lisp-interaction-mode . enable-paredit-mode) |
|
|
|
|
(scheme-mode . enable-paredit-mode))) |
|
|
|
|
|
|
|
|
|
(use-package rainbow-delimiters |
|
|
|
|
:ensure t |
|
|
|
|
:hook ((clojure-mode . rainbow-delimiters-mode) |
|
|
|
|
(lisp-mode . rainbow-delimiters-mode) |
|
|
|
|
(scheme-mode . rainbow-delimiters-mode) |
|
|
|
|
(emacs-lisp-mode . rainbow-delimiters-mode))) |
|
|
|
|
|
|
|
|
|
;; Force code to always be indented correctly. |
|
|
|
|
(use-package aggressive-indent |
|
|
|
|
:ensure t |
|
|
|
|
:hook ((emacs-lisp-mode . aggressive-indent-mode) |
|
|
|
|
(lisp-mode . aggressive-indent-mode) |
|
|
|
|
(scheme-mode . aggressive-indent-mode) |
|
|
|
|
(clojure-mode . aggressive-indent-mode))) |
|
|
|
|
|
|
|
|
|
(use-package slime |
|
|
|
|
:ensure t |
|
|
|
@ -18,23 +39,6 @@
|
|
|
|
|
|
|
|
|
|
;; Enable paredit for lisp |
|
|
|
|
(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 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode) |
|
|
|
|
(add-hook 'ielm-mode-hook #'enable-paredit-mode) |
|
|
|
|
(add-hook 'lisp-mode-hook #'enable-paredit-mode) |
|
|
|
|
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode) |
|
|
|
|
(add-hook 'scheme-mode-hook #'enable-paredit-mode) |
|
|
|
|
|
|
|
|
|
(add-hook 'clojure-mode-hook 'rainbow-delimiters-mode) |
|
|
|
|
(add-hook 'lisp-mode-hook 'rainbow-delimiters-mode) |
|
|
|
|
(add-hook 'scheme-mode-hook 'rainbow-delimiters-mode) |
|
|
|
|
(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode) |
|
|
|
|
|
|
|
|
|
;; Only enable aggressive indent on lisp-likes |
|
|
|
|
(add-hook 'emacs-lisp-mode-hook #'aggressive-indent-mode) |
|
|
|
|
(add-hook 'lisp-mode-hook #'aggressive-indent-mode) |
|
|
|
|
(add-hook 'scheme-mode-hook #'aggressive-indent-mode) |
|
|
|
|
(add-hook 'clojure-mode-hook #'aggressive-indent-mode) |
|
|
|
|
|
|
|
|
|
;; Autoload the indent function |
|
|
|
|
(autoload 'common-lisp-indent-function "cl-indent" "Common Lisp indent.") |
|
|
|
|