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:
parent
c771fb3072
commit
394dfae868
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue