Last active
October 20, 2015 08:36
-
-
Save ibrahima/40a5110cb76644bc1cb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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