Support line number arguments for Emacs when using emacsclient

Summary: Many emacs users will want to use the `emacsclient` command to launch emacs. This opens the file in an existing emacs session rather than opening up a new instance.
Closes https://github.com/facebook/react-native/pull/3536

Reviewed By: svcscm

Differential Revision: D2565189

Pulled By: pcottle

fb-gh-sync-id: be12782aa92281eb649710ac22db2ffa1486a08a
This commit is contained in:
Thomas Parslow 2015-10-21 09:55:21 -07:00 committed by facebook-github-bot-4
parent 689156a228
commit 9f60a1bcc6
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber) {
return [fileName + ':' + lineNumber];
case 'joe':
case 'emacs':
case 'emacsclient':
return ['+' + lineNumber, fileName];
case 'rmate':
case 'mate':