Skip to content

Instantly share code, notes, and snippets.

@ibrahima
Last active October 20, 2015 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibrahima/40a5110cb76644bc1cb1 to your computer and use it in GitHub Desktop.
Save ibrahima/40a5110cb76644bc1cb1 to your computer and use it in GitHub Desktop.
(defun goto-student-feedback ()
(interactive)
(string-match
(rx (group "hw" digit) (any ascii) (group "cs30f" (1+ alpha)))
(buffer-file-name))
(let* (
(hwnum (match-string 1 (buffer-file-name)))
(username (match-string 2 (buffer-file-name)))
(feedback-path (concat "/home/linux/ieng6/cs30f/public/" hwnum "_feedback/style_feedback_" username))
)
(message feedback-path)
(find-file-other-window feedback-path)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment