Created
August 14, 2010 01:49
-
-
Save rmcm/523842 to your computer and use it in GitHub Desktop.
Qt Assistant doc-search
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 my-qt-assistant () | |
"Assess documentation in an instance of Assistant." | |
(interactive) | |
(let* ((procname "qt-assistant") | |
(search (my-word-at-point))) | |
(if (not (process-status procname)) | |
(start-process | |
procname procname | |
"/Developer/Applications/Qt/Assistant.app/Contents/MacOS/Assistant" | |
"-enableRemoteControl")) | |
(process-send-string procname | |
(format "activateKeyword %s;\n" (word-at-point))) | |
(do-applescript (format "tell application \"Assistant\"\n activate\nend tell\n")))) | |
(global-set-key (kbd "C-c q h") 'my-qt-assistant) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment