Fork me on GitHub
#emacs
<
2016-11-04
>
ag00:11:17

what do you guys use to sort namespaces in non-ns situations? like when using boot? How do you sort something like this:

(require
  '[adzerk.boot-cljs :refer [cljs]]
  '[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
  '[adzerk.boot-reload :refer [reload]]
  '[adzerk.boot-test :refer :all]
  '[crisptrutski.boot-cljs-test :refer [test-cljs]]
  '[finops-admin.db-utils :as db-utils]
  '[finops-admin.tables :as tables]
  '[finops-admin.table-spec :refer [generate-db-data]]
  '[pandeiro.boot-http :refer [serve]]
  '[environ.boot :refer [environ]]
  '[degree9.boot-npm :refer [npm]])

dpsutton12:11:17

(define-key map (kbd "C-c C-r n s") #'clojure-sort-ns)

dpsutton12:11:34

"Internally sort each sexp inside the ns form."

dpsutton12:11:42

this is in clojure mode

dpsutton12:11:51

i've never used it before but might work

dpsutton12:11:03

ah. i see your point

dpsutton12:11:29

maybe just M-x sort-lines?

yenda12:11:41

emacs --debug-init is not really helpful, is there a problem with my config or with smartparens ?

yenda12:11:01

when I remove smartparens it works again

cmack16:11:02

@yenda did you visit position 7276 in your .emacs file to see the offending variable? (`M-g c 7276` or M-x goto-char RET 7276)

yenda16:11:36

@cmack thank you it was slack that inserted some random invisible crappy char inbetween lines

yenda16:11:17

Now I understand why I was unable to find the problem

ag17:11:06

@dpsutton neither sort-lines nor clojure-sort-ns unfortunately work for that… clojure-sort-ns requires ns-form. The example I have demonstrated is not an ns form.

ag19:11:26

have someone tried to get clojurescript working in org-babel? in Org 9.0?

ag21:11:50

dammit… tried and tried… couldn’t make it work. I wish @mfikes used Emacs and org-mode. he would’ve done org-babel for planck