mirror of https://github.com/status-im/metro.git
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
689156a228
commit
9f60a1bcc6
|
@ -33,6 +33,7 @@ function getArgumentsForLineNumber(editor, fileName, lineNumber) {
|
||||||
return [fileName + ':' + lineNumber];
|
return [fileName + ':' + lineNumber];
|
||||||
case 'joe':
|
case 'joe':
|
||||||
case 'emacs':
|
case 'emacs':
|
||||||
|
case 'emacsclient':
|
||||||
return ['+' + lineNumber, fileName];
|
return ['+' + lineNumber, fileName];
|
||||||
case 'rmate':
|
case 'rmate':
|
||||||
case 'mate':
|
case 'mate':
|
||||||
|
|
Loading…
Reference in New Issue