Thoughts on integrating with/adding stuff from clj-refactor #137
Closed
Description
In theory it should be enough to add clj-refactor
as a middleware and set up the appropriate menus/keybindings, but there seems to be a difference between theory and practice here, as a lot of the functionality is a mix between middleware and elisp.
FWIW, the functionality I use the most from clj-refactor is:
- cljr-add-project-dependency, this is huge when greenfielding https://github.com/clojure-emacs/clj-refactor.el/blob/master/clj-refactor.el#L2261
- cljr-add-missing-libspec https://github.com/clojure-emacs/clj-refactor.el/blob/master/clj-refactor.el#L2907 which is bound to
/
, so when you typefoo/
clj-refactor will search for previous aliasesfoo
and insert the appropriate:require
- cljr-clean-ns https://github.com/clojure-emacs/clj-refactor.el/blob/master/clj-refactor.el#L2742
A lot of the other things I either don't know is there or I use pared it to fix it.
Also, some of the functionality that was previously in clj-refactor.el
has been moved to clojure-mode.el
. An example would be clojure-thread-last-all
, https://github.com/clojure-emacs/clojure-mode/blob/master/clojure-mode.el#L2306