zenmacs / .emacs.d

3 stars 0 forks source link

Command to list all the unique set of keywords in this buffer #137

Open vemv opened 6 years ago

vemv commented 6 years ago

Should help detecting typos.

vemv commented 6 years ago

Can do by reading the buffer and passing it to interactive eval.

(defn my-flatten [x]
  (if (coll? x)
    (mapcat my-flatten x)
    [x]))

(->> all my-flatten (filter keyword?) distinct sort)