Skip to content

Instantly share code, notes, and snippets.

Michael McFarland mikedmcfarland

Block or report user

Report or block mikedmcfarland

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mikedmcfarland
mikedmcfarland / js.el
Last active Aug 15, 2016
js toggle implementation
View js.el
(defun js-jump-to (current from to format-name)
(find-file
(cl-loop with parts = (reverse current)
with fname = (file-name-sans-extension (cl-first parts))
for (name . rest) on (cl-rest parts)
until (string-equal name from)
collect name into names
finally (cl-return
(mapconcat 'identity
(nconc (reverse rest)
You can’t perform that action at this time.