Skip to content

Instantly share code, notes, and snippets.

View smandy's full-sized avatar
🏠
Working from home

Andy Smith smandy

🏠
Working from home
View GitHub Profile
@smandy
smandy / casper.el
Created March 8, 2014 22:46
how to list fonts in emacs
(mapcar (lambda (x) ( insert (format "\n(set-frame-font \"%s\")" x ) ) ) (x-list-fonts "*") )
(mapcar (lambda (x) ( insert (format "\n(set-frame-font \"%s\")" x ) ) ) (x-list-fonts "*") )
(defun current-csv-length () (interactive)
( let (
( myStr (thing-at-point 'line ))
)
(message (number-to-string (length (split-string myStr ","))))
)
)
(defun message-current-para () (interactive)