Added helper to open file with emacsclient using filename:line path

Most of console-based utilities prints filename in format
"filename:linenumber". So you may wish to open filename in that format.
This little 'advice' can do that. Just call

emacsclient filename:linenumber

and cursor will be positioned on requested line
This commit is contained in:
lexa 2014-10-26 14:44:24 +03:00
parent cba761c212
commit 8c55c6f4bb
2 changed files with 27 additions and 0 deletions

View file

@ -234,6 +234,14 @@ alias vi='emacsclient -t'
The last two aliases are helpful if you're used to editing files from
the command line using `vi(m)`.
Also you can open a file with cursor on choosen line:
```bash
emacsclient somefile:1234
```
This will open file 'somefile' and set cursor on line 1234.
## Getting to know Prelude
Certainly the best way to understand how Prelude enhances the default