Skip to content

Instantly share code, notes, and snippets.

@uris77
Last active August 29, 2015 14:24
Show Gist options
  • Save uris77/4e5e03ada31e3ff3f4a9 to your computer and use it in GitHub Desktop.
Save uris77/4e5e03ada31e3ff3f4a9 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment