practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
109 stars 33 forks source link

clj-refactor - add the namespace of a function as a require #243

Open practicalli-johnny opened 4 years ago

practicalli-johnny commented 4 years ago

Put the cursor on the name of a function from a different namespace and , r a m in clojure-mode with the REPL running.

Typing an alias name in front of the function name, , r a m will add the alias to the require expression.

edn/read-string will add a require

(ns  practicalli.clojure
  (:require [clojure.edn :as edn]))

https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-add-missing-libspec