uris77
7/6/2015 - 5:14 PM

Emacs + paredit

Emacs + paredit

  • Copy and paste a sexp:
;;; C-M-SPC (select sexp)
;;; C-w (copy
;;; C-y (to paste)
(defn some-func []
 ;;;
 )
  • Cut and paste a sexp:
;;; C-M-k (cut sexp)
;;; C-y (paste sexp)
(defn some-func []
  ;;;
)
  • Automatically insert namespace:
M-x clojure-insert-ns-form
  • Update namespace if file namechanges:
M-X clojure-update-ns