Fix documentation for emacsclient

Verbatim text with equal sign was't displaying correctly. Another
solution would be to escape `=` with Org mode entity, but GitHub won't
display it correctly.
This commit is contained in:
Martin Račák 2015-09-13 13:16:40 +02:00 committed by syl20bnr
parent ad7d310883
commit 5b1ef55b96
1 changed files with 11 additions and 4 deletions

View File

@ -2508,12 +2508,19 @@ You can open a file in Emacs from the terminal using =emacsclient=. Use
=emacsclient -c= to open the file in Emacs GUI. Use =emacsclient -t= to open the
file in Emacs within the terminal.
If you want your Linux/OS X system to use Emacs by default for any prompt, use
=export EDITOR="emacsclient -c"= in your shell configuration.
If you want your Linux/OS X system to use Emacs by default for any prompt, you
need to set it in your shell configuration, e.g. =~/.bashrc= or =~/.zshrc=:
#+begin_src sh-mode
export EDITOR="emacsclient -c"
#+end_src
Note that if you're on OS X, you may have to refer to the emacsclient that comes
with your GUI Emacs, e.g. =export
EDITOR="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c"=.
with your GUI Emacs, e.g.:
#+begin_src sh-mode
export EDITOR="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c"
#+end_src
Tip: Remember to use ~:wq~ or ~C-x #~ after you are done editing the file in
Emacs.