From d17785495ddb25c8004c2129520a12311bb6682d Mon Sep 17 00:00:00 2001 From: Ryan Olson Date: Thu, 23 Jan 2020 07:01:39 -0700 Subject: [PATCH] emacs: open file at line number (#3780) --- pages/common/emacs.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pages/common/emacs.md b/pages/common/emacs.md index ff60ecbdfc..a9895ea73d 100644 --- a/pages/common/emacs.md +++ b/pages/common/emacs.md @@ -3,14 +3,22 @@ > The extensible, customizable, self-documenting, real-time display editor. > More information: . -- Start emacs in console mode (without X window): +- Start in console mode (without X window): `emacs -nw` -- Open a file in emacs: +- Open a file: -`emacs {{filename}}` +`emacs {{path/to/file}}` -- Exit emacs (save buffers and terminate): +- Save a file: + +`Ctrl + X, Ctrl + S` + +- Quit: `Ctrl + X, Ctrl + C` + +- Open a file at a specified line number: + +`emacs +{{line_number}} {{path/to/file}}`