Skip to content

Thoughts on integrating with/adding stuff from clj-refactor #137

Closed
@slipset

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:

  1. cljr-add-project-dependency, this is huge when greenfielding https://github.com/clojure-emacs/clj-refactor.el/blob/master/clj-refactor.el#L2261
  2. 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 type foo/ clj-refactor will search for previous aliases foo and insert the appropriate :require
  3. 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

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions