The Complete Computing Environment

Programming Lisp in Emacs

LifeTechEmacsTopicsArcology
(provide 'cce/lisp-core)
(use-package evil-lispy)
(defun cce/lisp-like-mode-hook ()
  (aggressive-indent-mode -1)
  (evil-lispy-mode))
  ; (parinfer-mode))
(defun cce/elisp-mode-hook ()
  (setq-local tab-width 8))

(use-package parinfer
  :ensure nil
  :config
  (setq parinfer-extensions
        '(defaults pretty-parens evil smart-yank)) 
  (evil-define-key 'normal 'parinfer-mode (kbd "<SPC>o") #'parinfer-toggle-mode)
  :hook
  (clojure-mode     . cce/lisp-like-mode-hook)
  (common-lisp-mode . cce/lisp-like-mode-hook)
  (emacs-lisp-mode  . cce/lisp-like-mode-hook)
  (emacs-lisp-mode  . cce/elisp-mode-hook)
  (lisp-mode        . cce/lisp-like-mode-hook)
  (scheme-mode      . cce/lisp-like-mode-hook))