Skip to content

Instantly share code, notes, and snippets.

@pnkfelix
Created February 6, 2013 15:00
Show Gist options
  • Save pnkfelix/4723099 to your computer and use it in GitHub Desktop.
Save pnkfelix/4723099 to your computer and use it in GitHub Desktop.
elisp code to ease firing off my local pjs-enabled builds of firefox using an isolated profile (and thus be able to run it in parallel with my main Firefox instance).
(defun gud-pjs (command-line)
"Wrapper around gud-gdb that runs firefox using my pjs-alpha profile."
;; --P pjs-alpha
(interactive (list (gud-query-cmdline 'gud-gdb)))
(let ((new-command-line
(cond ((string-match " --args " command-line)
(concat command-line " --P pjs-alpha"))
(t
(concat command-line " --args firefox --P pjs-alpha")))))
(gud-gdb new-command-line)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment